I have 2 Models: Folder and Data. These are linked with a Many-Many Relationship using the table FolderData. I am trying to Output the Name of the Folder together with the number of Data (count). Unfortunately I could Not find a Solution… Is this possible with One query at all? Or do I need n+1 queries? Thanks for your help
I do Not See a Reason to use stat queries cause they perform for each Folder One extra query… However how can I do that without changing the dB Design? Thanks!