B
berandor
I have two tables within a dataset. Each table has
roughly 200k rows in it each row is 8-10 columns.
In case A: I setup a DataRow[] rows = ...Select(null,
SortCriteria);
i then iterate the DataRow array and end up deleting
roughly 15k of the rows.
This happens very quickly (a second or two)
In case B: I setup a DataRow[] rows = ...Select
(SelectionCriteria, null);
I then iterate this array and delete roughly 4k rows.
this happens quite a bit more slowly (about 35 seconds)
In neither case am I saving this data back to the
database and I have eliminated all additional code so
that I am simply deleting.
Is this common? I have another approach for solving my
overall business problem and it will be fast, it
unfortunately will not be as elegant as using delete.
roughly 200k rows in it each row is 8-10 columns.
In case A: I setup a DataRow[] rows = ...Select(null,
SortCriteria);
i then iterate the DataRow array and end up deleting
roughly 15k of the rows.
This happens very quickly (a second or two)
In case B: I setup a DataRow[] rows = ...Select
(SelectionCriteria, null);
I then iterate this array and delete roughly 4k rows.
this happens quite a bit more slowly (about 35 seconds)
In neither case am I saving this data back to the
database and I have eliminated all additional code so
that I am simply deleting.
Is this common? I have another approach for solving my
overall business problem and it will be fast, it
unfortunately will not be as elegant as using delete.