# Why does indexation load create query load?

**URL:** <https://discuss.elastic.co/t/why-does-indexation-load-create-query-load/326055>\
**Category:** Elasticsearch\
**Created:** [February 21, 2023, 10:56am UTC](https://discuss.elastic.co/t/why-does-indexation-load-create-query-load/326055 "2023-02-21T10:56:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alsyia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alsyia/32/87334_2.png) [@alsyia](https://discuss.elastic.co/u/alsyia)\
**Post date:** [February 21, 2023, 10:56am UTC](https://discuss.elastic.co/t/why-does-indexation-load-create-query-load/326055/1 "2023-02-21T10:56:16Z")

</div>

Hi everyone,

I've noticed when my ES (5.6) cluster is indexing lots of documents the number of queries being answered also increases. I index using the op\_type "create" with predefined ids, so I guess this is just the cluster checking whether the document exists before indexing it, but I'm surprised this appear as queries and not get requests? Shouldn't get requests be more efficient since it's checking by id?

I use the Datadog metrics "elasticsearch.search.query.total.count" and "elasticsearch.search.query.time.count" to monitor the load.

Thanks! 🙂

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 21, 2023, 9:36pm UTC](https://discuss.elastic.co/t/why-does-indexation-load-create-query-load/326055/2 "2023-02-21T21:36:32Z")

</div>

If you are replacing a document with a static ID then it'll be directly routed to the required shard to do that. I don't recall if Elasticsearch does a direct get on the ID or if it uses a search.

> [@alsyia](#):
>
> my ES (5.6) cluster

That version is also [EOL](https://www.elastic.co/support/eol) and no longer supported, you should be looking to upgrade as a matter of urgency as there's literally years of improvements you are missing out on.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 21, 2023, 9:36pm UTC](https://discuss.elastic.co/t/why-does-indexation-load-create-query-load/326055/3 "2023-03-21T21:36:34Z")

</div>

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