Filter-Mask breaks with many andRelatedTo #13458
simon-eichenberger
started this conversation in
General
Replies: 1 comment
-
Seems like that could be simplified to a single $finder = Entry::find();
$finder->relatedTo(['targetElement' => $checkedCategoryIds]);
$finder->section($section);
// ... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to build a Filter-Mask that allows users to select checkboxes for categories from 3 groups. Each category group has about 30 cateogries. I have about 5000 entries and my current approach of making a query with andRelatedTo leads to a breakdown of the server when i have about 6-7 relations.
Is there sth wrong with my query or has somebody an advide of handling multiple and relations in a performant way?
Any help appreaciated.
Beta Was this translation helpful? Give feedback.
All reactions