simonw/datasette
Voir sur GitHubResearch: demonstrate if parallel SQL queries are worthwhile
Open
#1 727 ouverte le 27 avr. 2022
help wantedresearch
Métriques du dépôt
- Stars
- (8 637 stars)
- Métriques de merge PR
- (Merge moyen 67j 23h) (19 PRs mergées en 30 j)
Description
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?