News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Richard Thomas' Blog:
Solar Framework Shorts - Basic Sql Profiling
November 09, 2009 @ 09:40:20

Richard Thomas has posted another "Solar Framework Short" for the Solar PHP framework today - this time it's a simple example of setting up SQL profiling.

He includes a code sample that sets up a database object with a custom configuration and calls the "setProfiling" method on it, giving it a value of "TRUE".

This prints out a lovely array with all the queries that have been done. Why is this really useful? Because when using ORM/Model systems the framework builds your queries for you.. This allows you to dig a little deeper, see whats going on, how the queries are being built and were you might need indexes and other changes.
0 comments voice your opinion now!
solar framework sql profile tutorial


blog comments powered by Disqus

Similar Posts

Paul Jones: Framework Tradeoffs For Beginners: Product Creation vs Program Maintenance

Community News: CakePHP 1.2 Release (and a New Site Design)

Matthew Weier O'Phinney's Blog: Using the ZF2 EventManager

KillerPHP.com: The Zend Framework: Writing Object-Oriented PHP with Ease

VG Tech: Using PHP's Built-in Web Server in Your Test Suites


Community Events





Don't see your event here?
Let us know!


introduction threedevsandamaybe interview list laravel podcast release framework install code series wordpress community language configure unittest testing developer refactor opinion

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework