Aug 06 2018
07:41 PM
- last edited on
Jul 12 2019
11:13 AM
by
TechCommunityAP
Aug 06 2018
07:41 PM
- last edited on
Jul 12 2019
11:13 AM
by
TechCommunityAP
I'm having trouble with getting data from a very large Oracle SQL table. It seems like Query Folding may not be occurring with my left inner join, so the server is returning all 519 million rows of data from the main table, rather than just the records I want (records from the last 30 days). But before I can filter by date range, I have to join the main table via the Date_ID column with the Date table (which itself has 18k rows), expand the actual date column, and then filter by it.
When I'm in the editor, I seem to remember joins like this would preview quickly, I thought it was because it was only using a small subset (say 200 rows) of data, or maybe it was using query folding so the server handled the join and where-clause, and only returned back the small set I wanted. But now it's clear that isn't happening.
Sep 12 2019 05:19 AM
Sep 12 2019 05:29 AM