Hacker News new | ask | show | jobs
by tpxl 1316 days ago
> I'm not sure why it just needs to be taken as a given that databases will take 150ms to return any data.

Run your database on a t2.small instance on AWS (1 vCPU, 2GiB RAM). Why would you do that, you ask? I don't know, but that's what we got on an old job.

This was also used to prove MongoDB is faster than PostgreSQL, even though Mongo was running on-prem on much better hardware.

1 comments

Nope, single digit millisecond performance for me on those nodes when the tables are cached - anything else and you are complaining about performance of the storage medium.
How much data? We were doing a few million writes/day on peak days and the nodes couldn't keep up.
A few million writes a day is still well within the write performance of one of those nodes. But... we were talking about querying the data, no?
Well yes, but if your database is busy writing, it's going to have less time for reading.
I'm not sure what your point is. You said the nodes are slow. They are not slow, and will handle thousands of requests a second when configured correctly.

If you arent getting that then you are doing something big, something inefficient, or something stupid - and that would be the same on any size node.

Size your instances accordingly.