Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2107 Zobrazení

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
bře 21
1923
2
bře 15
9732
0
čvc 25
906
1
čvc 25
716
0
úno 25
1832