For anyone using Trac with the MySQL database backend, check out this ticket: http://trac.edgewall.org/ticket/6986

I applied the database schema changes on the MobileScrobbler trac site, and it’s reduced the time it takes to modify or create a ticket from several seconds down to less than a second. Finally, no more error 500 pages when an operation takes too long to complete!