Reputation: 91
SELECT count(*) FROM place WHERE DISTANCE(lat, lng, 42.0697, -87.7878) < 10
fetched more than 50000 records: to speed up the execution, create an index or change the query to use an existent index"
place.distance NOTUNIQUE ["lat","lng"] SBTREE
Upvotes: 0
Views: 79
Reputation: 3570
You can use a spatial index.
You can look the documentation http://orientdb.com/docs/2.1/Spatial-Index.html
Upvotes: 0