ALL COVERED TOPICS

NoSQL Benchmarks NoSQL use cases NoSQL Videos NoSQL Hybrid Solutions NoSQL Presentations Big Data Hadoop MapReduce Pig Hive Flume Oozie Sqoop HDFS ZooKeeper Cascading Cascalog BigTable Cassandra HBase Hypertable Couchbase CouchDB MongoDB OrientDB RavenDB Jackrabbit Terrastore Amazon DynamoDB Redis Riak Project Voldemort Tokyo Cabinet Kyoto Cabinet memcached Amazon SimpleDB Datomic MemcacheDB M/DB GT.M Amazon Dynamo Dynomite Mnesia Yahoo! PNUTS/Sherpa Neo4j InfoGrid Sones GraphDB InfiniteGraph AllegroGraph MarkLogic Clustrix CouchDB Case Studies MongoDB Case Studies NoSQL at Adobe NoSQL at Facebook NoSQL at Twitter

NAVIGATE MAIN CATEGORIES

Close

MongoDB Is Abusing JSON With Its Query Language

SM Sohan expresses his discontent with MongoDB’s JSON-based query representation:

I find the MongoDB API is abusing JSON in a really bad way. JSON is probably a good format for storing the documents in MongoDB, but using JSON for it’s weird API is simply a terrible idea.

Using JSON (nb BSON) for representing queries works well for basic equality matching. But I agree that for more advanced queries it looks quite forced. While definitely not perfect, I prefer (biasedly) RethinkDB’s API. On the other hand, I’m not aware of any proposals to make MongoDB’s query language better. Nor that there would be any willingness to change it.

Update: The (always) entertaining HN thread.

Original title and link: MongoDB Is Abusing JSON With Its Query Language (NoSQL database©myNoSQL)

via: http://smsohan.com/blog/2013/01/17/abusing-json/