simonw/datasette

Research: demonstrate if parallel SQL queries are worthwhile

Open

#1727 aperta il 27 apr 2022

Vedi su GitHub
 (32 commenti) (0 reazioni) (0 assegnatari)Python (625 fork)batch import
help wantedresearch

Metriche repository

Star
 (8637 star)
Metriche merge PR
 (Merge medio 67g 23h) (19 PR mergiate in 30 g)

Descrizione

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?

Guida contributor