Database query execution times in Python?

Aahz aahz at pythoncraft.com
Thu Aug 13 18:58:52 CEST 2009


In article <mailman.4437.1249670565.8015.python-list at python.org>,
pwnedd  <keith.hughitt at gmail.com> wrote:
>
>I've been writing some code using libraries based on the Python Database API
>2.0 (MySQLdb & pg), and so far things are working really well. There is one
>thing that I have not been able to figure out how to do, however: 
>
>Retrieve the time is took a given query to execute.

Look up EXPLAIN
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"...string iteration isn't about treating strings as sequences of strings, 
it's about treating strings as sequences of characters.  The fact that
characters are also strings is the reason we have problems, but characters 
are strings for other good reasons."  --Aahz



More information about the Python-list mailing list