Stored procedure only way to go for big data processes, right?

Answered Stored procedure only way to go for big data processes, right?

  • Saturday, October 06, 2012 2:01 AM
     
     
    In the past, I would could big data processes in stored procedure. E.g. Update these records here, insert others there.. sometimes calling one proc from another, using temp tables to iterate, etc.  It worked well. 

    But then we got sold on LINQ and began to use. It was/is great for simple CRUD operations, especially selects. But in a big processing operation, we couldn't possibly code all that we needed in a single LINQ statement. So we'd end of coding much of it in our .NET classes making LINQ calls within. 

    The big problem with this is that the data is being brought back from SQL to .NET (via LINQ) and then iterated over, often in nested loops. These are killing us performance-wise, especially given that the classes don't reside on the same machine as the database (so all that data is going across the LAN). 

    So we're now looking at re-writing these big processes back in stored procedure. Is there a LINQ person out there who would suggest otherwise?  There is no way even a LINQ genius could write this stuff in just LINQ without having to involve .NET code. And once you do, you're then bringing that data from data to business layer for all that processing.

    Thanks for responses. 


All Replies