-
Notifications
You must be signed in to change notification settings - Fork 4
Can random method be lazily evaluated instead of eager evaluation #5
Comments
Apologies for the late reply! For some reason, I completely miss this issue :) Unfortunately, I do not think eager evaluation is possible.....any chance you could show me some sample code of your use case? Cheers, |
As far as my knowledge is concerned, eager evaluation is happening when we try to call random with some custom Arbitrary value for a Billion records. Please let me know whether I am in right direction. |
Code got messed up because of formatting ..... Code for creating 1 Billion records is, |
Hi @krishna-meduri, We have two options: I would probably go with option B. What do you think? Cheers, |
Hi @DanielaSfregola Regards, |
Hi @krishna-meduri, I'll try some time to work on it next weeks, in the meanwhile PRs are always welcome ;) |
Hi @DanielaSfregola |
I have been using the previous version of random-data-generator, which is based on shapeless, for quite sometime and is awesome. Recently, I tried using this for generating a Billion records. Since the random method is doing an eager evaluation, this is causing me an OOM error. Could you please guide me in this regard, as this would be my on going task to generate billions of records.
Thank you.
Note: Ideally, this is not an issue but calling out for help :)
The text was updated successfully, but these errors were encountered: