Skip to Content
मेन्यू
This question has been flagged
2119 Views

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
Discard
Related Posts Replies Views Activity
0
मार्च 21
1929
2
मार्च 15
9745
0
जुल॰ 25
928
1
जुल॰ 25
741
0
फ़र॰ 25
1839