Hi all,
I have got the following (beginner) question regarding views:
I have a machine, that inserts data into a db2 table, using the same user, that queries the table. So, sometimes the query can take a while, as the insert is still ongoing. (2-3 minutes sometimes)
The table has now ~3mil rows.
I thought that I build a View for the table, and redirect the query to the view, as the insert remains on the original table.
Q1: Would it solve my problem with the sometimes long waiting times?
Q2: Is the view always up-to-date with the original table, or how long does it "lag" ?
Q3: Is it a huge workload for the db, or like nothing? (db itself is like 30Gb in size)
Hope i was clear with the situation, and unfortunately i cannot change the users, so this is not really an option
Thank you very much for your responses and time in advance !