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
Post a Comment