问题
I have a program written in C#, which uses Linq to NHibernate to access the data. The database backend is Postgres.
In my application, I have a table called contractors
, which has 10,000 records. Displaying all of the records in this table into a DataGridView sometimes take several minutes.
Are there any ways that I can speed up displaying this data? What are the major problems that could possibly cause such a slowdown?
回答1:
You have to use server side paging with datagridview. Datagridview is slow, and you will not display 10k rows to a user.
来源:https://stackoverflow.com/questions/8184050/linq-to-postgresql