-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ForEach only return 100 nodes #718
Comments
I think this is because of the |
@steffansluis Still, it's unexpected that it affects |
If that is indeed the case, then it is a bug. Although I'm not sure if by |
Yes, they behaves differently. In my case |
I was using |
It was a bug with |
Why does g.All() limit and where is it set? Shouldn't it default to all edges? And where is the default limit set? This seems like an unnecessary change given the 'All()' statement literally does mean.. get me All() things. |
@mojoex Imagine a large database with millions of nodes executing Note that this does not affect Go applications that use Cayley as a library. |
I think this is counter intuitive.
Maybe the Cayley UI should paginate results, and libraries use a cursor but HTTP to return all results by default? |
Yes, pagination is the way to go and #121 now tracks this. |
When iterate data which has nodes greater than 100 , foreach function only getting 100 of them.
g.V().ForEach( function(d) { g.Emit(d) })
and
g.V().All()
should be equal I think. But g.Emit(d) inside ForEach always returns only 100 nodes.
Cayley version : 0.7.3 , Backend : mongodb
The text was updated successfully, but these errors were encountered: