Using disk for memory with the method `from_dict`
{'login': 'HugoLaurencon', 'id': 44556846, 'node_id': 'MDQ6VXNlcjQ0NTU2ODQ2', 'avatar_url': 'https://avatars.githubusercontent.com/u/44556846?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/HugoLaurencon', 'html_url': 'https://github.com/HugoLaurencon', 'followers_url': 'https://api.github.com/users/HugoLaurencon/followers', 'following_url': 'https://api.github.com/users/HugoLaurencon/following{/other_user}', 'gists_url': 'https://api.github.com/users/HugoLaurencon/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/HugoLaurencon/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/HugoLaurencon/subscriptions', 'organizations_url': 'https://api.github.com/users/HugoLaurencon/orgs', 'repos_url': 'https://api.github.com/users/HugoLaurencon/repos', 'events_url': 'https://api.github.com/users/HugoLaurencon/events{/privacy}', 'received_events_url': 'https://api.github.com/users/HugoLaurencon/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892871, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODcx', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/enhancement', 'name': 'enhancement', 'color': 'a2eeef', 'default': True, 'description': 'New feature or request'}]
[]
This issue was also causing an OOM in @nateraw 's workflow and shows again that behavior is confusing - we should definitely switch to using the disk IMO
**Is your feature request related to a problem? Please describe.**
I start with an empty dataset. In a loop, at each iteration, I create a new dataset with the method `from_dict` (based on some data I load) and I concatenate this new dataset with the one at the previous iteration. After some iterations, I have an OOM error.

**Describe the solution you'd like**
The method `from_dict` loads the data in RAM. It could be good to add an option to use the disk instead.

**Describe alternatives you've considered**
To solve the problem, I have to do an intermediate step where I save the new datasets at each iteration with `save_to_disk`. Once it's done, I open them all and concatenate them.

{'url': 'https://api.github.com/repos/huggingface/datasets/issues/4861/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}