Cloudant is a nosql database. I don't know what that is exactly, so let's figure that out first.
It turns out that instead of storing data in rows and tables, as we would in a relational database, everything is stored as JSON objects in a NoSql database.
So, my Map Markers would fit nicely into this paradigm. This is what JSON data looks like. Everything is more or less self documenting. This represents 6 records. Each record has a type, and id, a lat, a lng, and a time. I should be able to just poke them into a Cloudant database.
{"type":"marker","id":"User_38","lat":3.8908132995967E+1,"lng":-7.881591796875E+1,"time":1418995553937}
{"type":"marker","id":"User_38","lat":3.61733569352216E+1,"lng":-7.894775390625E+1,"time":1418995554521}
{"type":"marker","id":"User_38","lat":3.4016241889667E+1,"lng":-8.033203125E+1,"time":1418995555218}
{"type":"marker","id":"User_10","lat":4.16893222599704E+1,"lng":-6.6785888671875E+1,"time":1418995570282}
{"type":"marker","id":"User_26","lat":4.19247597193397E+1,"lng":-6.81836791522801E+1,"time":1418863150094}
{"type":"marker","id":"User_26","lat":4.19247597193397E+1,"lng":-6.81836791522801E+1,"time":1418863150096}
Cloudant is more than a NoSQL database. It is industrial strength, cloud based, highly reliable, clusterable. And it's more or less free if your monthly costs are low enough.
It is built on top of CouchDB, and supports Mongo Style queries. It also has a Lucene search capability, Geospacial queries, etc. So it's worth looking at, over and above what CouchDB provides.
It is built on top of CouchDB, and supports Mongo Style queries. It also has a Lucene search capability, Geospacial queries, etc. So it's worth looking at, over and above what CouchDB provides.
We'll need to take a look.
No comments:
Post a Comment