News for hackers. Stuff that matters.
Re:A terrible schema from a clueless programmer by kasey_junk on Sunday November 07, 2021 @10:46AM (#29140373)
She doesn’t mention the write characteristics of the system but she implies that it was pretty write heavy.

In that case it’s not obvious to me that putting a key prefix index on every column is the correct thing to do, because that will get toilsome very quick in high write loads.

Given that she herself wrote the before and after systems 20 years ago and that the story was more about everyone having dumb mistakes when they are inexperienced perhaps we should assume the best about her second design?

Re:A terrible schema from a clueless programmer by ccleve on Sunday November 07, 2021 @11:00AM (#29140522)
It's not an index on every column. It's a single index across all columns.
Re:A terrible schema from a clueless programmer by noisy_boy on Sunday November 07, 2021 @12:07PM (#29141234)
Which will be updated every time there is a new combination.
Re:A terrible schema from a clueless programmer by Animats on Sunday November 07, 2021 @05:04PM (#29143953)
Which is OK. It's not like the whole index has to be rebuilt. It's cheaper than O(log N).