Morning all.
Whilst I have been writing queries and messing with SQL data for a while, I'm certainly no DBA...
But I find myself in a position where I don't have a DBA, so I'm going to need to head up a fairly steep learning curve.
I have a table which has data added once each month. The data is dfor a whole month each time and I import to a temporary table and then convert into the main data table (converting the text 'date' into a smalldatetime on the way).
So far - so good.
I have indexes on the fields I query by and join to other tables, but it is still slow to do anything.
There are just over 4 million rows each month (ish). It strikes me I might ought to be having partitions on this table - so how do I start?
I've googled, and it seems I must create new file groups? Do I relly need to start with a fresh database and a new partitioned table and import everything?
Am clearly clueless so any and all help much appreciated!
Fee
"The cure for anything is salt water – sweat, tears, or the sea." Isak Dinesen
Whilst I have been writing queries and messing with SQL data for a while, I'm certainly no DBA...
But I find myself in a position where I don't have a DBA, so I'm going to need to head up a fairly steep learning curve.
I have a table which has data added once each month. The data is dfor a whole month each time and I import to a temporary table and then convert into the main data table (converting the text 'date' into a smalldatetime on the way).
So far - so good.
I have indexes on the fields I query by and join to other tables, but it is still slow to do anything.
There are just over 4 million rows each month (ish). It strikes me I might ought to be having partitions on this table - so how do I start?
I've googled, and it seems I must create new file groups? Do I relly need to start with a fresh database and a new partitioned table and import everything?
Am clearly clueless so any and all help much appreciated!
Fee
"The cure for anything is salt water – sweat, tears, or the sea." Isak Dinesen