惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell
小众软件
小众软件
S
Schneier on Security
人人都是产品经理
人人都是产品经理
博客园_首页
L
LangChain Blog
D
Docker
B
Blog
阮一峰的网络日志
阮一峰的网络日志
D
DataBreaches.Net
C
Check Point Blog
WordPress大学
WordPress大学
博客园 - 聂微东
P
Palo Alto Networks Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tailwind CSS Blog
腾讯CDC
Cisco Talos Blog
Cisco Talos Blog
A
Arctic Wolf
C
Cybersecurity and Infrastructure Security Agency CISA
Help Net Security
Help Net Security
The Last Watchdog
The Last Watchdog
有赞技术团队
有赞技术团队
美团技术团队
aimingoo的专栏
aimingoo的专栏
博客园 - 叶小钗
爱范儿
爱范儿
S
Security @ Cisco Blogs
MyScale Blog
MyScale Blog
C
Cisco Blogs
P
Proofpoint News Feed
I
Intezer
Last Week in AI
Last Week in AI
The Register - Security
The Register - Security
IT之家
IT之家
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Help Net Security
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Latest news
Latest news
M
MIT News - Artificial intelligence
N
News | PayPal Newsroom
G
Google Developers Blog
Cloudbric
Cloudbric
T
Troy Hunt's Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Recorded Future
Recorded Future
Hugging Face - Blog
Hugging Face - Blog
AWS News Blog
AWS News Blog

博客园 - aimar

常见的 Web 项目转换问题及解决方案(转载) 在VS2005 正确地创建、部署和维护由1.1迁移到ASP.NET 2.0 应用程序 ajax用户控件中读取session的问题 - aimar - 博客园 世界杯分组与赛程 可否在vs2005中开发asp.net1.1的项目? 试用了一下google的个性化主页 Asp.net WebControls基本概念 连接sql2005 SqlServer2000的xml功能 DotNet2.0中上传文件 - aimar - 博客园 Oracle相关资源 关于使用存储过程的一些好处以及注意事项 DataGrid生成序号列 - aimar - 博客园 asp.net常用函数 Asp.Net2.0编译模式 Asp.Net2.0的改变 ASP.NET 2.0 Beta2中页面编译模型的变化 Rss应用(二) 抽取Rss Rss应用(一) 创建rss
数据库访问程序块的效率问题
aimar · 2006-01-18 · via 博客园 - aimar

看了一下,觉得微软的企业应用程序块很不错,可测试了一下数据库应用程序块后发现它的效率也太低了。不过可以参照它的架构做自己的。

测试环境是sqlserver 2000 ,表中数据为294条记录。表的结构为

CREATE TABLE [dbo].[dSchool] (
    
[sch_no] [varchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
    
[sch_name] [varchar] (256) COLLATE Chinese_PRC_CI_AS NULL ,
    
[indate] [datetime] NULL ,
    
[inuse] [bit] NULL 
ON [PRIMARY]
GO

在Page_Load里绑定一个DataList,第一次使用自己的,第二次使用微软的,通过两次使用数据库的时间差来判断,下面是七次测试数据,两个第一次加载的时候都比较慢,后来的几次快了点

页面第?次刷新    自己的访问类 微软的DAAB
1    620.4588  2542.2315
2   41.093 169.8691       
3 78.2046 103.3534
4   39.1949 141.649
38.9681 103.0002       
67.7843 115.1742
42.0886 129.8916       


基本上微软的daab要保持在110左右,自己的直接访问类保持在40之间

应该是这个程序块考虑了太得多通用性,使得运行效率比较低