# When using IntPoint/LongPoint or StringField as Document primary key, which performance is the best, why?

**URL:** <https://discuss.elastic.co/t/when-using-intpoint-longpoint-or-stringfield-as-document-primary-key-which-performance-is-the-best-why/129260>\
**Category:** Elasticsearch\
**Created:** [April 24, 2018, 8:37am UTC](https://discuss.elastic.co/t/when-using-intpoint-longpoint-or-stringfield-as-document-primary-key-which-performance-is-the-best-why/129260 "2018-04-24T08:37:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shijiebei2009](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shijiebei2009/32/22000_2.png) [@shijiebei2009](https://discuss.elastic.co/u/shijiebei2009)\
**Post date:** [April 24, 2018, 8:37am UTC](https://discuss.elastic.co/t/when-using-intpoint-longpoint-or-stringfield-as-document-primary-key-which-performance-is-the-best-why/129260/1 "2018-04-24T08:37:44Z")

</div>

I wonder to know, what's the difference between IntPoint/LongPoint and StringField as primary key of a Document, and when searching which one is the most fast?

---

<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:** [May 22, 2018, 8:37am UTC](https://discuss.elastic.co/t/when-using-intpoint-longpoint-or-stringfield-as-document-primary-key-which-performance-is-the-best-why/129260/2 "2018-05-22T08:37:46Z")

</div>

Closed on May 22, 2018, 8:37am UTC

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