Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7871385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:53:25+00:00 2026-06-03T01:53:25+00:00

One big advantage of RDBMS is SQL as a very declarative and powerful querying

  • 0

One big advantage of RDBMS is SQL as a very declarative and powerful querying language. I know MongoDB has a query language, but it does not cover joins. Has anyone attempted to make an advanced query language for MongoDB that

a) Handles joining across different collections?

b) Handles joins smartly by looking at indexes in collections and cardinality of the indexes — i.e. mimic query planning in SQL?

It seems like you should be able to write a higher level query language that uses (b) to smartly output combination of Javascript code and Mongo native queries that perform (a).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:53:27+00:00Added an answer on June 3, 2026 at 1:53 am

    1) MongoDB does have the “query planning”. It does it a little differently though. It spins off various options to run the same query in parallel and sees which one completes first, then remembers it and uses it as a compiled plan for a while and then reruns the test again to account for changes in the data, etc.

    2) JOIN across collections will make Mongo run the hashing and merges across different nodes which will slow other clients down. it was clearly a conscious decision not to allow queries like this and push it out to the apps. You either architect your docs so that you have all you need in place (thus support for nested documents) or you do your joins in the client

    Last but not the least, there was an attempt to build a unified query language across NoSQL databases – UnQL – but with so much difference between column-oriented, document-oriented, key-value, and graph databases there’s just so much one can do to generalize the process of querying the data.

    • How do I perform the SQL Join equivalent in MongoDB?
    • MongoDB and "joins"

    And some more on the subject:

    • Should MongoDB Use SQL as a Query Language?
    • Migrating from SQL to MapReduce with MongoDB
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As we all know one big advantage of MVC is stateless. However if not
Is it possible to make one big array from a query like: select array_append(ARRAY[0],
I've got one really big .java class file that has a lot of members.
THANKS: Both answers here are very helpful, but I could only pick one. I
Rather than have everything in one big dialog, I'm looking at being able to
I have these 2 queries that I would like to combine into one big
I'm trying to convert my VB project to WPF, and one big problem I'm
In C++, how do I combine (note: not add) two integers into one big
I upgraded to Visual Studio 2010 RC, and I remember filling one big form
I have an automatically generated regular expression, which basically is one big or group

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.