简体   繁体   English

ASP.NET中的数据缓存

[英]Data Caching in ASP.NET

We store the location information in a table. 我们将位置信息存储在表格中。 Numbers of records are over four thousand. 记录数超过四千。 This table structure is self-recursive. 该表结构是自递归的。 In our web project, we use dropdownlist control to populate all these locations. 在我们的Web项目中,我们使用dropdownlist控件填充所有这些位置。 We got performance slow problem. 我们遇到了性能下降的问题。 So googling about Caching, we consider to use Data Caching with Sql Dependency. 因此,在搜索缓存时,我们考虑使用具有SQL依赖关系的数据缓存。 However, not found yet a full-covered sample in .NET 2.0 and SQL Server 2005 or 2008. Please share me. 但是,尚未在.NET 2.0和SQL Server 2005或2008中找到完整的示例。请与我分享。

Here are two articles with full details with sample code on working with SqlDependency Caching using Sql Server 2005 and ASP.NET 2.0 这是两篇文章,其中包含有关使用SqlServer 2005和ASP.NET 2.0进行SqlDependency缓存的示例代码的完整详细信息。

  1. Article 1 第1条
  2. Article 2 第二条

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

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