# Choice of unique document id and performance

**URL:** <https://discuss.elastic.co/t/choice-of-unique-document-id-and-performance/67086>\
**Category:** Elasticsearch\
**Created:** [November 24, 2016, 10:28am UTC](https://discuss.elastic.co/t/choice-of-unique-document-id-and-performance/67086 "2016-11-24T10:28:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![avaneeshr](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@avaneeshr](https://discuss.elastic.co/u/avaneeshr)\
**Post date:** [November 24, 2016, 10:28am UTC](https://discuss.elastic.co/t/choice-of-unique-document-id-and-performance/67086/1 "2016-11-24T10:28:01Z")

</div>

Hi,  
I am indexing around 100M webpages (HTML). I assign the document ID as the SHA256 of the url while indexing.  
Considering that my usage would be search query intensive (full-text, no aggregations etc.), would my choice of doc id impact query performance in any way?  
Thank you

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [November 25, 2016, 3:08pm UTC](https://discuss.elastic.co/t/choice-of-unique-document-id-and-performance/67086/2 "2016-11-25T15:08:06Z")

</div>

the choice of doc id can impact index performance, but not search performance.

---

<div class="post-metadata">

**Author:** ![avaneeshr](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@avaneeshr](https://discuss.elastic.co/u/avaneeshr)\
**Post date:** [November 25, 2016, 3:27pm UTC](https://discuss.elastic.co/t/choice-of-unique-document-id-and-performance/67086/3 "2016-11-25T15:27:09Z")

</div>

Thanks a lot for your reply Adrien!

---

<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:** [December 23, 2016, 3:27pm UTC](https://discuss.elastic.co/t/choice-of-unique-document-id-and-performance/67086/4 "2016-12-23T15:27:21Z")

</div>

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