SqLite Multicore Processing

落花浮王杯 提交于 2019-12-22 13:52:33

问题


How do you configure SqLite 3 to process a single query using more than 1 core of a CPU ?


回答1:


Since version 3.8.7, SQLite can use multiple threads for parallel sorting of large data sets.




回答2:


sqlite3 itself does not do that.

However, I have a project called multicoresql on github that has utility programs and a C library for spreading sql queries onto multiple cores.

It uses sharding so you have to break your large database or datafile into multiple sqlite3 database files. A single SQL query must be written as two SQL queries, a map query that first runs on all the shards, and a reduce query to determine the result from the collected output from all the shards running the map query.



来源:https://stackoverflow.com/questions/25265502/sqlite-multicore-processing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!