News Feed
Jobs Feed
Sections




News Archive
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

PHPBuilder.com: Use the PHP Filter Extension to Validate User Data

Hari KT's Blog: Is there a design flaw for the Components or Packages made by Symfony2 and ZF2

The Bakery: 11 New Posts of CakePHP Goodness

Jonathan Wage's Blog: Blending the Doctrine ORM and MongoDB ODM

SitePoint PHP Blog: Introducing php-tracer-weaver


Community Events











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


opinion framework zendframework2 introduction composer phpunit interview tool development code community example series testing database object language functional release podcast

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