Shocked to find out that this is very much a static website, it's "merely" downloading a small portion of the 43GB SQLite file in question with HTTP Range requests, and then it uses a WASM-compiled copy of SQLite to query the requested data. Very impressive.
Since the work all happens in your browser, the only victim of a long complicated query would be you own browse and the S3 bandwidth bill of the person hosting the database (since you'd end up sucking down a lot of data).
But if you want to jack up someone's S3 bandwidth bill there are already easier ways to do it!
> [error: RuntimeError: abort(Error: server uses gzip or doesn't have length). Build with -s ASSERTIONS=1 for more info.] On insert from Github Pages: > [error: Error: SQLite: ReferenceError: SharedArrayBuffer is not defined]
Your browser might either be too old to support SharedArrayBuffer, or too new and have some Spectre protections enabled that don't work on GitHub Pages since they don't allow setting the necessary isolation headers. Try going to the Netlify mirror of this blog for the DOM demos.
Comments (189) 38 threads
Show all comments
Showing thread 2 of 38
But if you want to jack up someone's S3 bandwidth bill there are already easier ways to do it!
Cloudflare's limit is 10GB, 20GB for Cloudfront, 150GB for Akamai and Azure.
Continue this thread — 7 replies
Continue this thread — 1 reply
Do you understand that the database runs on your computer? You can only DOS yourself.
One would have to version the SQLite DB by version to avoid corruption by cache invalidation.
Continue this thread — 1 reply
> [error: RuntimeError: abort(Error: server uses gzip or doesn't have length). Build with -s ASSERTIONS=1 for more info.]
On insert from Github Pages:
> [error: Error: SQLite: ReferenceError: SharedArrayBuffer is not defined] Your browser might either be too old to support SharedArrayBuffer, or too new and have some Spectre protections enabled that don't work on GitHub Pages since they don't allow setting the necessary isolation headers. Try going to the Netlify mirror of this blog for the DOM demos.