The second query is reading every node and relationship in the database. You should specify an artist in the match statement as well as use the indexing to quickly return results.
Look at this post: http://neo4j.com/blog/musicbrainz-in-neo4j-part-1/?_ga=1.249198849.729999284.1406858145 On Tuesday, August 19, 2014 4:46:45 AM UTC-4, WINIT wrote: > > > Hi All, > > I recently started playing with Neo4j, while I was exploring the power of > it with the datasets I came across the MusicBrainz Data Set. > With MusicBrainz Data Set I tried getting first few nodes using " MATCH(n) > RETURN n limit 100;" this worked perfect, when I twisted the query a little > to get the edges along with the nodes using "MATCH(n)-[r]-() RETURN n,r > limit 100;" this query never returned back. Provided below is my machine > info, > > Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz * 8 core > 8GB Mem > > Messages.log > > 2014-08-14 13:23:26.358+0000 WARN [o.n.k.EmbeddedGraphDatabase]: GC > Monitor: Application threads blocked for an additional 9347ms [total block > time: 973.098s] > 2014-08-14 13:24:00.872+0000 WARN [o.n.k.EmbeddedGraphDatabase]: GC > Monitor: Application threads blocked for an additional 694ms [total block > time: 973.792s] > 2014-08-14 13:26:19.967+0000 WARN [o.n.k.EmbeddedGraphDatabase]: GC > Monitor: Application threads blocked for an additional 6806ms [total block > time: 980.598s] > 2014-08-14 13:26:37.149+0000 WARN [o.n.k.EmbeddedGraphDatabase]: GC > Monitor: Application threads blocked for an additional 6809ms [total block > time: 987.407s] > 2014-08-14 13:27:08.148+0000 WARN [o.n.k.EmbeddedGraphDatabase]: GC > Monitor: Application threads blocked for an additional 6788ms [total block > time: 994.195s] > 2014-08-14 13:27:43.091+0000 WARN [o.n.k.EmbeddedGraphDatabase]: GC > Monitor: Application threads blocked for an additional 9732ms [total block > time: 1003.927s] > 2014-08-14 13:29:26.483+0000 WARN [o.n.k.EmbeddedGraphDatabase]: GC > Monitor: Application threads blocked for an additional 24661ms [total block > time: 1028.588s] > 2014-08-14 13:32:46.339+0000 WARN [o.n.k.EmbeddedGraphDatabase]: GC > Monitor: Application threads blocked for an additional 721ms [total block > time: 1029.309s] > . > . > . > . > > Experts advice would be highly appreciated! > > Thanks! > -- 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.
