MageSmith
dev · Magento 2.4.9 (extracted from source · curated examples)

dev:query-log:enable

Enables SQL query logging for performance debugging.

Synopsis

bin/magento dev:query-log:enable

Examples

Log slow queries with the PHP call stack — find which class is firing the query.

bin/magento dev:query-log:enable --include-call-stack

See also

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.