Lurker News

Comments (189) 38 threads

Earlier comments
Scaevolus#
You should compress the individual article texts with zlib. Right now, looking up an article text for a decent size article ("Virus") takes 10 round-trips-- 5 appear to be btree traversals, but another 5 (!) are to read in the page content, as chunks of 8K 8K 16K 32K 64K. Compressing the article might cut one round trip off that

Increasing the sqlite page size to a much larger size like 64KB or 128KB may improve average latency too, since fewer btree pages would need to be fetched to find the offset of the desired row, and most page contents could be read with one fetch. This matters more when fetches over the network take ~100ms.

mongol6 replies#
Perfect if stuck on a remote deserted island! Must be the closest existing thing to the Hitchhiker's guide?
r00fus#
Hitchhikers Guide to Wikipedia? HHGTWP?
wyldfire#
Towel not included.
yreg#
I installed a reader with a Wikipedia dump (without multimedia) on the original iPhone. At the time (at least in my region) WiFi was quite rare and it really did feel like the Hitchhiker's guide and incredibly powerful.

I only kept it for a few weeks though since it consumed almost all of the space. (And I imagine it was probably my language mutation, the english Wikipedia must have been too big already.)

pronoiac#
You might look at Kiwix, and the data sources they've indexed: https://www.kiwix.org/en/

(Oddly, it's crashing at launch on my iPad right now)

phil2943 replies#
I'm not trying to kill the fun here, but since this thing relies on a working internet connection, it would probably be pretty useless on a remote island
dTal1 reply#
You could host it locally easily enough!
jtsiskin2 replies#
Yes, but you could also host a normal Postgres db easily enough

Continue this thread — 2 replies

anigbrowl#
You can put a 43gb database on a $30 SD card and still have room for a bunch of movies.
phkahler#
When SpaceX sends people to Mars they will want a local Wikipedia among many other things.
nynx#
This is fantastic. I knew that we’d see things like this once that hosting sqlite databases project was posted.
mwidell1 reply#
I remember having the iPhone 2G back in 2007, and that someone created a way to store a 5GB wikipedia dump (the complete wikipedia at that time, but without photos) on it, so you could have the whole Wikipedia in your pocket. At the time it felt pretty amazing.
spiritplumber#
Don't panic!

Load more comments