# Strategies for working with often updated documents

**URL:** <https://discuss.elastic.co/t/strategies-for-working-with-often-updated-documents/22821>\
**Category:** Elasticsearch\
**Created:** [March 23, 2015, 12:52pm UTC](https://discuss.elastic.co/t/strategies-for-working-with-often-updated-documents/22821 "2015-03-23T12:52:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![11181](https://avatars.discourse-cdn.com/v4/letter/1/34f0e0/32.png) [@11181](https://discuss.elastic.co/u/11181)\
**Post date:** [March 23, 2015, 12:52pm UTC](https://discuss.elastic.co/t/strategies-for-working-with-often-updated-documents/22821/1 "2015-03-23T12:52:23Z")

</div>

I have forum. And every topic has such field as viewCount - how many times topic was viewed by forum users.

I wanted that all fields of topics were taken from ES (id,date,title,content and viewCount). However, this case after every topic view ES must reindex entire document again - I asked the question about particial update at stack - [http://stackoverflow.com/questions/28937946/partial-update-on-field-that-is-not-indexed](http://stackoverflow.com/questions/28937946/partial-update-on-field-that-is-not-indexed) .

It means that if topic is viewed 1000 times ES will index it 1000 times. And if I have a lot of users many documents will be indexed again and again. This is first strategy.

The second strategy, as I think is to take some fields of topic from index and some from database. At this case I take viewAcount from DB. However, then I can store all fields in DB and use index only as INDEX - to get ids of current topic.

Are there better strategies? What is the best way to solve such problem? Please, help me.

--  
Александр Свиридов

--  
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/1427115143.616916807%40f207.i.mail.ru](https://groups.google.com/d/msgid/elasticsearch/1427115143.616916807%40f207.i.mail.ru).  
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, 12:24am UTC](https://discuss.elastic.co/t/strategies-for-working-with-often-updated-documents/22821/2 "2017-07-06T00:24:51Z")

</div>


