71 points saisrirampur 2 hours ago 39 comments
amitpoonia19xyz 1 hour ago | parent
dewey 1 hour ago | parent
TuningYourCode 1 hour ago | parent
On the other side if dev(ops) does not know that local storage is faster than network/cluster filesystems…
amitpoonia19xyz 1 hour ago | parent
joduplessis 1 hour ago | parent
kaon_2 1 hour ago | parent
Happy to still be here among my fellow humans. Hackernews the last bastion it feels like.
Can we somehow filter out slop from the front page? That would be great :).
RugnirViking 1 hour ago | parent
vidarh 1 hour ago | parent
But using detectors to label so people can choose seems entirely reasonable to me even with a risk of false positives, and I think a lot of people who are generally pro-AI would feel that's fine.
arethuza 1 hour ago | parent
nasretdinov 1 hour ago | parent
ngrilly 51 minutes ago | parent
jonatron 47 minutes ago | parent
vasco 39 minutes ago | parent
iancarroll 1 hour ago | parent
traceroute66 1 hour ago | parent
There. Fixed it for you.
Too many times I see people making the same avoidable mistakes time and time again.
They get stuck in the dream of "portable" schemas and don't use their brain to design a database-specific schema.
They have no clue how to write SQL queries (or again, have stupid dreams of "portable" queries). As a result performance suffers.
Then they come to your desk complaining the databse is slow, and insisting that they absolutely MUST have a Redis caching layer.
I'm sick and tired of people using databases as blackbox dumping grounds. If slow storage was always the problem, my life would be far less stressful. Since the prescription would be easier for the doctor to write. ;)
CodesInChaos 56 minutes ago | parent
traceroute66 38 minutes ago | parent
Erm. Isn't this kind of a schema specific question ?
I mean, sometimes I see schemas that are so goddam awful that the answer to your question would be "anything, literally anything".
Other times its the old story of failing to use or misconfiguring indexes.
And then, yes you end up in the realms of Postgres specific stuff. What you do there clearly depends on what you're looking at.
But the point is, I could probably count on one hand the number of times the problem has been "the storage" or "the database". Most of the time its "the developer". :D
FreakLegion 32 minutes ago | parent
Optimizing column layout has been enough for me to leave OLAP workloads in Postgres a few times when I otherwise would've had to spin up something dedicated for them.
smitty1110 26 minutes ago | parent
Lots of things in PGSQL benefit from thinking about how your use case is manipulating the underlying B-tree, if you work in performance sensitive stuff the devil is really in the details. And having to rebuild indexes that have decayed over time is painful.
smolder 40 minutes ago | parent
traceroute66 34 minutes ago | parent
Sure. But to be clear: I am not denying storage is a genuine problem for some people.
I am just saying in the majority of cases it's probably not "the storage". For most people "the storage" will be quite far down the list of likely causes of a "slow" database.
Throw all the Enterprise SSDs or other storage solutions you like at a shitty schema and it will still struggle under load (or sometimes just struggle full stop).
boxed 9 minutes ago | parent
CodesInChaos 48 minutes ago | parent
rfgplk 47 minutes ago | parent
dkdbejwi383 42 minutes ago | parent
esposm03 40 minutes ago | parent
cmrx64 35 minutes ago | parent
conradfr 23 minutes ago | parent
TheCapeGreek 15 minutes ago | parent
solyin 4 minutes ago | parent
bob1029 36 minutes ago | parent
Kestrel (AspNetCore) + SQLite + NVMe all on the same machine is where things start to get really spicy in my experience. Imagine handling an entire form submission that mutates database state in tens to low-hundreds of microseconds. Total wall clock time required to service any HTTP request can be well under a single millisecond. If your average cpu time per request is 30uS, you could approach half a million per second on a 16-32 core machine.
jdw64 28 minutes ago | parent
nik736 14 minutes ago | parent
jdw64 8 minutes ago | parent
Since I’m a freelance programmer, I mainly work on small-to-medium-sized projects, so I don’t know much about this kind of infrastructure programming.
OroPla 25 minutes ago | parent
mmnfrdmcx 12 minutes ago | parent