# Making a Query Tag Execution Mode Fixed Rate AND Event Driven?

**URL:** <https://forum.inductiveautomation.com/t/making-a-query-tag-execution-mode-fixed-rate-and-event-driven/100057>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [December 19, 2024, 6:41pm UTC](https://forum.inductiveautomation.com/t/making-a-query-tag-execution-mode-fixed-rate-and-event-driven/100057 "2024-12-19T18:41:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben522326](https://avatars.discourse-cdn.com/v4/letter/b/b4bc9f/32.png) [@Ben522326](https://forum.inductiveautomation.com/u/Ben522326)\
**Post date:** [December 19, 2024, 6:41pm UTC](https://forum.inductiveautomation.com/t/making-a-query-tag-execution-mode-fixed-rate-and-event-driven/100057/1 "2024-12-19T18:41:51Z")

</div>

Looking for some ideas on the best way to implement this logic...

I have a perspective view that reads data from a query tag and displays this data in a table. I also have an embedded view in this view, where a user can insert data into the same database table that the query tag reads from. I have the execution mode of this query tag set to Fixed Rate at 60 seconds.

I would also like to have this query tag execute on some event, such as a user clicking the button to insert data into this database table. Essentially, I want the query tag to execute once every 60 seconds AND whenever a user clicks the button to insert data into the database table.

I don't know of any simple way to do this, perhaps I'm missing something. What is the best way to accomplish 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:** [December 19, 2024, 6:52pm UTC](https://forum.inductiveautomation.com/t/making-a-query-tag-execution-mode-fixed-rate-and-event-driven/100057/2 "2024-12-19T18:52:53Z")

</div>

Don't use a query tag. They only update on pace if using a fixed rate.

Use a named query directly tied to your UI. Refresh the binding when desired.

---

<div class="post-metadata">

**Author:** ![ryan.perretta](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.perretta/32/75110_2.png) [@ryan.perretta](https://forum.inductiveautomation.com/u/ryan.perretta)\
**Post date:** [December 19, 2024, 6:52pm UTC](https://forum.inductiveautomation.com/t/making-a-query-tag-execution-mode-fixed-rate-and-event-driven/100057/3 "2024-12-19T18:52:53Z")

</div>

Appears to be a similar issue to what is being dealt with here in this topic. Seems like the best option is here:

> [@Refresh or update a query tag](https://forum.inductiveautomation.com/t/refresh-or-update-a-query-tag/78361/2):
>
> Consider not using a query tag, but dataset memory tag.

The post is dated but looks like a solid solution still.
