콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5371 화면

We know odoo can use the dbfilter - in the config file - for it to choose the right database when a new request comes in.

But does it keep the database connection open after the request is fulfilled (in its registry object)?

Let's say I have a system with 50 databases and dbfilter=^%d$. Here odoo will use the subdomain as the database filter and process the request. But I would like to know if it will keep the database connection open as a registry object so that every other request the comes from the same subdomain later on, doesn't have to open the connection, again.

Asking this because what if in my multi tenant architecture, certain DB's are used much less frequently than the others. Will keeping the database connection open be an expense?


This question was asked on stackoverflow and on github


https://stackoverflow.com/questions/64169770/does-odoo-keep-a-database-connection-open-in-a-multitenant-system

https://github.com/odoo/odoo/issues/59046

아바타
취소
베스트 답변

Yes, it uses connection pool which is limited by db_maxconn parameter. Limit is applied per python process.

See https://github.com/odoo/odoo/blob/14.0/odoo/sql_db.py#L543

아바타
취소
관련 게시물 답글 화면 활동
1
8월 25
1864
0
10월 24
1432
1
8월 22
2675
0
8월 22
2184
0
10월 21
2136