And on that note what you should do is update your SQL and put ALL of your tables and linking in the Command. Use one command object so as Abhilash indicated, all of the data collection and final results are done Server side.
After all DB Servers will and always be better at collecting data than CR will ever be, After all that's what they do best...
Don