This is a generic function which gives more details about an object than
print()
, and is more focused on human readable output than
str()
.
explain(x, ...)show_query(x, ...)
The first argument, invisibly.
An object to explain
Other parameters possibly used by generic
Explaining a tbl_sql
will run the SQL EXPLAIN
command which
will describe the query plan. This requires a little bit of knowledge about
how EXPLAIN
works for your database, but is very useful for
diagnosing performance problems.