Skip navigation links
Showing entries 1 to 2

Tags Filter: trigger (reset)

Articles
Add to Favourites +3 Vote Up -0Vote Down
A useful introduction to using SIGNAL with triggers/stored routines.
Articles
Add to Favourites +0 Vote Up -0Vote Down
This tip is to overcome a type of expensive query that I see all the time. In doing this, I uncovered a nasty bug in MySQL v5.1.ScenarioI've seen queries like these several times:SELECT COUNT(*) FROM sample WHERE status = n;Normally, this is OK, but if you have hundreds of millions of rows, only a handful of possible statuses and execute this query dozens of times per minute on an active InnoDB table, it quickly becomes a bottleneck.One SuggestionEstablis
Showing entries 1 to 2