I have a query to populate a table. And it seems the database faults when too much data is queried.
I also noticed 4/8 and at one point 7/8 DB connections. Even though I have 1 project session and 1 designer open. So at max I'd think only 2/8 should be active.
Your screengrab shows the structure of your transaction group which is putting data into your database. Your original post shows problems with SELECT statements which are getting data out of your database.
I'm suggesting that you examine the database structure, check the t_stamp column types and the presence or absence of indices on the t_stamp columns.
I think you're missing some database management skills here - or maybe you don't have permissions to administer the database. We still don't know if your t_stamp colums are indexed.
During database installation it is normal to include an administration tool which allows creation / editing / deletion of database and tables and, what we're looking for, the indexes. The indexing creates a list of all the records sorted by one or more columns specified in the index definition. Setting this up allows much, much faster query times.
What flavour of SQL are you running? MariaDB / MySQL, MS SQL, PostgreSQL, Oracle or something else?
Do you have administration rights to the database - or a contact who does?
Can you find the administration tool? e.g., For MySQL / MariaDB MySqlWorkbench is popular.
Let's see if we can figure it out using Ignition's Named Query editor. Try this:
Go to Project Browser | Named Queries.
Create a new blank query "IndexCheck".
Open the Authoring tab.
From the Database Connections dropdown select your database. Your main and sub table names should now appear in the Table Browser on the right of the window.
In the Query text area, enter the following: SHOW INDEXES FROM xxxxxx
Replace xxxxx with the name of your either your main or sub table (listed in the Table Browser).
Open the Testing tab.
Hit Execute Query.
Post a nicely cropped screengrab here, showing the column headers and data for columns Table through to Collation. It should look something like this.