Ir al contenido
Menú
Se marcó esta pregunta
2344 Vistas

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
Publicaciones relacionadas Respuestas Vistas Actividad
0
mar 21
2138
2
mar 15
10001
4
sept 25
1241
0
jul 25
1278
0
feb 25
2158