Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1048 Vizualizări

Hi,


I have a record rule from another custom module that is severely slowing down performance. 

The record rule is:

['|', '|', '|', '|', '&', ('custom_field','=',user.id),('is_customer','=',True),            ('parent_id.custom_field','=',user.id),('group_ids', 'in', [g.id for g in user.groups_id]),('user_ids','!=',False), ('message_follower_ids.partner_id','=',user.partner_id.id)]


I know the record rule is the problem, because if I turn the rule off perfomance improves from about 4s avg response time to user\.id\)\ and\ the \('message_follower_ids\.partner_id','=',user.partner_id.id) parts, but I'm not sure how to change the rule to keep the functions the same but speed up performance. 

Unfortunately the custom module is no longer being maintained and I cannot ask the creators.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
iun. 20
3700
0
iul. 25
1016
1
iul. 25
858
0
feb. 25
1907
4
mai 24
12811