I have a Join query that is hitting a table with about 4 million records and about two others that about 1.5 million each.
The query used to run fine but lately is beginning to really creep (about 13 minutes for 50000 records returned).
I started looking around Control Center hoping to trip across some hint as to why and found the Table Spaces entries.
Reading up on TEMPSPACE1 confirmed my theory that any JOIN query will need to build a Temporary table and that that temp table would be stored in this Table Space.
My thought is that I need to increase the Allocated Size (which is currently 1) but my boss believes that the size is dynamic and grows and contracts as need be.
Which is true and if it's not the size of the Table Space, is there something else I can look at to try to speed things up (maybe Buffer Pools or something else)
TIA.
The query used to run fine but lately is beginning to really creep (about 13 minutes for 50000 records returned).
I started looking around Control Center hoping to trip across some hint as to why and found the Table Spaces entries.
Reading up on TEMPSPACE1 confirmed my theory that any JOIN query will need to build a Temporary table and that that temp table would be stored in this Table Space.
My thought is that I need to increase the Allocated Size (which is currently 1) but my boss believes that the size is dynamic and grows and contracts as need be.
Which is true and if it's not the size of the Table Space, is there something else I can look at to try to speed things up (maybe Buffer Pools or something else)
TIA.