如何提高效率SQLITE 大数据量操作效率
摘要:今天有个朋友测试 SQLite,然后得出的结论是:SQLite 效率太低,批量插入1000条记录,居然耗时 2 分钟!using System.Data;using System.Data.Common;using System.Data.SQLite;// 创建数据库文件File.Delete("test1.db3");SQLiteConnection.CreateFile("test1.db3");DbProviderFactory factory = SQLiteFactory.Instance;using (DbConnection conn =
阅读全文
posted @
2011-04-07 10:43
Penny●zheng
阅读(2805)
推荐(2)
(int),Convert.ToInt32()和int.Parse()的区别
摘要:以下两点为自己总结,并且已经经过了验证。1,Convert.ToInt32()被重写19次,可以满足不同的参数需要 int.Parse()被重写4次,只能转化string2,参数为null时 Convert.ToInt32()返回0 int.Parse()ArgumentNullException.Value cannot be null.Parameter name: String 参数中包含字母时包括12ab这种情况,都抛出FormatExcepton异常,Input string was not in a correct format.所以在使用的时候假如用Convert.ToInt32
阅读全文
posted @
2011-02-22 13:39
Penny●zheng
阅读(412)
推荐(0)