Hacker News new | ask | show | jobs
by senttoschool 1230 days ago
Back in the early 2010s, NoSQL hype was at an all-time high. One of the things that I never understood was how did organizations that chose to use a NoSQL as the primary business database deal with analytics?

You know, analyzing sales, user data, etc. With MySQL or Postgres, business analysts can just write SQL and get the data they need. But what about with MongoDB? Do you expect business analysts to write Javascript? Or that every data request needs to go through a product engineer? Or maybe you need to create data pipelines from MongoDB to MySQL just for analysts?

Dealing with analytics was the primary reason I never chose a NoSQL database as my main data store.

1 comments

You knowledge of MongoDB is a little out of date.

MongoDB supports SQL queries. Tableau has an MongoDB connector. You can connect MongoDB to Excel via our DataAPI and of course our Cloud platform provides embeddable charts.

Only the DataAPI is a relatively recent addition. The rest are very mature features.

I did not find a reliable way to query MongoDB with SQL: https://github.com/ClickHouse/ClickBench/blob/main/mongodb/q...

It looks like it's only available in the Atlas service. Please correct me if I'm wrong.

Writing analytic queries in JS is painful.

Problem with mongo is if you start using more SQL like things like pipelines and aggregations your perf goes out the window

you really have to think about how you structure your data in mongo for it to work with lots of queries since joins are untenable (even if aggregations support them)

So it's no longer a NoSQL database. ;)