Okay I am sure this another stupid thing I am over looking, but after a few hours I don't where to look anymore.
I have the same database on two boxes. Well they should be the same.
One both I issue the command:
SELECT count(non_index_col) FROM BIG_TABLE
The table has 8 million records in it.
Both boxes have the same primary key/index set up, the column I am doing the count on is not indexed (I am not a DBA, I just left with this design).
On box 1 it takes 20 seconds.
On box 2 it takes 3:30 seconds.
Anybody have a clue to why? I did shrink the database (and moved the pages). What else can I do to ensure maximum performace of a database?
thanks for any help (again)
mingus
I have the same database on two boxes. Well they should be the same.
One both I issue the command:
SELECT count(non_index_col) FROM BIG_TABLE
The table has 8 million records in it.
Both boxes have the same primary key/index set up, the column I am doing the count on is not indexed (I am not a DBA, I just left with this design).
On box 1 it takes 20 seconds.
On box 2 it takes 3:30 seconds.
Anybody have a clue to why? I did shrink the database (and moved the pages). What else can I do to ensure maximum performace of a database?
thanks for any help (again)
mingus