simonw/datasette

Research: demonstrate if parallel SQL queries are worthwhile

Open

#1,727 建立於 2022年4月27日

在 GitHub 查看
 (32 留言) (0 反應) (0 負責人)Python (625 fork)batch import
help wantedresearch

倉庫指標

Star
 (8,637 star)
PR 合併指標
 (平均合併 67天 23小時) (30 天內合併 19 個 PR)

描述

I added parallel SQL query execution here:

My hunch is that this will take advantage of multiple cores, since Python's sqlite3 module releases the GIL once a query is passed to SQLite.

I'd really like to prove this is the case though. Just not sure how to do it!

Larger question: is this performance optimization actually improving performance at all? Under what circumstances is it worthwhile?

貢獻者指南