Tag: database
-
Database Query Logging in Magento 2
In Magento 2.x as well as Magento 1.x there is an option to enable database logging. It allows to profile all queries in the system and perform optimization if necessary. In this article, I will show you how to enable database logging for MySQL adapter in Magento 2. In my previous article, I wrote about separate […]
-
New Database Connection in Magento 2
Magento 2 gives a flexible mechanism for managing database connections. This feature was slightly refactored compare to Magento 1.x release. In this article, we will set up new database connection for custom resource model in Magento 2. Overview After successful installation, Magento 2 system creates app/etc/env.php configuration file. This file is most important due to a sensitive […]