我们可以调整下面的 oracle sql 查询吗?此查询需要大量时间从数据库中获取行。
SELECT T.ACCUMULATORS_INFO ACCU_INFO, T.SUBSCR_NO service_internal_id,
T.SUBSCR_NO_RESETS service_internal_id_resets, T.*,T.MTR_TYPE_ID MTR_TYPE,
T.ACCOUNT_NO account_internal_id, T.MTR_SUB_TYPE_ID MTR_SUB_TYPE,
T.FILE_ID EXTRACT_FILE_ID, T.UNIT_TYPE_ID unit_type, RCV2.ISO_CODE PREV_SUBSCRIBER_CURRENCY,
T.MTR_SOURCE_ID MTR_SOURCE, RCV1.ISO_CODE SUBSCRIBER_CURRENCY
FROM MTR T
LEFT OUTER JOIN RATE_CURRENCY_REF RCV1 ON (T.CURRENCY_CODE = RCV1.CURRENCY_CODE)
LEFT OUTER JOIN RATE_CURRENCY_REF RCV2 ON (T.PREV_CURRENCY_CODE = RCV2.CURRENCY_CODE)
WHERE (T.CURRENCY_CODE IS NULL OR RCV1.service_version_id = ?) AND
(T.PREV_CURRENCY_CODE IS NULL OR RCV2.service_version_id = ?) AND
T.mod_date BETWEEN ? AND ? AND T.subscr_no = ? AND
T.subscr_no_resets = ?
ORDER BY T.mod_date DESC
问候,钱德拉