TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Optimizing MongoDB Compound Indexes

46 pointsby jiryuover 12 years ago

3 comments

Loicover 12 years ago
About 2 years ago (time is flying) I explained how I did the same to support range queries over "n" attributes, the method ended up being in the book "<i>MongoDB, the Definitive Guide</i>" by Chodorow and Dirolf (O'Reilly):<p><a href="http://chemeo.com/doc/technology" rel="nofollow">http://chemeo.com/doc/technology</a><p>(Search for "Indexing For High Speed Search" to skip non MongoDB related information).
dkhenryover 12 years ago
What should be added to this is the ability to tell Mongo to return an error if your query requires a table scan. That one configuration item can be the difference between a request returning an error and a whole site going down for an extended period.
评论 #4628715 未加载
评论 #4628670 未加载
MartinMondover 12 years ago
Is MongoDB actually able to combine 2 or more indices?
评论 #4628182 未加载
评论 #4628335 未加载