I'm trying to evaluate if neo4j spatial is the right solution for simple 
geospatial searches. I've imported ~200k locations into a local neo4j 
database via the rest api and have started to query it using cypher in the 
neo4j shell

I'm finding that queries like the one below are taking up to 5 seconds. 
This seems a bit slow to me, so I would like to ask how to improve the 
performance of this query. Are there any configuration options that I 
should be looking at?

neo4j-sh (?)$ start node = 
node:geom('withinDistance:[33.74242401123047,-90.71835327148438, 20.0]') 
return node; 
+----------------------------------------------------------------------------------------------------------------------------+
| node                                                                     
                                                  |
+----------------------------------------------------------------------------------------------------------------------------+
| 
Node[34002]{name:"Goody's",lon:-90.71835327148438,lat:33.74242401123047,merchantId:"4e0c509a-8263-4d91-8fca-5b5d5530d7b5"}
 
|
+----------------------------------------------------------------------------------------------------------------------------+
1 row
4806 ms

I'm creating an index with the following configuration:

{"name" : "geom",
  "config" : { 
    "provider" : "spatial",
    "geometry_type" : "point",
    "lat" : "lat",
    "lon" : "lon"
  }
}

and then simply creating the nodes and adding them to index via the rest api

Any advice is 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 neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to