コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2361 ビュー

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
2156
2
3月 15
10010
4
9月 25
1258
0
7月 25
1284
0
2月 25
2168