How to tune this sql - one it its table facing customer and dynamic many insert/update into it
Hi DBAs:
Need advice - the following query runs very slow but not 'every time' - weird things is it slows once in a hundreds/thousands time; date range used in searching-condition is always "the last 7-days". I got our App team feedback and we all want this problem could be fixed. "Address" table has many rows (60+ millions) and facing direct insert/update from front-end.
Below is query and execution plan:
SELECT t0.ARCHIVED_FLAG, t0.AUTH_DESC, t0.bundle_scp_found_flag,
t0.BUNDLE_TYPE, t0.INDEP_ORDER_CHECKED, t0.CLICK_CHAT_FLAG,
t0.CODEWORD, t0.REQ_DATE, t0.DECLINED_BY_PUF_FLAG, t0.DX_FLAG,