B
Bill
What is the fastest way to sort two columns and one million rows?
I currently have no database for this application and am wondering if
I should distribute access or sql server express to speed up a sort
routine.
I am currently adding rows, one at a time, to a dataset. The data
comes from a text file, where I parse out two sets of data, one a
number and the second an alpha string. I insert them into the dataset.
At certain points I need to sort based on the first column(number) and
I create a Dataview for this and use the dataview sort method. I then
write the dataset out to a text file, clear the dataset and start
adding data for the next sort. When I have to sort a large number of
rows, it is very slow. One million rows takes over three minutes for
the sort.
What would be faster? I tried Access but with a large number of rows,
the insert slowed down and I could not find a way to do a bulk insert
with access -if there is one, then maybe Access would be faster than
what I have. I tried the insert with and without having the first
column indexed in the table and it was slow both ways. Does Sql
Server Express support any type of bulk loading?
Other than the need to sort two columns, I have a lot of control over
the data source, etc.
I currently have no database for this application and am wondering if
I should distribute access or sql server express to speed up a sort
routine.
I am currently adding rows, one at a time, to a dataset. The data
comes from a text file, where I parse out two sets of data, one a
number and the second an alpha string. I insert them into the dataset.
At certain points I need to sort based on the first column(number) and
I create a Dataview for this and use the dataview sort method. I then
write the dataset out to a text file, clear the dataset and start
adding data for the next sort. When I have to sort a large number of
rows, it is very slow. One million rows takes over three minutes for
the sort.
What would be faster? I tried Access but with a large number of rows,
the insert slowed down and I could not find a way to do a bulk insert
with access -if there is one, then maybe Access would be faster than
what I have. I tried the insert with and without having the first
column indexed in the table and it was slow both ways. Does Sql
Server Express support any type of bulk loading?
Other than the need to sort two columns, I have a lot of control over
the data source, etc.