特定の日付範囲のMFG/PRO請求書テーブル 'idh_hist'を検索するクエリを作成しようとしています。日付条件を追加すると非常に遅くなります。しかし、私は日付の条件を延期すると、それは非常に高速です。 idh_histのクエリを書く方法を提案してください。続きidh_histクエリは日付が検索中に非常に遅い
は私のクエリです:事前に
for each idh_hist no-lock where idh_domain = "d0002"
and idh_due_date = TODAY:
/* display code here... */
end.
ありがとう!
データベースランキング:
Flags Index Name Cnt Field Name
----- --------------------- ---- ---------------------
idh_fsm_type 4 + idh_domain
+ idh_fsm_type
+ idh_nbr
+ idh_line
pu idh_invln 4 + idh_domain
+ idh_inv_nbr
+ idh_nbr
+ idh_line
idh_part 4 + idh_domain
+ idh_part
+ idh_inv_nbr
+ idh_line
u oid_idh_hist 1 + oid_idh_hist
idh_histテーブルのインデックス定義を私たちと共有できますか? –
こんにちは@MikeFechner、私はここでインデックスを追加しました。ありがとう。 –