Show HN: SQL to Mongo Query Translator
21–30 of 34 posts
Re: Show HN: SQL to Mongo Query Translator
#22I don't have any experience with MongoDB, but the example put me off using it completely. The MySQL query is concise and brief, the MongoDB equivalent is bloated. Only after several seconds I was able to deduce that the MongoDB query probably does something more than MySQL query. Can you please make the examples more comparable? Or did I misunderstand the MongonDB and it actually is so bloated by design? I believe it…
MongoDB's query language is just not very good.
http://stackoverflow.com/questions/7303333/are-adhoc-queries...
Re: Show HN: SQL to Mongo Query Translator
#23Re: Show HN: SQL to Mongo Query Translator
#24The 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…
Re: Show HN: SQL to Mongo Query Translator
#25I find it pointless. If you want to write SQL queries just use a relational database, if you want to use Mongo learn to use it.
Re: Show HN: SQL to Mongo Query Translator
#26are there any plans to open source this?
Re: Show HN: SQL to Mongo Query Translator
#27 HAVING SUM(abc) > 1
to the example.Re: Show HN: SQL to Mongo Query Translator
#28I've also found this diagram incredibly helpful translating from a SQL to map/reduce world. http://rickosborne.org/blog/2010/02/infographic-migrating-fr...
Re: Show HN: SQL to Mongo Query Translator
#29Not 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
Sorry about that! Built this in a hackathon and this first version doesn't support joins yet.
Re: Show HN: SQL to Mongo Query Translator
#30map/reduce anyone ? if you are using mongodb like a relational database , then maybe you should just stick to relational databases...