I have a bottle.py application that performs well in dev mode. However, a function that has a larger database query is causing the app to time out when run in either uwsgi or the browser to time out when run on mod_wsgi on apache. How should I go about trying to achieve reasonable performance in a production environment?
uwsgi
ormod_wsgi
(eg from the db commandline)?