| Subject: | Re: [OSM-dev] OSM and MongoDB |
|---|---|
| Date: | Tue, 12 Apr 2011 15:26:41 -0500 |
| From: | Nolan Darilek <no...@thewordnerd.info> |
| To: | Ian Dees <ian....@gmail.com> |
Yep, and I think Mongo uses geohashes as their index behind the scenes. One of the problems with that, though, is they have some arbitrary length that they compute the geohash to and when you have lots of points (as OSM data does) the buckets they're searching are very full.
On Tue, Apr 12, 2011 at 1:00 PM, Steve Coast <st...@asklater.com> wrote:
bbox queries using the built in spatial indexing presumably? OSM has it's own magical bitmask for that, that may also be as fast in mongo, who knows.
On 4/11/2011 5:58 PM, Ian Dees wrote:_______________________________________________ dev mailing listOn Mon, Apr 11, 2011 at 6:36 PM, Sergey Galuzo <ser...@microsoft.com> wrote:
Hi,
I am working on evaluation of MongoDB for several storage solutions at hand. Some of them resemble current OSM editing database. I have heard that OSM dev is/was evaluating MongoDB also. I was wondering whether it possible to share the findings?
In my experimentation with MongoDB (seen here: https://github.com/iandees/mongosm/) I found it to be very slow. Inserts were speedy, but bounding-box queries took a long time.
The most recent dev version of MongoDB includes "multi-location documents" support:
This would allow a single way document to be indexed at multiple locations and vastly speed up the map query.
_______________________________________________
dev mailing list
d...@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev
_______________________________________________ dev mailing list d...@openstreetmap.org http://lists.openstreetmap.org/listinfo/dev
how was the data put in the db though? 1 document per node?
Interesting.
How efficient is the (big)int indexing and/or masking?
Was this all on a single machine?
Exact point checks and distances are also being introduced in 1.9, so
when/if the hash isn't precise enough to complete your search, you
shouldn't get these types of inaccurate results (the hash is currently
tunable to 32 bits of precision). Of course, these are all new
developments (along with polygon searches and multi-location documents),
geo-indexing has gotten a lot of attention as of late.
disclaimer: as per my email address, I work at 10gen on MongoDB
hi,some weeks ago, i got interested in NoSQL datababase products. I had no experience with them up to now, but as it was a requirement for an job, I started to read about apache cassandra and thougth, this would be interesting for openstreetmaps.
up to now my findings are only theoreticaly, but I would like to digg deeper, when I find time.But one think I wonder about is, you tested it on one machine. Isn't it like that, you need several nodes and loads of data to really benefit from NoSQL databases? At least this was my understanding of the whole thing...