DB
lightxun
这个作者很懒,什么都没留下…
展开
-
提高上百万条的数据库查询速度
1、对查询进行优化,应尽量避免全表扫描,首先应考虑在where及order by 涉及的列上建立索引。 2、应尽量避免在where子句中对字段进行null值判断,否则将导致引擎放弃使用索引而尽心全表扫描,如: select id from t where num is null 可以在num上设置默认值0,确保表中num列没有null值,然后这样查询: select ...原创 2013-08-26 12:42:56 · 168 阅读 · 0 评论 -
c# 对SQLite操作类借鉴并修改
[code="c#"] /// /// SQLite 操作类 /// Author Light /// public class SQLite { /// /// 数据库 /// public static string dataBasePath; ...原创 2013-09-03 11:49:31 · 101 阅读 · 0 评论