HackerTrans
TopNewTrendsCommentsPastAskShowJobs

RoxiHaidi

no profile record

Submissions

[untitled]

1 points·by RoxiHaidi·mese scorso·0 comments

[untitled]

1 points·by RoxiHaidi·mese scorso·0 comments

[untitled]

1 points·by RoxiHaidi·2 mesi fa·0 comments

[untitled]

1 points·by RoxiHaidi·2 mesi fa·0 comments

Common MongoDB Mistakes Developers Make (and How to Fix Them)

visualeaf.com
4 points·by RoxiHaidi·2 mesi fa·2 comments

How to Optimize MongoDB Query Performance with Indexes

visualeaf.com
15 points·by RoxiHaidi·2 mesi fa·9 comments

How to Automate MongoDB Imports, Exports, and Sync Jobs

youtube.com
2 points·by RoxiHaidi·2 mesi fa·0 comments

MongoDB Compass Alternative

visualeaf.com
6 points·by RoxiHaidi·3 mesi fa·6 comments

comments

RoxiHaidi
·2 mesi fa·discuss
Nice info, suppose you are a woman like me, based on the colors....keep going!
RoxiHaidi
·2 mesi fa·discuss
Yeah, they need to use a different approach.
RoxiHaidi
·2 mesi fa·discuss
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...
RoxiHaidi
·2 mesi fa·discuss
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.
RoxiHaidi
·2 mesi fa·discuss
wow, that's very interesting and super useful!
RoxiHaidi
·2 mesi fa·discuss
Are you kidding? is top 5 worldwide....

https://db-engines.com/en/ranking
RoxiHaidi
·2 mesi fa·discuss
That's impressive! good job
RoxiHaidi
·2 mesi fa·discuss
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.
RoxiHaidi
·3 mesi fa·discuss
great job, thank you for this teacher!
RoxiHaidi
·3 mesi fa·discuss
Looks incredible neat! I'll give it a try! Congrats!
RoxiHaidi
·3 mesi fa·discuss
Same, I am from the 3x plan and canceled and switched to Codex 2 days ago...
RoxiHaidi
·3 mesi fa·discuss
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...
RoxiHaidi
·3 mesi fa·discuss
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!
RoxiHaidi
·3 mesi fa·discuss
One day an AI will obviously be infinitely better at driving than a human will be but that day is not yet here.
RoxiHaidi
·3 mesi fa·discuss
Thank you, have you tried it?
RoxiHaidi
·3 mesi fa·discuss
wow, I didn't know that, and I;m using markdown daily. thx!
RoxiHaidi
·3 mesi fa·discuss
Yeah, it's pretty easy to work with aggregations with this tool.
RoxiHaidi
·3 mesi fa·discuss
Thanks! Really appreciate your comment :) It has a free community edition if you wanna try it.
RoxiHaidi
·3 mesi fa·discuss
[dead]