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

推荐订阅源

cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
CERT Recently Published Vulnerability Notes
V
Vulnerabilities – Threatpost
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
Schneier on Security
Schneier on Security
T
Threatpost
P
Proofpoint News Feed
MongoDB | Blog
MongoDB | Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
大猫的无限游戏
大猫的无限游戏
T
Threat Research - Cisco Blogs
罗磊的独立博客
Security Latest
Security Latest
D
Docker
S
Secure Thoughts
博客园 - 聂微东
A
Arctic Wolf
Recorded Future
Recorded Future
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
The Cloudflare Blog
P
Palo Alto Networks Blog
Project Zero
Project Zero
Blog — PlanetScale
Blog — PlanetScale
D
Darknet – Hacking Tools, Hacker News & Cyber Security
H
Help Net Security
T
The Blog of Author Tim Ferriss
Latest news
Latest news
AWS News Blog
AWS News Blog
U
Unit 42
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
Know Your Adversary
Know Your Adversary
Vercel News
Vercel News
WordPress大学
WordPress大学
Spread Privacy
Spread Privacy
F
Full Disclosure
Martin Fowler
Martin Fowler
T
The Exploit Database - CXSecurity.com
Attack and Defense Labs
Attack and Defense Labs
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
V
V2EX
M
MIT News - Artificial intelligence
P
Proofpoint News Feed
小众软件
小众软件
宝玉的分享
宝玉的分享

博客园 - 天涯

Prism.Interactivity 和 Prism.Modularity 介绍 Prism BindableBase 和 Commands 的介绍 对 mvvm 架构的理解 wpf mvvm 架构 C#硬件开发业务流程调试技巧 wpf winform 截图 wpf Cannot locate resource 'app.xaml' app.config ConfigSection 保护 .net 变量缓存,你知道吗 wpf 多线程 更新UI 界面 wpf treeview 绑定不同的对象 .net 技术,你掌握了多少 aspx 中确认删除 脚本 - 天涯 .net 中对类的扩展 奇怪--ORA-12154:TNS:无法处理服务名: 建模十条原则 由软件加壳谈起 Hashtable 应注意的 2 点 vb 调用c#做的com 组件
程序开发注意4项,你知道吗?
天涯 · 2011-09-30 · via 博客园 - 天涯

程序开发注意以下4项,

1:它们应该最小化请求数据库中数据的次数。可以使用分布的数据库对象(如物化视图)来帮助减少查询数据库的次数。
 2:相同应用程序的不同用户应该以非常类似的方式查询数据库。数据的共享不仅包括检索的表和行,还有使用的查询。如果查询相同,则查询的解析版本就可能已经存在于共享的SQL 池中,从而减少处理查询所需的时间量。
 3:应该限制使用动态SQL。按照定义,动态SQL 直到运行时才被定义。应用程序的动态SQL 第一次可以选择几行,第二次对有序表执行若干完整的表扫描,第三次以不注意的方式执行迪卡尔连接(或在select 语句中使用cross join 关键字有意识地执行迪卡尔连接)。另外,没有办法可以保证动态生成的SQL
语句在语法上是正确的,直到运行时。动态生成的SQL 是一把双刃剑:既具有根据用户输入动态创建SQL的灵活性,又可能对内部应用程序和外部网站应用程序产生SQL 攻击。
  4:应该最小化打开和关闭数据库中会话的次数。如果应用程序重复打开会话,执行少量的命令,然后关闭会话,则SQL 的性能就可能是整体性能中的次要因素。会话管理可能比应用程序中的其他任何步骤都花费更多的时间。