# Best way to store reference values

**URL:** <https://discuss.elastic.co/t/best-way-to-store-reference-values/124122>\
**Category:** Elasticsearch\
**Created:** [March 15, 2018, 3:01pm UTC](https://discuss.elastic.co/t/best-way-to-store-reference-values/124122 "2018-03-15T15:01:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anabella\_Cristaldi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anabella_cristaldi/32/23612_2.png) [@Anabella\_Cristaldi](https://discuss.elastic.co/u/Anabella_Cristaldi)\
**Post date:** [March 15, 2018, 3:01pm UTC](https://discuss.elastic.co/t/best-way-to-store-reference-values/124122/1 "2018-03-15T15:01:59Z")

</div>

Hi all,  
I have a Python script doing continuous checks over some data in elastic.  
I use the last\_check time to establish the next checking interval...so, I need in some way to always store the last check timestamp.

My question is: Which is the best and elegant way to store this values? Use an index for this "settings" with a single document which will be updated every time a last check is performed?  
or having multiples documents and always ask by the last value?

Any suggestion is welcome  
Regards  
Anna

---

<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 12, 2018, 3:02pm UTC](https://discuss.elastic.co/t/best-way-to-store-reference-values/124122/2 "2018-04-12T15:02:06Z")

</div>

Closed on April 12, 2018, 3:02pm UTC

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