If the parent entity has limit, assume a "large" result and switch over to "relatedViaQueryWithParentIds" strategy for fetching children. Suppose we can utilize a threshhold here (e.g. strategy = limit > 0 && limit < 5000 ? relatedViaQueryWithParentIds : relatedViaQueryWithParentExp) .
An optimization of Cayenne RelatedDataResolver:
If the parent entity has
limit
, assume a "large" result and switch over to "relatedViaQueryWithParentIds" strategy for fetching children. Suppose we can utilize a threshhold here (e.g.strategy = limit > 0 && limit < 5000 ? relatedViaQueryWithParentIds : relatedViaQueryWithParentExp
) .