vlucas / Spot

[DEPRECATED - use v2] Simple DataMapper ORM for PHP 5.3+
75 stars 14 forks source link

Benchmarking support (query times) #22

Open vlucas opened 11 years ago

vlucas commented 11 years ago

It would be nice to have a setting for turning on query benchmarking/timing so query execution time can be reported with some sort of method - maybe in Spot\Log. This would allow optimization of slow or long-running queries.

marvelade commented 11 years ago

you mean like in cakePHP?

On Sat, Nov 17, 2012 at 11:10 PM, Vance Lucas notifications@github.comwrote:

It would be nice to have a setting for turning on query benchmarking/timing so query execution time can be reported with some sort of method - maybe in Spot\Log. This would allow optimization of slow or long-running queries.

— Reply to this email directly or view it on GitHubhttps://github.com/vlucas/Spot/issues/22.

vlucas commented 11 years ago

Yes - and like the profiler bar in Symfony and other applications. This would just be adding support to GET the MEASURE the query times from Spot though, so this wouldn't be the whole profiler bar or anything.

brandonlamb commented 11 years ago

I think i will look at a solution this week. Getting an array with query plus time would be cool to output how you like