Show HN: SQL to Mongo Query Translator
querymongo.com
Show HN: SQL to Mongo Query Translator
1–10 of 34 posts
Re: Show HN: SQL to Mongo Query Translator
#2Re: Show HN: SQL to Mongo Query Translator
#3any particular reason you are not mapping to the aggregation framework which is a lot faster ?
Re: Show HN: SQL to Mongo Query Translator
#4Re: Show HN: SQL to Mongo Query Translator
#5Re: Show HN: SQL to Mongo Query Translator
#6Failure parsing MySQL query: Unable to convert queries based on more than one table
Re: Show HN: SQL to Mongo Query Translator
#7Group does not function in Sharding mode at all, it also takes a lock on the JavaScript interpreter making it non-parallelizable.
Map/Reduce is somewhat better in that it is shardable, and with V8 likely in the next stable release, will have better parallelization prospects.
Ideally, you should be using the new Aggregation Framework to do this kind of work: http://docs.mongodb.org/manual/applications/aggregation/
(EDIT) To clarify - Aggregation is ideal because its implementation is 100% in C++, meaning there are no JavaScript interpreter locks necessary to run it, so it is parallelizable. Additionally, one of the biggest overhead costs to MapReduce and Group in MongoDB is the translation back and forth between BSON (the native format MongoDB uses for data, or rather the C++ representations thereof) and JavaScript types. Aggregation not utilizing JavaScript eliminates this overhead and manipulates the database' internal types directly.
Re: Show HN: SQL to Mongo Query Translator
#8This is specially useful because of the verbosity and ugliness of the "JSON" API (much more difficult to get right by hand than SQL) and because I found 0 working GUI tools to work with Mongo in a mac (they all crash at startup or after ~5 seconds of usage in a modern mac).
Re: Show HN: SQL to Mongo Query Translator
#9Not particularly useful, I tried a simple join and I got this error message: Failure parsing MySQL query: Unable to convert queries based on more than one table
Re: Show HN: SQL to Mongo Query Translator
#10The default query already filled in is translating to the use of a Group function, which is a very bad idea. While not deprecated per se, its use is discouraged. Group does not function in Sharding mode at all , it also takes a lock on the JavaScript interpreter making it non-parallelizable. Map/Reduce is somewhat better in that it is shardable, and with V8 likely in the next stable release, will have better parallel…