But if you have a direction then the expansion should be really limited and narrow.
I "think" it might be because the rest of the query spans out too many rows. But without a database to test it, this is only in vain. Michael > Am 07.10.2015 um 11:53 schrieb Ryan Velasco <[email protected]>: > > I tried it but it is taking so much time. It is because the path > -[:Seller|Buyer*0..]-(sellerCompanyTopic) make it very slow. > > Does this mean that you have at least ONE -[Seller]->[Buyer]-> pair? > It can also be that there is not seller buyer pair. > > SAMPLE output should be: > > Seller (child of tree are buyer of 'Seller') > Buyer (child of tree are buyer of 'Buyer' as seller in the relationship) > Buyer^1 (child of tree are buyer of 'Buyer^1' as seller in the > relationship) > Buyer^2 > Buyer^1 > Buyer^1 > Buyer^2(child of tree are buyer of 'Buyer^2' as seller > in the relationship) > Buyer^3 > Buyer > Buyer^1 > Buyer^1 > Buyer^1 > Buyer^3 > > Please see SalesRelationModel.png > You can see on that image that there is a node SalesRelation with a seller, a > buyer company, a contract and etc. So the SaleRelation is the hub that > connect all information necessary for a sale to exist. > The buyer company is also a seller to other smaller company with a different > SalesRelation but are connected(because we are referring to the same buyer) > and so on... > > > > > -- > 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] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > <SalesRelation.json><SalesRelationModel.png> -- 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/d/optout.
