# Idempotency and HistoryService

**URL:** <https://forum.camunda.io/t/idempotency-and-historyservice/4809>\
**Category:** Discussion & Questions\
**Tags:** process-engine\
**Created:** [September 17, 2017, 6:12pm UTC](https://forum.camunda.io/t/idempotency-and-historyservice/4809 "2017-09-17T18:12:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Webcyberrob](https://forum.camunda.io/user_avatar/forum.camunda.io/webcyberrob/32/5990_2.png) [@Webcyberrob](https://forum.camunda.io/u/Webcyberrob)\
**Post date:** [September 17, 2017, 9:09pm UTC](https://forum.camunda.io/t/idempotency-and-historyservice/4809/3 "2017-09-17T21:09:30Z")

</div>

Hi

[This thread](https://forum.camunda.io/t/idempotent-start-process-patterns/3315) may be of interest…

You could consider normalising your process variable name/value pairs, then producing a hash of the content and storing it as another process variable. This hash would represent the initial state which would not change with subsequent updates. Thus you can also perform a variable query through history using this value which should be more efficient than scanning for multiple variables…

regards

Rob

---

_[View the full topic](https://forum.camunda.io/t/idempotency-and-historyservice/4809)._
