# Query execution performance

**URL:** <https://discuss.elastic.co/t/query-execution-performance/165750>\
**Category:** Elasticsearch\
**Created:** [January 25, 2019, 10:47am UTC](https://discuss.elastic.co/t/query-execution-performance/165750 "2019-01-25T10:47:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hichMEN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hichmen/32/40216_2.png) [@hichMEN](https://discuss.elastic.co/u/hichMEN)\
**Post date:** [January 25, 2019, 10:47am UTC](https://discuss.elastic.co/t/query-execution-performance/165750/1 "2019-01-25T10:47:58Z")

</div>

Hi,

I'm nooby on elasticsearch, I work on a project which uses a standalone elasticsearch on a spring boot application.

I index my data from an hbase database, and when I execute an elasticsearch query, I have an offset of execution time (from 1s to 5s see more).

I tried to use JProfiler to get the jvm indicators:

 ![jpr](https://us1.discourse-cdn.com/elastic/original/3X/2/7/27efed89dca8f1f7dc5cb11c721fbbbd1e05b6d5.png)

So it seems, that the problem is on the elasticsearch transport layer, and I would know what would be the origin of the problem: elasticsearch configuration, indexation configuration, ....

Thank you 🙂  
cheers;

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 25, 2019, 11:06am UTC](https://discuss.elastic.co/t/query-execution-performance/165750/2 "2019-01-25T11:06:30Z")

</div>

What kind of query? Could you run a search API call without any query and tell how fast is it?

Also you should switch if possible to the REST Client as the Transport one is deprecated.

---

<div class="post-metadata">

**Author:** ![hichMEN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hichmen/32/40216_2.png) [@hichMEN](https://discuss.elastic.co/u/hichMEN)\
**Post date:** [January 25, 2019, 2:41pm UTC](https://discuss.elastic.co/t/query-execution-performance/165750/3 "2019-01-25T14:41:44Z")

</div>

Thank you @dadoonet for your response,  
it is a simple query, when I run out of application, it takes: Searched 1 of 1 shards. 15380 hits. 0.291 seconds

Can I use x-pack (or https) with REST Client? is the switch consequent?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 25, 2019, 4:34pm UTC](https://discuss.elastic.co/t/query-execution-performance/165750/4 "2019-01-25T16:34:02Z")

</div>

What your code is looking like?

> Can I use x-pack (or https) with REST Client?

Yes.

> is the switch consequent?

It depends on what you were doing and how.

---

<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:** [February 22, 2019, 4:34pm UTC](https://discuss.elastic.co/t/query-execution-performance/165750/5 "2019-02-22T16:34:02Z")

</div>

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