DataView question

X

xxx

I have defined a DataView on a DataTable and set Sort and RowFilter
properties so index is built for the view.

If I add/delete rows from the DataTable, does the DataView index get
rebuilt after each add/delete?
If so, how much does that affect performance?
 
A

Arne Vajhøj

I have defined a DataView on a DataTable and set Sort and RowFilter
properties so index is built for the view.

If I add/delete rows from the DataTable, does the DataView index get
rebuilt after each add/delete?
If so, how much does that affect performance?

How many rows in total do you have?

With a sane number then I find it difficult to believe
it should make a noticeable difference.

To pick some random numbers as an example:

1000 rows x 50 ops for each row x 20 instructions per ops x 1 ns per
instruction = 0.001 second

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top