simonw/datasette

Research: demonstrate if parallel SQL queries are worthwhile

Open

#1.727 aberto em 27 de abr. de 2022

Ver no GitHub
 (32 comments) (0 reactions) (0 assignees)Python (625 forks)batch import
help wantedresearch

Métricas do repositório

Stars
 (8.637 stars)
Métricas de merge de PR
 (Mesclagem média 67d 23h) (19 fundiu PRs em 30d)

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?

Guia do colaborador