Davidhunnam
Technical User
The following query runs VERY slowly after upgarding to IDS version 9.21.
Anyone any ideas how to tune it for faster performance?
SELECT dmy_proc(a.xact_date) DATE, timec_proc(a.xact_time) TIME, a.bid [1,10] CARD, a.employee[1,5] EMPID, a.last_name[1,20], b.first_name[1,10], a.reader_desc, ' current history' source
FROM badge_history a, badge b
WHERE (a.bid=b.bid)
AND (a.reader_desc="093.03.01 IBM Meeting Reader"
AND (today -3 <=mdy_proc(xact_date))
ORDER BY 1,2 ASC
Anyone any ideas how to tune it for faster performance?
SELECT dmy_proc(a.xact_date) DATE, timec_proc(a.xact_time) TIME, a.bid [1,10] CARD, a.employee[1,5] EMPID, a.last_name[1,20], b.first_name[1,10], a.reader_desc, ' current history' source
FROM badge_history a, badge b
WHERE (a.bid=b.bid)
AND (a.reader_desc="093.03.01 IBM Meeting Reader"
AND (today -3 <=mdy_proc(xact_date))
ORDER BY 1,2 ASC