Skip to Content
Menú
This question has been flagged
2105 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
1921
2
de març 15
9731
0
de jul. 25
900
1
de jul. 25
713
0
de febr. 25
1831