You could even do something like this...
def makesome():
from gluon.contrib.populate import populate
import datetime
tstart = datetime.datetime.now().second
# insert 2500 random records
# YOU MAY WANT TO DO THIS ON A TEST TABLE
populate(db.yourtable, 2500)
tend = datetime.datetime.now().second
return dict( totals= str(tend - tstart) )
On Feb 21, 4:26 pm, Stef Mientki <[email protected]> wrote:
> hello,
>
> is there a way to log the time-duration of all sql statements ?
>
> thanks,
> Stef Mientki

