Hacker News new | past | comments | ask | show | jobs | submit login

You might want to come up with a better example for how your causal reverse anomaly isn't that big a deal. My first reaction was approximately "dafuq? Nathan saw an inconsistent database! That's terrible!" It took a long time before you got around to explaining that with a foreign key check (which I pretty much assumed as part of the scenario), it wouldn't happen.



Perhaps I could emphasize things differently. FWIW, besides the fact that having a foreign key constraint in that schema would prevent the badness from happening, the even bigger reason why scenarios like that are unlikely is that, realistically, for Tobi to reply to a comment, he must have seen that comment he's about to reply to, and it's very hard to imagine a scenario where he'd see it but still have the response transaction not read it (cause if the txn read it, the two transactions wouldn't be independent any more and so they'd be well ordered). The foreign key is just one way of ensuring that the read happens.


To me, that still makes it sound like a bad example. Adding all those qualifiers is a distraction from the actual point you're trying to make.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: