What are disadvantages of using Max size in queries

Elastic search generally return 10 results, But i required all the results so i used max size available. Yes i got what i needed. So, what are disadvantages of giving max value in size field of query?

At most by default you can set it to 10000. If you have less results, that will work.
If you have more, you need to either increase that default value but it has a memory cost you need to be aware of or better you can use the Scroll API which is designed to extract data.

1 Like

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