News for hackers. Stuff that matters.
Re:Ask HN: PostgreSQL or MySQL? by pabl0rg on Sunday September 22, 2019 @07:40AM (#21040863)
EXPLAIN is almost useless on mysql, but very helpful in postgres.

EXPLAIN is a very useful command once you have some degree of success (users).

Re:Ask HN: PostgreSQL or MySQL? by johannes1234321 on Sunday September 22, 2019 @08:10AM (#21040985)
EXPLAIN with the JSON or TREE formats in MySQL got a lot better. Also MySQL's optimzer traces give lots of information more https://dev.mysql.com/doc/internals/en/optimizer-tracing.htm...
Re:Ask HN: PostgreSQL or MySQL? by barrkel on Sunday September 22, 2019 @10:15AM (#21041450)
MySQL's tabular explain is largely understandable once you also understand how simple its optimizer and execution mechanism is. All you mostly need to look at is the join order and indexes used, and whether there's a filesort in there, and then it's clear enough.

The linear list of steps doesn't work well for a smarter engine.

Re:Ask HN: PostgreSQL or MySQL? by th3sly on Wednesday September 25, 2019 @07:34AM (#21069682)
Check EXPLAIN ANALYZE too as it's freshly baked into MySQL https://dev.mysql.com/doc/refman/8.0/en/explain.html#explain... especially useful if you switch from PosgreSQL to MySQL