# Query string length will affect the performance?

**URL:** https://discuss.elastic.co/t/query-string-length-will-affect-the-performance/171871
**Category:** Elasticsearch
**Created:** [March 12, 2019, 6:38am UTC](https://discuss.elastic.co/t/query-string-length-will-affect-the-performance/171871 "2019-03-12T06:38:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MARY\_XIAO](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@MARY\_XIAO](https://discuss.elastic.co/u/MARY_XIAO)
#### Post date: [March 12, 2019, 6:38am UTC](https://discuss.elastic.co/t/query-string-length-will-affect-the-performance/171871/1 "2019-03-12T06:38:49Z")

</div>

hi,  
i know the ElasticSearch has length limitation on query string. But will the performance vary with the length of query string? when the total documents are thousands, we call get the recall. when data size comes to millions, the query string length should be within 20 characters, otherwise timeout will occur. but does the length of query really influence the performance of the ElasticSearch?

---

<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: [April 9, 2019, 6:38am UTC](https://discuss.elastic.co/t/query-string-length-will-affect-the-performance/171871/2 "2019-04-09T06:38:51Z")

</div>

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