4 ms·
Do you know if that's why user comment averages (as on our profile pages) aren't updated in real time? Seems like that's the kind of thing which is very easy w
by mootothemax 13y ago
Do you know if that's why user comment averages (as on our profile pages) aren't updated in real time?
Seems like that's the kind of thing which is very easy with a database and much less so with flat files.
- Detrus 13y agoI think everything is in RAM and backed up to disk, Redis style. Probably only keeps recent things in RAM.
- joosters 13y agoIt might be very easy to code with a database, but the DB still has to do a lot of behind-the-scenes work, so you might not want them updated in real time anyway. (n.b. this is all theoretical, I have no idea about the workings of HN) You could argue that this is another plus for flat files; you have a better appreciation for what operations are hard work, whereas a 'simple' one line select/join can hide a huge performance blocker...
- qu4z-2 13y agoI don't really see why that would be significantly harder with flat files.