Remix.run Logo
giancarlostoro 2 hours ago

Reminds me when the ELK stack was called just ELK (idek what it is now) we had a server we put it on, and after making the additional dashboards my manager wanted, we learned the limits of ES / ELK. It needs a ridiculous amount of memory, because it will shove everything in memory. Same thing when I learned that MongoDB indexing puts every item in memory as well, which is a yikes, why would you not want to index?

I bet there's money to be made for building a drop-in to either of those two that requires less memory, would save companies a bundle, and make other companies a bundle as well.

hilariously an hour ago | parent [-]

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 9 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 44 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 38 minutes ago | parent [-]

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

vscode-rest 37 minutes ago | parent [-]

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

hilariously 8 minutes ago | parent [-]

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