Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2182 Visninger

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
mar. 21
2015
2
mar. 15
9854
0
jul. 25
1096
1
jul. 25
904
0
feb. 25
2000