# Using storage provider on condition?

**URL:** <https://forum.inductiveautomation.com/t/using-storage-provider-on-condition/74434>\
**Category:** Ignition\
**Created:** [June 1, 2023, 1:11pm UTC](https://forum.inductiveautomation.com/t/using-storage-provider-on-condition/74434 "2023-06-01T13:11:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahman.tarek](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@rahman.tarek](https://forum.inductiveautomation.com/u/rahman.tarek)\
**Post date:** [June 1, 2023, 1:11pm UTC](https://forum.inductiveautomation.com/t/using-storage-provider-on-condition/74434/1 "2023-06-01T13:11:50Z")

</div>

Hello,

I have this case where if the data pertains to a certain product we want to store in a different storage provider than our default one. As far as i could see you cannot really script conditions on the storage provider. Any thoughts on how i could do this?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 1, 2023, 1:14pm UTC](https://forum.inductiveautomation.com/t/using-storage-provider-on-condition/74434/2 "2023-06-01T13:14:52Z")

</div>

Don't use the historian at all. Use tag change events and/or timer events to script the insert of history to your database, selecting the right one on the fly.

---

<div class="post-metadata">

**Author:** ![nideyijuyidong](https://avatars.discourse-cdn.com/v4/letter/n/7cd45c/32.png) [@nideyijuyidong](https://forum.inductiveautomation.com/u/nideyijuyidong)\
**Post date:** [June 1, 2023, 1:23pm UTC](https://forum.inductiveautomation.com/t/using-storage-provider-on-condition/74434/3 "2023-06-01T13:23:33Z")

</div>

Store in a single database first, and then synchronize data based on conditions. If the data on both sides is inconsistent, it will be too troublesome.
