# Default Routing and Get API performance

**URL:** <https://discuss.elastic.co/t/default-routing-and-get-api-performance/17447>\
**Category:** Elasticsearch\
**Created:** [May 11, 2014, 10:52am UTC](https://discuss.elastic.co/t/default-routing-and-get-api-performance/17447 "2014-05-11T10:52:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tai\_khuu](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@tai\_khuu](https://discuss.elastic.co/u/tai_khuu)\
**Post date:** [May 11, 2014, 10:52am UTC](https://discuss.elastic.co/t/default-routing-and-get-api-performance/17447/1 "2014-05-11T10:52:56Z")

</div>

Hi All,

I'm new to elasticsearch and still on the way to learn more , recently i  
have hit a question that can't be found on google :D, the scenario is I  
have a list of 1000 document id , the default routing said that  
elasticsearch would store the document depend on the id hash , i'm trying  
to delete all of these document , the question is the performance between  
the bulk delete and the delete by query , since i have all the document id  
would't it will be faster if i buld delete it by ids ?

Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/50a6fe41-c4f4-43a9-b19c-1704b651998f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/50a6fe41-c4f4-43a9-b19c-1704b651998f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![tai\_khuu](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@tai\_khuu](https://discuss.elastic.co/u/tai_khuu)\
**Post date:** [May 13, 2014, 9:09am UTC](https://discuss.elastic.co/t/default-routing-and-get-api-performance/17447/2 "2014-05-13T09:09:56Z")

</div>

Please some one help :(, any idea?

On Sunday, May 11, 2014 5:52:56 PM UTC+7, tai khuu wrote:

> Hi All,
> 
> I'm new to elasticsearch and still on the way to learn more , recently i  
> have hit a question that can't be found on google :D, the scenario is I  
> have a list of 1000 document id , the default routing said that  
> elasticsearch would store the document depend on the id hash , i'm trying  
> to delete all of these document , the question is the performance between  
> the bulk delete and the delete by query , since i have all the document id  
> would't it will be faster if i buld delete it by ids ?
> 
> Thanks

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2d0b43f7-ae28-480f-9437-8971fbfa5e0d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2d0b43f7-ae28-480f-9437-8971fbfa5e0d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:29am UTC](https://discuss.elastic.co/t/default-routing-and-get-api-performance/17447/3 "2017-07-06T01:29:53Z")

</div>

Closed on July 6, 2017, 1:29am UTC


