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

Lazy load data #78

Open
emdadgar2 opened this issue Mar 20, 2024 · 1 comment
Open

Lazy load data #78

emdadgar2 opened this issue Mar 20, 2024 · 1 comment

Comments

@emdadgar2
Copy link

Hi,
I have a +300M nodes with +1G edges, loading all data from database to process with your great project,
needs too resource and take long time

Is there any way to Lazy load data from data source as needed?
Thanks

@Kemsekov
Copy link
Owner

Kemsekov commented Mar 26, 2024

This is interesting question.

I honestly don't even know what it means to implement such lazy loading in the first place. 😅

You mean to create some graph implementation that known where to take nodes and edges (aka knows how to load them from DB to memory), but does it only once particular node or edge is actually accessed, meanwhile keeping illusion of all data being loaded at once?

There is currently no such implementation.

But i believe this is pretty simple to do.

You may look into interfaces INodeSource and IEdgeSource, implement them with such lazy techniques and then use this sources with graph G.SetSources.

Maybe I will work on this when I will have a bit of free time 😅

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

2 participants