You know you’re tired when
A statement like this sneaks into an email reply to a programming mailing list-
If there’s one thing I’ve learned from website development it’s that users will absolutely destroy your expectations of how much damage they can do. The system you’re doing right now is essentially SQL transaction replay, which I’m sure is fine, but I wouldn’t ever suggest not keeping them separated. You really need someway to constrain and verify those changes. Perhaps it’ll be a little slower, but less likely to hop up and rape you like a methamphetamine frenzied greater primate when you least expect it. You don’t play odds on monkey rapists or what users will do to databases, it’s why we have cages and men in white coats scienceing these things out.