How can you achieve high performance in DataTable when searching in it?
Are there any analogs of indexes or restrictions that will allow you to search faster?
How can you achieve high performance in DataTable when searching in it?
Are there any analogs of indexes or restrictions that will allow you to search faster?
I would suggest not to search at all in DataTable . A good approach, it seems to me, is reading data in a background thread, fetching data from them into a list of typed structures and searching is already there. To speed up, build the necessary indices (in the simplest case, just Dictionary<string, Entity> ).
(Well, in general, it seems to me that DataTable is good for applications that look like this and not like this .)
Stored Procedures and DataReader
Source: https://ru.stackoverflow.com/questions/619346/
All Articles