参考来源:
sqlite3的C语言使用(三):https://www.leavesongs.com/C/sqlite3_3.html
sqlite插入和查询效率提高方法及测试结果: http://blog.sina.com.cn/s/blog_590be5290102vun0.html
c++获取sqlite3数据库表中所有字段的方法:https://www.cnblogs.com/battlescars/p/cpp_get_sqlite3_column_name.html
加上我自己实践是
1.先把数据放在内存的一个缓冲区,如vctor map等
2.创建存储过程(v=3000/s)
3.同步写开启(v=10000/s)
个人测试,47s写入30多万条数据,数据大小约130M。效果喜人
有机会将代码整理