Hi Everyone,
I have a simple Neo4J setup on my dev box using the standalone server.
Without going into too much detail on my domain there are ~30,000 "cards"
and I would like to model the strength of the relationship for each card to
potentially every other card. I have added a DECK_INCIDENCE relationship
that has one property "pickOrder" which is an integer. If every card is
related to every other card then I have a total potential of 30,000 nodes
and 900,000,000 relationships. Although in all likelihood the actual
number of relationships will be half of that.
I wrote little app to dump data into my neo4J instance (I'm sure there's a
better way of doing this but I'm just starting out and wanted to work out
how to get data into the DB). I loaded a fairly modest 27,000 cards and
27,000,000 relationships into the database over night.
I added an index on the "id" property of each card in my db. I then run
the following query through the web console:
MATCH (card1:Card {id:17806})-[r:DECK_INCIDENCE]-(card2:Card {id:19310})
RETURN r;
And it's taking around 10-15 seconds to return a result.
I'm wondering now whether my use case simply isn't appropriate for Neo,
i.e. having a lot more relationships than actual nodes. As I said I'm just
starting out with this so there could well be something that I've missed so
I would appreciate your thoughts.
Cheers,
Ben.
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.