Skip to Content
Menu
This question has been flagged
2595 Rodiniai

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?

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
kov. 21
2422
2
kov. 15
10345
2
lapkr. 25
534
4
rugs. 25
1842
0
liep. 25
1560