datatable icon indicating copy to clipboard operation
datatable copied to clipboard

fread memory_limit arg could rbind into single temp jay

Open jangorecki opened this issue 4 years ago • 2 comments
trafficstars

memory_limit int ... In the end the returned Frame will be partially composed from data located on disk, and partially from the data in memory. It is advised to either store this data as a Jay file or filter and materialize the frame (if not the performance may be slow).

This FR asks for option for automatic storing data (AFAIU rbind) into single temporary jay file. Could be even the default IMO

jangorecki avatar Dec 29 '20 16:12 jangorecki

But this is already possible: you can take the returned frame and save it into a jay file. The reason we are not doing it for you is that you may want to do some operations with the data before saving it.

st-pasha avatar Dec 29 '20 23:12 st-pasha

I understand that, but it requires more branching in code. Depending if data is larger than memory on not. If having a feature requested here (to do that for user behind the scene) makes the code more agnostic of out-of-memory configuration. User just sets memory limit, and if it exceeds then all is handled behind the scene.

jangorecki avatar Dec 30 '20 07:12 jangorecki