4 ms·
On the other side, it is not much content to begin with. Traffic is a bit of text, extremely basic CSS, no images, no tracking, no bullshit means that load tim
by mschuster91 5y ago
On the other side, it is not much content to begin with.
Traffic is a bit of text, extremely basic CSS, no images, no tracking, no bullshit means that load times are probably instantaneous even on a 56k modem.
Content is a bit of plain text => easy rendering, the entire database probably would fit into memory, so not much in terms of i/o going on.
- bin_bash 5y agoIt's also gotta be super read heavy so traditional caching methods would work well
- mschuster91 5y agoOnly on the database side, and most people will be logged in, making rendering caches obsolete. What I have utterly no idea is how the karma system works. Updating karma counts and comment sorting only on new submissions would help with performance, but on the other side karma "decays" over time, so there needs to be some sort of external cron?
- fouc 5y agoI would expect fragment caching to exist.
- asadlionpk 5y agomaybe the decay is coded in render logic for homepage with (now()-postedTime) kind of logic.
- deleted 5y ago[deleted]
- deckard1 5y agoyou could probably use a weight system. Yesterday's upvote is worth a value of 1. Today's upvote is a value of 2, etc. Then store the absolute count in another column/field if you need that.
- wglb 5y agoDatabase?
- II2II 5y ago> Traffic is a bit of text, extremely basic CSS, no images, no tracking, no bullshit means that load times are probably instantaneous even on a 56k modem. In other words: they are serving exactly what the people who come here are looking for, and little else. Don't get me wrong, there are cases where images and moderately more complex CSS improve a website. On the other hand, many websites go to an extreme that degrades the user experience.
- stevage 5y agoMeh, I'd kill for a better HN experience.