Besides INSERT/UPDATE/SELECT/DELETE MySQL has something called HANDLER. I’ve read that it can be considerable faster than normal SELECTs and I’ve tried it some in MySQL console and it seems fast.
However, the only information I found is at that single page from the reference manual and from what I can tell it isn’t useful for anything but looking at data in the console.
So, does anyone have any Real Life[tm] experience using HANDLERs in MySQL?
Can I use it instead of SELECT inside a stored procedure?
Can I assign variables from any of the columns like SELECT col INTO variable?
Can I do joins or do I have do them manually from several HANDLERs?
I’ll add my own answers here until I find better ones
No. You get an
ERROR 1314 (0A000) at line 10: HANDLER is not allowed in stored procedureswhen trying to compile the procedure.