Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2332 Prikazi

Hi,

I notice that this query takes about 10 seconds on our odoo 12 installation.


SELECT count(u.*)
FROM res_users u
WHERE active=true AND
share=false AND
NOT exists(SELECT 1 FROM res_users_log WHERE create_uid=u.id);


Can I somehow optimize it? For example with an database index?

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
0
mar. 21
2128
2
mar. 15
9987
4
sep. 25
1222
0
jul. 25
1270
0
feb. 25
2158