Mongodb performance difference between Hash and Ascending indices (Any reason not to use hash in a not ordered field?)
For the query db.products.find( { key: “a” } ), which one is more performant? Given that field key is indexed in both cases, the complexity index search itself would be very similar. As the value of a would be hashed, and stored in the index tree. If we’re looking for the overal performance cost, the … Read more