3 ms·
Well, I suppose because indexes can slow some things down (e.g. writes), and can also fail to speed other things up. They're not a magical answer to everything,
by robertlagrant 4y ago
Well, I suppose because indexes can slow some things down (e.g. writes), and can also fail to speed other things up. They're not a magical answer to everything, or they'd be on by default on everything!
But let's take your example of using an index to get all prices. How would that work?
- redwood 4y agoYou would do an aggregate query on the price field grouped by price