On Sat, 2007-05-05 at 22:14 -0700, kerinin wrote:
> I turned on CherryPy's profiling and took a look at the results.  I'm
> not really sure what I'm looking at though.  From what I can tell the
> majority of the time is spent on the database, but it may just be that
> the database.py module calls a lot of other functions.

One thing I've noticed myself is that it's really easy with SO or SA to
write code that is easy to write but hits the db a greater number of
times than is necessary. ( IE using Ormthing.get() all over the place in
multiple functions instead of getting the results once and passing them
around ). I know *I* need to weed out the spots where I'm doing that!

Iain




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to