Hi Gurus,
I have a situration where the SQL queue has some joining , do you think if this is a solution if i retreive data from each table and merge it in SAS locally instead of sending join queue to Oracle?
in regards to performance issue if the dataset is around 50GB.
Thanks
In general it will be faster to join in the source database rather than extracting. Moving 50Gb of data would take a long time.
The only exception would be is if your join is essentially replicating data such that the result of the join is much larger than just pulling the source tables individually. For example if the join was to convert a small code variable in your large fact table into a long descriptive text by joining with a dimension (lookup, format) table. In that case it might be faster post pone the lookup. Instead just keep the coded value in the large table so that less data needs to move from Oracle to SAS. Then you could convert the code to the description in SAS. For example you could convert the dimension table to a FORMAT and attach it to the variable with coded value.
In general it will be faster to join in the source database rather than extracting. Moving 50Gb of data would take a long time.
The only exception would be is if your join is essentially replicating data such that the result of the join is much larger than just pulling the source tables individually. For example if the join was to convert a small code variable in your large fact table into a long descriptive text by joining with a dimension (lookup, format) table. In that case it might be faster post pone the lookup. Instead just keep the coded value in the large table so that less data needs to move from Oracle to SAS. Then you could convert the code to the description in SAS. For example you could convert the dimension table to a FORMAT and attach it to the variable with coded value.
thx Tom
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.