This is a migrated thread and some comments may be shown as answers.

What is the limit on FetchStrategy.LoadWith?

1 Answer 63 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 18 Jul 2011, 06:11 PM
Hi,

I'm trying to use the fetch strategy method LoadWith() for performance. It appears there is a limit to the number of sub-objects that the fetch can handle. 

*EDIT* Moments later, I realised that you can't have a fetch plan on a non-persisted property.

Thanks,
David.

1 Answer, 1 is accepted

Sort by
0
Accepted
Jan Blessenohl
Telerik team
answered on 19 Jul 2011, 01:18 PM
Hi David,
There are limits, we are fetching 3 levels by default, infinit amout of objects. You can change the behavior by setting the MaxFetchDepth and MaxResultsLimit properties.

All the best,
Jan Blessenohl
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Development (API, general questions)
Asked by
David
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Share this question
or