Linq to Postgresql

ⅰ亾dé卋堺 提交于 2019-12-08 12:23:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!