Re: [Neo4j] Speeding up a a query with allShorthestPaths

2014-07-20 Thread Michael Hunger
MATCH (n:User{id:'id'}) - [:HAS_FAX_NUMBER] -> () <-[:HAS_FAX_NUMBER]-(m1) WITH distinct n,m1 MATCH p = allShortestPaths((n)-[*..2]-(m1)) RETURN m1.fhid AS SuggestedUser, COUNT(p) as Connections UNION MATCH (n:User{id:'id'}) - [:HAS_PHONE_NUMBER] ->() < - [:HAS_PHONE_NUMBER] -(m2) WITH distinct

Re: [Neo4j] force Neo4j to be single threaded

2014-07-20 Thread Michael Hunger
There are a number of ways on how you can control helper threads for the jvm. You'll have to look at the JVM config for how to turn which off. You might want to disable remote shell too and UDC. So you get rid of more thread. You can test it with jstack on your machine how many threads are run

Re: [Neo4j] Abridged summary of neo4j@googlegroups.com - 9 updatespomp in NH ink njj NH jjbjn in NJ NBAj juju joker minim MN b nm on I on NJ in NJ in NJ babysitting MN b NJ NJ nm NJ hi

2014-07-20 Thread Steve Gremban
On Jul 20, 2014 4:00 PM, wrote: > Today's topic summary > > Group: http://groups.google.com/group/neo4j/topics > >- force Neo4j to be single threaded <#1475593b95965d14_group_thread_0> >[3 Updates] >- py2neo with Geospatial index <#1475593b95965d14_group_thread_1> [1 >Update] >

Re: [Neo4j] force Neo4j to be single threaded

2014-07-20 Thread jerry yin
Hi Michael, The reason for this comes from the inherent limitation of my hardware simulator. The simulation requires that only one thread is allowed to run per core. Thus if the JVM launches a number of helper threads, I have to assign same or larger number of cores (maybe 16) before the simulatio

Re: [Neo4j] force Neo4j to be single threaded

2014-07-20 Thread Michael Hunger
Why do you need that? Sent from mobile device Am 20.07.2014 um 09:54 schrieb jer : > Hi Micheal, > > Thanks for your suggestion. I tried with embedded java. But it seems that JVM > will automatically launch helper threads. Is there a way to force JVM to be > single threaded? > > Best, > Jer

Re: [Neo4j] force Neo4j to be single threaded

2014-07-20 Thread jer
Hi Micheal, Thanks for your suggestion. I tried with embedded java. But it seems that JVM will automatically launch helper threads. Is there a way to force JVM to be single threaded? Best, Jer -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsu

Re: [Neo4j] py2neo with Geospatial index

2014-07-20 Thread gg ricker
Hi, I am trying to do the same sort of thing in Python. I am adding the data using py2neo's batch process. If I can't create the spatial index directly how would I do it, still using Py2neo? Would I be able to create Cypher queries from py2neo that involve spatial? I hate to abandon Python..

[Neo4j] Re: Speeding up a a query with allShorthestPaths

2014-07-20 Thread Alx
I rewrote the query by changing the depth to 2 as follows. I am getting a slight speed-up but not significant. I would appreciate any ideas. MATCH (n:User{id:'id'}) - [:HAS_FAX_NUMBER] -> () <-[:HAS_FAX_NUMBER]-(m1) MATCH p = allShortestPaths((n)-[*..2]-(m1)) RETURN m1.fhid AS SuggestedUser, CO

Re: [Neo4j] Customized batch inserter

2014-07-20 Thread Michael Hunger
Sure, just use the java batch-inserter API, this is also what the CSV importer does. Cheers, Michael Am 18.07.2014 um 01:00 schrieb Alireza Rezaei Mahdiraji : > > Hi All, > > I am wondering if it is possible to extend batch inserter for other type of > file rather than CSV? > I have a dif