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

I am having a database with lots of account move lines ,  while loading the trial balance on screen report without applying ir rules , it gets load within 30 seconds or so , but if i apply record rules it takes a lots of time like 6 - 7 minutes , i think the query execution takes a lots of time !!

I have also generated odoo profile but it gives like majority parts goes to get_html method , but while debugging , majority time goes on get_lines method and the html is loaded within seconds  after that .

Any idea how to optimise this or track where is the exact point of failure or issue , i even done indexing on the fields included in record rules .. but no difference , also no compute field in that.

Thanks

아바타
취소

could you share the domain applied for the rule

작성자

Niyas,
actually there are multiple record rules in there, in between 10 to 15

작성자

All for different use case , but when we go to trial balance they all get applies and makes the query so heavy !! Same conditions also applies on the general ledger but it gets printed in no time , and also i see some repeated union all statements also in the trial balance query , do you think maybe that can be a reason ??

How can i trace it like what is not working here , because the profilers are saying its the html , but i am debugging code and it takes maximum time for cr.execute !! So i am stuck here.

작성자 베스트 답변

Also the query has multiple union all with same conditions !! and all with applied record rule conditions.

아바타
취소
관련 게시물 답글 화면 활동
1
9월 25
929
2
2월 23
2211
1
6월 18
6297
2
6월 16
6129
0
6월 15
4263