# Can you write to more than one data source at a time?

**URL:** <https://forum.inductiveautomation.com/t/can-you-write-to-more-than-one-data-source-at-a-time/17632>\
**Category:** Ignition\
**Created:** [April 7, 2018, 12:25am UTC](https://forum.inductiveautomation.com/t/can-you-write-to-more-than-one-data-source-at-a-time/17632 "2018-04-07T00:25:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cagibson](https://avatars.discourse-cdn.com/v4/letter/c/e480ec/32.png) [@cagibson](https://forum.inductiveautomation.com/u/cagibson)\
**Post date:** [April 7, 2018, 12:25am UTC](https://forum.inductiveautomation.com/t/can-you-write-to-more-than-one-data-source-at-a-time/17632/1 "2018-04-07T00:25:45Z")

</div>

Hello, I have a project where a default data source has been chosen. I want to be able to write to two data bases at the same time. Is this possible in ignition? It is only letting me push data into the selected default DB and not the other. I’m using the same script for writing to both data bases. Thanks!!

---

<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:** [April 7, 2018, 1:22am UTC](https://forum.inductiveautomation.com/t/can-you-write-to-more-than-one-data-source-at-a-time/17632/2 "2018-04-07T01:22:37Z")

</div>

Yes, you just have to specify in the script call which database to write to at that point (by data source name).

---

<div class="post-metadata">

**Author:** ![R.Alamsha](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@R.Alamsha](https://forum.inductiveautomation.com/u/R.Alamsha)\
**Post date:** [April 7, 2018, 6:59am UTC](https://forum.inductiveautomation.com/t/can-you-write-to-more-than-one-data-source-at-a-time/17632/3 "2018-04-07T06:59:10Z")

</div>

Introduction to MySQL InnoDB Cluster

For MySQL, i think this is a better solution.
