摘要: 今天遇到了往Sqlite数据库里插入1400多条数据的情况,结果每次都需要一两分钟才能完成.搜索了一下,在这里找到了解决办法,所需要的时间直接变成不到2秒!internal static void FastInsertMany(DbConnection cnn){ using (DbTransaction dbTrans = cnn.BeginTransaction()) { using (D... 阅读全文
posted @ 2010-01-06 21:39 唔愛吃蘋果 阅读(1085) 评论(0) 推荐(0)
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-t... 阅读全文
posted @ 2010-01-06 13:38 唔愛吃蘋果 阅读(381) 评论(0) 推荐(0)