Timeout issue when getting more then 100K records using linq query RRS feed

  • Question

  • hi,

    Timeout issue when getting more then 100K records using linq query.

    when i try to getting more then 100K records from the database using linq query its going to timeout issue.  can you please explain me ?

    i need your help for getting more then 100k records using linq query.


    thanks in advance.

    Trishul Tandel.

    Wednesday, November 2, 2011 5:01 AM


All replies

  • Hi

    More than 100,000? What application you are working on? 

    What is the environement?

    How many tables are involved?

    How much time it takes when you directly executes the query?

    Many factors effect the scenario...

    LINQ makes our life easy to specify easily what we want, under the hood it actually translates into sql to execute, So, you need to dig from database to application where it really causing delay...

    You can also look into PLINQ which is available from .Net 4.0. 

    If this post answers your question, please click "Mark As Answer". If this post is helpful please click "Mark as Helpful".
    • Edited by Kris444 Wednesday, November 2, 2011 7:53 AM
    Wednesday, November 2, 2011 7:52 AM
  • you can check CommandTimeout was set 30 sec by default. So some providers maybe throw the exception if this value was set non-zero value. In extreme, we can consider set the desired time by ourselves.



    Just a newbie for everything.
    Wednesday, November 2, 2011 4:13 PM