Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is cool however I think it may exhibit performance problems when used in the wild if the trigger constraint were to be used. (Could possibly gain some performance replacing a UNION with UNION ALL).

Also your colleagues may curse you down the line when they need to change the state machine's behaviour. Would of course be possible to keep note of a "state machine version number" on each row but you would end up with a transition function that had to know about every historic version of the state machine...



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

Search: