Are documents with similar ids stored together?


Does the id (the _id field) of a document have any consequence on where and how it is stored and compressed, ie will 2 documents with "close" ids be stored together or not ?
In other words, I'm trying to figure out if computing an id based on certain fields for a given document before indexing will let me query these documents faster later or not

Thank you for your help !

No. Documents are assigned to shards based on a hash if the id so that is not the case.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.