Django rest framework Database thread pool management -


how django rest framework internally manage database connection pool. persist db connection or 1 db connection each db call? can configure database thread pool connection in django ?

the django rest framework uses django's features regarding db connectivity.

django opens connection database when first makes database query. keeps connection open , reuses in subsequent requests. django closes connection once exceeds maximum age defined conn_max_age or when isn’t usable longer.

you can find detail on persistency of db connections, topic broad cover in here, on relevant django docs article.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -