# HTTP JSON API query store recovery

**URL:** <https://forum.canton.network/t/http-json-api-query-store-recovery/158>\
**Category:** App Development\
**Created:** [April 16, 2020, 3:57pm UTC](https://forum.canton.network/t/http-json-api-query-store-recovery/158 "2020-04-16T15:57:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![georg](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/georg/32/368_2.png) [@georg](https://forum.canton.network/u/georg)\
**Post date:** [April 16, 2020, 3:57pm UTC](https://forum.canton.network/t/http-json-api-query-store-recovery/158/1 "2020-04-16T15:57:09Z")

</div>

If I use a persistent query store with the JSON API (using the `--query-store-jdbc-config` option) what happens if the API process dies and I restart it? Will it wipe the database or can it recover and rehydrate using the already stored data?

---

<div class="post-metadata">

**Author:** ![Leonid\_Shlyapnikov](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/leonid_shlyapnikov/32/241_2.png) [@Leonid\_Shlyapnikov](https://forum.canton.network/u/Leonid_Shlyapnikov)\
**Post date:** [April 20, 2020, 3:41pm UTC](https://forum.canton.network/t/http-json-api-query-store-recovery/158/2 "2020-04-20T15:41:39Z")

</div>

It will recover, continue from the last known indexed active contract set and update it to the current state.
