Advertisement

07.19.2008 at 05:22PM PDT, ID: 23579569
[x]
Attachment Details

LINQ vs ADO.NET -- which is faster?

Asked by iulianchira in Language Integrated Query - LINQ, ADO.Net Class Library

In a gridview I have to display data that comes from 5 different tables. I wrote a method that joins my tables using foreach loops to iterate over the data tables. Now I'm thinking about switching to Linq. There is less code involved (20 lines for the Linq query vs about 200 for classic .net code). However, I'm concerned with the performance, both in terms of speed and memory usage. Is Linq faster, or is it slower?Start Free Trial
 
Loading Advertisement...
 
[+][-]07.19.2008 at 07:26PM PDT, ID: 22044278

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Language Integrated Query - LINQ, ADO.Net Class Library
Sign Up Now!
Solution Provided By: naspinski
Participating Experts: 1
Solution Grade: B
 
 
[+][-]07.20.2008 at 05:36AM PDT, ID: 22045609

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.20.2008 at 05:38AM PDT, ID: 22045617

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628