Trigger Use Cases and Limitations
What triggers are genuinely good at, the costs they impose, and the honest list of reasons teams end up removing them.
Making queries and schemas faster.
17 notes tagged
What triggers are genuinely good at, the costs they impose, and the honest list of reasons teams end up removing them.
Functions return a value and can be used inside a query. Learn CREATE FUNCTION, determinism, the difference from procedures, and the performance trap.
The three anomalies normalisation prevents, and the disciplined way to reintroduce redundancy when reads genuinely demand it.
The same question answered four ways, with a straight comparison of readability, NULL safety and cost - and a rule for choosing between them.
Sorting on one or many columns, NULL placement, and the four dialect specific ways to fetch page two of a result set - including why OFFSET gets slow.