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

How many vertex & edges can be added into a graph? #1748

Open
wen-bing opened this issue Apr 13, 2024 · 3 comments
Open

How many vertex & edges can be added into a graph? #1748

wen-bing opened this issue Apr 13, 2024 · 3 comments
Labels
question Further information is requested

Comments

@wen-bing
Copy link

wen-bing commented Apr 13, 2024

Hi

When I try to use load_labels_from_file to import vertex from a csv file, I got an error said:

pq: entry_id must be 1 .. 281474976710655

the vertex's id in csv is a uint64_t integer value.

if I change the id to a uint32_t,then all vertex in csv can be loaded succedded.

Is this means the maximum vertex number is 281474976710655 ?

@wen-bing wen-bing added the question Further information is requested label Apr 13, 2024
@wen-bing wen-bing changed the title How many vertext & edges can be added into a graph? How many vertex & edges can be added into a graph? Apr 13, 2024
@rafsun42
Copy link
Member

Is this means the maximum vertex number is 281474976710655 ?

Yes, and that is the maximum for edges too. Though, this limitation applies per graph.

@wen-bing
Copy link
Author

OK,
Just worndering why not use 64 bits length

@rafsun42
Copy link
Member

@wen-bing The actual ID is only 48 bit. Rest of the 16 bit is reserved for label ID to gain some performance benefits. Do you need to store more than 281474976710655 vertices?

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

No branches or pull requests

2 participants