Hacker News new | ask | show | jobs
by monos 5802 days ago
Not specific to this article:

I find it unrealistic that threaded vs evented (or blocking vs non-blocking I/O) comparisons always use a slow database server as the prototypical thing to wait for.

I get that this is not the point but to a newcomer it must seem like "oh.. database servers are super slow, I must first and foremost worry about optimizing access to them".

If your queries regularly take more then 10ms to complete, something is wrong with the database (do caching, put database closer to querying server - maybe even on the same machine).

1 comments

Whatever. >10ms is perfectly reasonable db access. Of course if your data is small enough to fit in memory you will have much faster access time, but if it's and you don't have a SSD, every disk seek will be at least 10ms and you may need several to do all the queries needed to render a page.