Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's true, but it also means that random access will always use at least that amount of data even if it only has to fetch a tiny amount. I did a few (non-scientific) benchmarks on a few queries and 1kB seemed like an OK compromise.

And note that the request chunk size is bound to the SQLite page size, and to change that page size you have to rewrite the whole DB. So it can't be set on the fly unless you have multiple copies of the database.



1kb fits in most IP MTU sizes, so that seems reasonable.


Do most HTTP responses have less than ~500 bytes of headers? I guess specifically here, GH pages' responses.

It looks like one of the requests made to the DB included a little over 700 bytes of response status line and headers, so that would probably end up spilling into more than one response packet, unfortunately.


With http/3 header compression, I assume the answer is yes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: