Better HN
topnewbestaskshowjobs
Log inSign up

RoxiHaidi

10 karma · joined May 23, 2025 (1y ago) · 33 submissions

Submissions

comment 1w ago · link · parent

Oh, you're right! AI is killing a lot of stuff.

comment 3mo ago · link · parent

I like that the diagram expands the JSONB structure. Does it still show the nested JSONB fields when the table has relationships or joins with other tables?

comment 6mo ago · link · parent

Nice info, suppose you are a woman like me, based on the colors....keep going!

comment 6mo ago · link · parent

Yeah, they need to use a different approach.

comment 6mo ago · link · parent

Absolutely, that's a very practical approach to take. In reality, the optimal solution for databases doesn't necessarily match what people would select right now from scratch.

If a system is working fine, the expense and risk of moving may end up being far greater than any optimization efforts on the existing database. This is also why I believe profiling tools, explain plans, and indexes are all useful; there are plenty of cases where MongoDB is sufficient but still needs optimization...

comment 6mo ago · link · parent

That's a valid concern. I completely understand that compound indexes should not be applied blindly, and the database should select an appropriate execution plan on its own.

That's also why I decided to concentrate on the entire workflow rather than on the index itself in the article: Find the slow query -> Analyze Explain -> Analyze the ratio between scanned and returned documents -> Create an index -> Test the same query again...

In this particular case, a compound index was selected based on filters and a sort clause. I completely agree that using index intersections in a real workload could be quite dangerous, especially if MongoDB chooses to use another index instead.

The `$addToSet` example is also very valid; however, for me, that is more like a schema problem than a regular indexing problem in a read query. Still, the array could become extremely big regardless of the presence of indexes, and it might require a dedicated note in the article.

comment 6mo ago · link · parent

wow, that's very interesting and super useful!

8.

Common MongoDB Mistakes Developers Make (and How to Fix Them)(visualeaf.com ↗)

4 points · by RoxiHaidi · 6mo ago · 2 comments

comment 6mo ago · link · parent

Are you kidding? is top 5 worldwide....

https://db-engines.com/en/ranking

10.

How to Optimize MongoDB Query Performance with Indexes(visualeaf.com ↗)

15 points · by RoxiHaidi · 6mo ago · 9 comments

comment 6mo ago · link · parent

That's impressive! good job

12.

How to Automate MongoDB Imports, Exports, and Sync Jobs(youtube.com ↗)

2 points · by RoxiHaidi · 6mo ago · discuss

comment 6mo ago · link · parent

The idea is nice, but the text is hard to read, just a recommendation! And I'm not wearing any glasses, I'm only 32.

comment 7mo ago · link · parent

great job, thank you for this teacher!

comment 7mo ago · link · parent

Looks incredible neat! I'll give it a try! Congrats!

comment 7mo ago · link · parent

Same, I am from the 3x plan and canceled and switched to Codex 2 days ago...

comment 7mo ago · link · parent

It looks interesting. I actually did this yesterday. I needed to upload PNG photos on Medium, because they do not accept WebP photos, but I used Greenshot to take the screenshots again. I'm gonna save this for later. A small thing: I think the upload was pretty slow. maybe it's just my internet...

comment 7mo ago · link · parent

Hmmm, looks very interesting. I don't need it at this moment, but maybe I'm gonna use this is 2 months when I'll have my exams...thanks!

comment 7mo ago · link · parent

One day an AI will obviously be infinitely better at driving than a human will be but that day is not yet here.

comment 7mo ago · link · parent

Thank you, have you tried it?

comment 7mo ago · link · parent

wow, I didn't know that, and I;m using markdown daily. thx!

comment 7mo ago · link · parent

Yeah, it's pretty easy to work with aggregations with this tool.
12