Unresponsive requests- understanding the bottleneck (Flask + Oracle + Gunicorn)
问题 I'm new to Flask/Gunicorn and have a very basic understanding of SQL. I have a Flask app that connects to a remote oracle database with cx_oracle. Depending on the app route selected, it runs one of two queries. I run the app using gunicorn -w 4 flask:app . The first query is a simple query on a table with ~70000 rows and is very responsive. The second one is more complex, and queries several tables, one of which contains ~150 million rows. Through sprinkling print statements around, I notice