# 2 sessions, but 4 queries

**URL:** <https://forum.inductiveautomation.com/t/2-sessions-but-4-queries/98530>\
**Category:** Ignition\
**Tags:** vision, ignition78, scripting, database\
**Created:** [November 12, 2024, 6:01pm UTC](https://forum.inductiveautomation.com/t/2-sessions-but-4-queries/98530 "2024-11-12T18:01:36Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [November 21, 2024, 12:00am UTC](https://forum.inductiveautomation.com/t/2-sessions-but-4-queries/98530/21 "2024-11-21T00:00:31Z")

</div>

Can you cut and paste that as formatted text, please? See [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831). That way the columns will line up and my head won't hurt.

In the jumble it appears that wastewaterlog has

- Key\_name: WastWaterLogt\_stampndx  
based on
- Column\_name: t\_stamp  
so that should be indexed properly.

Wasn't there a second table to be checked?

---

_[View the full topic](https://forum.inductiveautomation.com/t/2-sessions-but-4-queries/98530)._
