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

Sorry! Too many neighbours #1517

Closed
galliva opened this issue Nov 20, 2013 · 5 comments
Closed

Sorry! Too many neighbours #1517

galliva opened this issue Nov 20, 2013 · 5 comments

Comments

@galliva
Copy link

galliva commented Nov 20, 2013

I have a node representing a person with 94 relationships to friends:

START a=node:node_auto_index(name="John Doe") 
MATCH (a)-[:FRIEND_OF]->(b)
RETURN count(b)

> 94

In the neo4j console I would like to click on John and see his neighbours, so I execute:

START a=node:node_auto_index(name="John Doe") 
RETURN a

as expected, one node is returned represented by a circle.

If I double-click on the node, a javascript alert saying "Sorry! Too many neighbours" appears, and I'm not able to "open" the node.

I looked in google, but there is only one result regarding this error...

Anyone can help?
How "many neighbours" is too much?
Can I configure the maximum?

Thanks!

@chrisvest
Copy link
Contributor

The maximum is 100 neighbours. I don't think you can configure it. It includes all types of related nodes, and not just those of a particular type or direction. Try this to get a more accurate count:

START a=node:node_auto_index(name="John Doe") 
MATCH (a)-[r]-()
RETURN count(r)

To get the nodes out, you can query for only the stuff you're interested in:

START a=node:node_auto_index(name="John Doe") 
MATCH (a)-[:FRIEND_OF]->(b)
RETURN a, b

@DFoxinator
Copy link

I think this should be re-opened because this is definitely not expected behavior. I'm not sure exactly what is, but probably something more along the lines of showing at least some of the nodes, even if they can't all be loaded. Also, it would be nice if this was a configurable limit.

The browser could be a really awesome tool, but this limit/behavior makes it very difficult to use. I was showing some friends my data the other day, tried to click a node with a few too many related nodes, and got the ugly alert box "error."

@ambition-consulting
Copy link

At least make it configurable - it's the user's choice how much time he got to wait for results.

@jexp
Copy link
Member

jexp commented Apr 28, 2015

@ambition-consulting
Copy link

good to know - cheers! :)

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

5 participants