Wrong ways to use the databases, when the pendulum swung too far
1–10 of 110 posts
Re: Wrong ways to use the databases, when the pendulum swung too far
#2Re: Wrong ways to use the databases, when the pendulum swung too far
#3Re: Wrong ways to use the databases, when the pendulum swung too far
#4Not Dan Luu, is it? The site seems to leave that intentionally ambiguous.
Re: Wrong ways to use the databases, when the pendulum swung too far
#5Re: Wrong ways to use the databases, when the pendulum swung too far
#6Re: Wrong ways to use the databases, when the pendulum swung too far
#7Very nice to see the other side of this
Re: Wrong ways to use the databases, when the pendulum swung too far
#8>Logically, that was… fine. In practice, writes into the same database which previously required 5 IO round trips, now required almost double the number of trips for the extra checkpointing operations...
So this sounds like trying to invent a form of optimistic locking, but it's definitely possible to do optimistic locking where no extra reads or writes are necessary unless there is a conflict. you have to write that value (whether timestamp or uuid) on every write, and then you do every write with a conditional "do this write as long as the lock value has not been changed."
But I guess the store they were using didn't allow even a conditional write like that? Although I'm not sure how they managed to make this "checkpoint" system work without that feature either... this seems a bit confusing, it seems like a more typical optimistic locking system should have been possible using whatever primitives the checkpointing system used? Maybe not?
Re: Wrong ways to use the databases, when the pendulum swung too far
#9Does the author really call joins "joints"? I thought it was maybe a spelling thing but then they make a Snoop joke...
Re: Wrong ways to use the databases, when the pendulum swung too far
#10However the flip side of the coin in your case is somehow even worse, because people failed to identify the good in the RDBMS and only identified it all with evil, despite then storing their blobs in an RDBMS.
To me, the use of distributed transactions is the smell. If your solution to the problem of a multi-database model is a sticking plaster that can generate even worse problems (e.g. the deadlocks) then it just shows a poor approach to problem solving or allocating enough resource to development.