ended6μ 24μΌΒ· 1 sources
MongoDB Indexes Finally Clicked for Me: Understanding Indexes, Compound Indexes & the Prefix Rule π
Why it matters
While working on a MERN project, I came across these indexes: transactionSchema.index({ user: 1, date: -1 }); transactionSchema.index({ user: 1, type: -1 }); transactionSchema.index({ user: 1, categor...
1
Sources
+0
24h
β
Growth
89d
Active