Visualizing a SQL query in 5 mins
@alexxubyte295K followers
23,200 views
7 Comments
Comments from the original post on X (Twitter)

@petarivanovv9
@bytebytego @sahnlam I always find it eye-opening to peek at actual execution plans in the database console. That moment when you spot an unexpected table scan is humbling. 💪
3 likes

@adelbucetta
@bytebytego @sahnlam the hard part is understanding which optimization to choose, not just transforming sql into algebra, that's a solved problem

@DerrickLSimpson
@bytebytego @sahnlam Also, "Predicate Pushdown" can allow filtering and removal of rows prior to a join. All records are not always joined/merged prior to filtering.

@buswe_com
@bytebytego @sahnlam EXPLAIN ANALYZE remata bien ese recorrido: enseña filas y tiempos reales de cada paso, no solo el plan estimado.

@TreborJoss
@bytebytego @sahnlam Btw, great overview.

@Tech_p001
@bytebytego @sahnlam Thanks for sharing this wonderful insight Very helpful

@TreborJoss
@bytebytego @sahnlam Execution plan also considers histogram statistics to determine and use more efficient execution plans. An example is to skip using an index when a full tab scan would be less costly.
