Click here to Skip to main content
15,891,607 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionLinq to SQL dbml file Pin
indian1431-Jul-11 13:19
indian1431-Jul-11 13:19 
AnswerRe: Linq to SQL dbml file Pin
Philippe Mori1-Jul-11 13:56
Philippe Mori1-Jul-11 13:56 
GeneralRe: Linq to SQL dbml file Pin
indian1431-Jul-11 14:54
indian1431-Jul-11 14:54 
GeneralRe: Linq to SQL dbml file Pin
Philippe Mori1-Jul-11 16:01
Philippe Mori1-Jul-11 16:01 
GeneralRe: Linq to SQL dbml file Pin
indian1431-Jul-11 19:12
indian1431-Jul-11 19:12 
GeneralRe: Linq to SQL dbml file Pin
Philippe Mori2-Jul-11 2:58
Philippe Mori2-Jul-11 2:58 
AnswerRe: Linq to SQL dbml file Pin
Not Active1-Jul-11 15:12
mentorNot Active1-Jul-11 15:12 
QuestionLinq to SQL is taking more memory Pin
indian14330-Jun-11 14:06
indian14330-Jun-11 14:06 
Hi All,

I have created few Linq Queries using Lambda expressions in my application, and I got feedback that my Linq Queries and Lambda expressions are taking more memory. I dont know how to see that, but he told me.
Can anybody please advice me how to create Linq and Lambda expressions by consuming very less memory. I am new to the Linq and Lambda. I am giving my code below please advice me any kind of help is greatly appreciated.

Either give me idea or links to write efficient linq and lambda's or give me any alternate solution if we have other that linq and lambda.
And one more thing is that we are using Linq to SQL to connect to the database.

Below is the Code:
        public string GetQuarterlyUpdateTUCDataXml( int quarterlyUpdateJobId, int quarterlyUpdateSubscriptionId)
        {
            string strQuarterlyUpdateDeltaReport = null;            

            var quarterlyUpdateSubscription = parallelDataContext.teQUTUDatas.Where(c => c.QuarterlyUpdateJobID ==
     quarterlyUpdateJobId && c.QuarterlyUpdateSubscriptionID == quarterlyUpdateSubscriptionId).ToList();

            if ((quarterlyUpdateSubscription != null) && 
(quarterlyUpdateSubscription.Count > 0))
            {
                byte[] encryptedBytes = (from a in quarterlyUpdateSubscription
                                         join
                                             b in parallelDataContext.teBinaryDatas on  

a.DeltaReportBinaryDataID equals b.BinaryDataID
select b.Data).FirstOrDefault().ToArray();

                strQuarterlyUpdateDeltaReport = (encryptedBytes != null) ?
                  objCommon.GetDecryptedReportString(encryptedBytes) : ""; //objCommon.GetDecryptedReport(encryptedBytes); //                       
            }
            
            return strQuarterlyUpdateDeltaReport;
        }

Thanks & Regards,

Abdul Aleem Mohammad
St Louis MO - USA

AnswerRe: Linq to SQL is taking more memory [modified] Pin
Not Active30-Jun-11 15:07
mentorNot Active30-Jun-11 15:07 
GeneralRe: Linq to SQL is taking more memory Pin
indian14330-Jun-11 17:58
indian14330-Jun-11 17:58 
GeneralRe: Linq to SQL is taking more memory Pin
Not Active30-Jun-11 18:18
mentorNot Active30-Jun-11 18:18 
AnswerRe: Linq to SQL is taking more memory Pin
dasblinkenlight1-Jul-11 3:44
dasblinkenlight1-Jul-11 3:44 
GeneralRe: Linq to SQL is taking more memory Pin
indian1431-Jul-11 8:43
indian1431-Jul-11 8:43 
GeneralRe: Linq to SQL is taking more memory Pin
dasblinkenlight1-Jul-11 9:02
dasblinkenlight1-Jul-11 9:02 
AnswerRe: Linq to SQL is taking more memory Pin
Philippe Mori1-Jul-11 14:04
Philippe Mori1-Jul-11 14:04 
AnswerRe: Linq to SQL is taking more memory Pin
Shameel3-Jul-11 20:35
professionalShameel3-Jul-11 20:35 
QuestionLinqToExcel in win 64 bit Pin
Dhyanga30-Jun-11 8:10
Dhyanga30-Jun-11 8:10 
AnswerRe: LinqToExcel in win 64 bit Pin
Not Active30-Jun-11 8:13
mentorNot Active30-Jun-11 8:13 
GeneralRe: LinqToExcel in win 64 bit Pin
Dhyanga30-Jun-11 8:26
Dhyanga30-Jun-11 8:26 
GeneralRe: LinqToExcel in win 64 bit Pin
Parwej Ahamad30-Jun-11 9:11
professionalParwej Ahamad30-Jun-11 9:11 
GeneralRe: LinqToExcel in win 64 bit Pin
Not Active30-Jun-11 9:39
mentorNot Active30-Jun-11 9:39 
AnswerRe: LinqToExcel in win 64 bit Pin
Parwej Ahamad30-Jun-11 9:22
professionalParwej Ahamad30-Jun-11 9:22 
Questionis it impossible read asp file in visual studio2010? Pin
buffering8330-Jun-11 2:46
buffering8330-Jun-11 2:46 
AnswerRe: is it impossible read asp file in visual studio2010? Pin
Not Active30-Jun-11 3:07
mentorNot Active30-Jun-11 3:07 
GeneralRe: is it impossible read asp file in visual studio2010? Pin
buffering8330-Jun-11 18:27
buffering8330-Jun-11 18:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.