This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I defined an aggregate and executed a query with it. This leads to two queries which collect the complete content of these two tables. So far everything is ok. But if I try to follow the link from the first class to the second one, the second is always fetched from the db, but it should be already cached through the aggregate. This leads to major performance issues, because we have to deal with 20k+ entries in each table. Regards, Dennis |
|
|
If you always want to eager load the child collection rather than just having it loaded when you specify the named aggregate you can enable this by turning Eager Load on for the collection within the designer (or attaching an [EagerLoad] property to the backing field if you are specifying your model manually). Unless you are saying it hasnt been loaded in the first place and simply accessing the child collection after loading the entity triggers a subsequent load?
Jeremy |
|
|
Sorry. It was a problem on our site that lead to double loading entities. |
|