William Sullivan
2005-08-25 18:31:02 UTC
I know DataSets are threadsafe, but what about DataViews from the DefaultView
accessor? Here's the situation: ASP.NET application; DataSets in the Cache;
Each session gets a DataView from each DataSet via DefaultView, applies a
filter to that DataView, and displays the result to the user. From what I
understand, if two threads grab the same DefaultView from the same DataSet,
and each applies a filter to it, the data displayed to both users will be the
same (it will be what is allowed by the last filter applied). Is this true?
Right now, when I grab the DefaultView, I Copy() the DataTable before. The
DataTables might contain a million or so entries, so this could bog stuff
down in the extreme case...
accessor? Here's the situation: ASP.NET application; DataSets in the Cache;
Each session gets a DataView from each DataSet via DefaultView, applies a
filter to that DataView, and displays the result to the user. From what I
understand, if two threads grab the same DefaultView from the same DataSet,
and each applies a filter to it, the data displayed to both users will be the
same (it will be what is allowed by the last filter applied). Is this true?
Right now, when I grab the DefaultView, I Copy() the DataTable before. The
DataTables might contain a million or so entries, so this could bog stuff
down in the extreme case...