Talk in English - US at Madison PHP Conference 2017
View Slides: https://www.dropbox.com/s/to1ldcmaxtkjjgr/Prepared-V05.pdf?dl=0
Checkout the code: https://github.com/ewbarnard/PreparedStatements
Short URL: https://joind.in/talk/21043 (QR-Code (opens in new window))
When using a PHP framework, standard practice is to use an Object-Relational Model (ORM) for database access. However, with high-volume logging and statistics-gathering, it pays to go "old school" with PHP prepared statements. Meanwhile, when MySQL tables quickly grow by millions of rows, table storage space becomes an issue. Our table design must focus on keeping these tables more compact and efficient. Here too, prepared statements simplify both coding and table design. We'll be using CakePHP 3's excellent support for PHP prepared statements, but all concepts are native to PHP and apply to any project striking this use case.