Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bulk import #18

Open
tamerh opened this issue Jun 19, 2018 · 1 comment
Open

bulk import #18

tamerh opened this issue Jun 19, 2018 · 1 comment

Comments

@tamerh
Copy link

tamerh commented Jun 19, 2018

Hello,

I have sorted and numeric large key and values around 15 billions records. I am able to insert to lmdb database in reasonable time.

my question Is there a way to insert this data as bulk to lemongraph and can it handle this?

Thanks

@NSA-LGDev2
Copy link
Contributor

I am not sure - supporting graphs of that size was outside the scope of this project.

However, to stress test, I once loaded a graph with 10 million nodes with empty type and sequentially numbered values, and then added 100 million random edges in batches of 1 million per transaction. Load time was around 4 hours, result db was 30gb, and the edge insert rate at the end was around 3.7k per second.

You would definitely need to break it into multiple transactions so that it can automatically grow LMDB's map size. Depending on your hardware, it might be a good idea to set noreadahead=True when you open it as well.

Does that help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@tamerh @NSA-LGDev2 and others