Se rendre au contenu
Menu
Cette question a été signalée

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
Ignorer
Publications associées Réponses Vues Activité
0
mars 21
1989
2
mars 15
9814
0
juil. 25
1021
1
juil. 25
864
0
févr. 25
1909