simonw/datasette

Research: demonstrate if parallel SQL queries are worthwhile

Open

#1.727 geöffnet am 27. Apr. 2022

Auf GitHub ansehen
 (32 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (625 Forks)batch import
help wantedresearch

Repository-Metriken

Stars
 (8.637 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 67T 23h) (19 gemergte PRs in 30 T)

Beschreibung

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?

Contributor Guide