gtstudio/module-querylog
This module helps you to debug and find database query bottlenecks. You will be able to see the query execution time, stack trace through the front end of the store in real time.
* = in production please use the --keep-generated
option
- Unzip the zip file in
app/code/Gtstudio
- Enable the module by running
php bin/magento module:enable Gtstudio_QuerieLog
- Apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
- Install the module composer by running
composer require gtstudio/module-querylog
- enable the module by running
php bin/magento module:enable Gtstudio_QuerieLog
- apply database updates by running
php bin/magento setup:upgrade
* - Flush the cache by running
php bin/magento cache:flush
-
Console Command
- dev:query-view:enable
-
Console Command
- dev:query-view:disable
To enable you just need to run the following command :
bin/magento dev:query-view:enable --include-all-queries=1 --query-time-threshold=0.001 --include-call-stack=1
.
To disable you must run the following command :
bin/magento dev:query-view:disable
.