简体   繁体   English

在客户端使用SQL Server表的最佳实践

[英]Best Practice to Use SQL Server Table in Client Side

can someone please recommend the best practice to use SQL Server Tables on Client Side? 有人可以推荐在客户端上使用SQL Server表的最佳实践吗? (ASP.NET C#) (ASP.NET C#)

For example: let's say that I have a table with more that 2 millions rows, then when I do the query in my website it takes too long to respond. 例如:假设我有一个包含超过200万行的表,那么当我在网站上进行查询时,响应时间太长。 So the idea is like loading the tables in client side so that I could query without going to the server for every single query. 所以这个想法就像在客户端加载表,这样我就可以查询而不需要为每个查询都去服务器了。

I'm not sure is this is possible...or if this can be implemented in other way... 我不确定这是否可能...或是否可以其他方式实现...

I'm using SQL Sever 2012 and Visual Studio 2013 ASP.NET C# 我正在使用SQL Sever 2012和Visual Studio 2013 ASP.NET C#

Thanks, 谢谢,

  1. Don't do it. 不要这样 Don't load 2M rows into the client. 不要将2M行加载到客户端中。
  2. A number of controls, ie Telerik and Infragistics, provide for buffered, paginated and virtual data access. 许多控件(例如Telerik和Infragistics)提供缓冲,分页和虚拟数据访问。 Don't re-invent the wheel. 不要重新发明轮子。
  3. If you must, use Dapper, which by default buffers all data. 如果需要,请使用Dapper,默认情况下,Dapper会缓冲所有数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM