News for hackers. Stuff that matters.
Re:Database Fundamentals by ljm on Friday December 15, 2023 @05:39PM (#38659716)
I think this is too reductive. A b-tree isn't the only indexing strategy, and it's well understood that an index is intended to improve read performance at the expense of write performance because the common case is that your DB handles a lot more reads than writes.

> but when you realize you're just adding one tree on top of another you're just masking the problem.

What is the problem and how do you propose to solve it without touching indexes? They are a hard requirement for any decent sized table.

Re:Database Fundamentals by tonymet on Friday December 15, 2023 @06:31PM (#38660190)
If you are using oracle, mysql , mssql you are typically using b-tree index. mysql supports hash index but i rarely see it applied in prod (probably just habits or lack of familiarity).
Re:Database Fundamentals by roetlich on Friday December 15, 2023 @09:06PM (#38661104)
Yes, but a lot of the cool, new DBs use LSM trees. The post we're currently discussing also spends more time explaining LSM trees + WAL, than it does B-trees.

But your point is still valid. :)

Re:Database Fundamentals by tonymet on Friday December 15, 2023 @06:29PM (#38660175)
Using data structures that match the performance profile. if the DB doesn't support that, using another solution.