I have a table with 320 million+ rows and 34 columns, all of varchar(max)
datatype, and with no indexing.
I am finding it extremely time consuming to summarize the whole table. Can anyone suggest best way to optimize this considering the following purpose I need to use it:
- simple select queries
- sum on a few column
Should I go for creating a non-clustered index on sequential row number column that I have added?
My table size on disk is 185 GB approx.
I am using
- Windows Server 2008 R2
- Xeon Processor 2.09 x 2
- 16 GB RAM
- SQL Server 2008 R2
Since data has no unique column so I have already added a sequenced with integer and it took 2 days to complete the operation.