Remix.run Logo
hilariously an hour ago

There's no high performance database that wont take all of your memory (at least for size of data) if you let it.

That's because it's much, MUCH faster to do it that way, though if you can deal with certain type of latency trade offs for throughput something like turbopuffer can do wonders for your costs.

giancarlostoro an hour ago | parent [-]

MySQL doesnt eat up all 8GB of my system when I need to query a table with indexed values, MongoDB seems to eat it all up.

hilariously 6 minutes ago | parent | next [-]

If the data is < ram size and if you read that data again and its off disk again its the slowest it can possibly be, there's a reason most databases implement a buffer cache (actually making writes insanely faster as well) but yeah, MySQL is generally not a very good operational database with all the ones I have tinkered with.

vscode-rest 41 minutes ago | parent | prev [-]

You paid one hundred bucks for that eight gb of ram, do you really want it to just sit there unused?

giancarlostoro 36 minutes ago | parent [-]

No, but my manager was wondering why our website was slowing to a crawl.

vscode-rest 34 minutes ago | parent [-]

Is the DB on the same host as the web server?

hilariously 6 minutes ago | parent [-]

It is more likely they did not leave enough overhead for the host operating system, which is a classic issue.