跳至內容
選單
此問題已被標幟
2144 瀏覽次數

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?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
3月 21
1979
2
3月 15
9809
0
7月 25
1007
1
7月 25
840
0
2月 25
1892