I need to fetch a bunch of documents by _id.
"Multi Get API" should be faster but "Ids Query" is more flexible (works with aliases for example).
I'm doing some simple tests:
- fetch 1000 ids from elasticsearch using a "match all" query.
- fetch 1000 document by _id using a multi-get query.
- fetch 1000 document by _id using an ids query.
and I'm noticing pretty the same response time.
So my question is:
better using an "Ids Query" or the "Multi Get API"?