simonw/datasette-lite

Could this use the SQLite range header trick?

開放

#28 建立於 2022年5月4日

 (10 則留言) (5 個反應) (0 位負責人)CSS (39 個分叉)github user discovery
help wantedresearch

倉庫指標

星標
 (402 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

https://twitter.com/BardakciBaba/status/1521927918603145216

Impressive! Does it download the whole database or only the bits sqlite actually needs - possibly via http range requests a la https://phiresky.github.io/blog/2021/hosting-sqlite-databases-on-github-pages/

Right now Datasette Lite downloads the whole SQLite database. But could it work with the range trick?

This would be difficult to pull off, because it would involve compiling a custom build of Python's sqlite3 module. Could probably use https://github.com/coleifer/pysqlite3 as a starting point for that.

I'm going to leave this open as a "research" and "help wanted" issue, in case anyone else is inspired to try and figure it out!

貢獻者指南