In this article, we will learn the benefits of persistent connection in PDO, in terms of memory usage and time of execution.
The article will only observe connection to MySQL database.
PDO is an abstraction layer for database connections in PHP, and it became increasingly popular in the past few years.
In the past few years ORMs have become increasingly popular; however I, personally, don’t like most of the ORM libraries.
ORMs are used to map data from the database to access it easily, and generally they do make it easier than regular SQL.
Nevertheless, these libraries are usually very heavy (Doctrine is almost 2MB!) [...]