recently, we did migration of jobs, and I noticed a job in Tets enviroment is running in 40 mins while in PRO enviroment takes almost 3 hours.
I checked the logs, and the difference is in VPR we are using collected statistics, while in PRO not…
Test env. log:
Cache statistics determined that data flow <DF_XXXXX> uses 9 caches with a total size of 106378869 bytes, which is less
than (or equal to) 3739222016 bytes available for caches in virtual memory. Data flow will use IN MEMORY cache type.
PRO env. log:
Cache statistics for data flow <DF_XXXXX> are not available to be used for optimization. You must collect statistics
before optimization can be done.
Does anybody know how to activate this statistics?
When you run the job you can to enable the “Collect statistics for optimization” checkbox. Then in the next run of the job you turn off that checkbox and turn on the “Use collected statistics” checkbox.
While doing the above will help (certainly on memory utilization) I doubt that it is your only problem. Be sure you have the DBA collect statistics within the source/target databases for your PRO environments. I’ve seen some nasty performance issues in new environments where the database statistics had not been gathered.