Skip to Content
Menú
This question has been flagged
2342 Vistes

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
Descartar
Related Posts Respostes Vistes Activitat
0
de març 21
2131
2
de març 15
10000
4
de set. 25
1232
0
de jul. 25
1274
0
de febr. 25
2158