Hi Team,
After upgrading from Umbraco 13 to Umbraco 17, the following code has become very slow:
“metaContents = _contentQuery.Content(ContentParentID)?.Children?.Where(x => x.IsPublished() && x.ContentType.Alias == request.TypeName).OrderByDescending(x => x.UpdateDate).ToList();”
For approximately 410 child records, this query takes around 10–15 minutes to complete.
In Umbraco 13, the same functionality performed significantly faster.
Could you please advise whether there is a recommended replacement or a more efficient approach in Umbraco 17 for:
- Retrieving children under a published content parent
- Filtering by content type alias
- Filtering published content
- Sorting by
UpdateDate
Is there any known performance change or issue with using .Children, .IsPublished(), or ContentType.Alias in Umbraco 17?
Thanks & Regards,
Patan Masood Alikhan