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

I think it’s a good habit to EXPLAIN all your production code. But watch out for the fact that the same query can optimise differently on different instances of the “same” database. Because the optimiser uses table statistics to find the “best” execution plan so if your dev/test have different datasets, or the stats are not properly maintained, you can get completely different execution plans between each system.


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

Search: