Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: Don’t include asset variants in counts #225

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

Sebobo
Copy link
Member

@Sebobo Sebobo commented Dec 28, 2023

This problem appeared due to variants getting the same collection applied as their original asset in neos/neos-development-collection#3562

Fixes: #224

@Sebobo Sebobo added the Bug Something isn't working label Dec 28, 2023
@Sebobo
Copy link
Member Author

Sebobo commented Dec 28, 2023

To fix this I had to add a join to the count query to check the type of asset. I need to check whether this hurts performance in my larger projects and maybe adjust the query.

@Sebobo
Copy link
Member Author

Sebobo commented Jan 8, 2024

So this hurts performance with a large numbers of assets. I have to see whether I find a better solution.

This problem appeared due to variants getting the same collection applied as their original asset in neos/neos-development-collection#3562

Fixes: #224
@Sebobo Sebobo force-pushed the bugfix/dont-count-variants branch from a150e0f to 1221c4a Compare January 8, 2024 14:41
@Sebobo
Copy link
Member Author

Sebobo commented Jan 8, 2024

So I updated the implementation with a sub select instead of a join. This still hurts performance, but it's about 3x faster than the JOIN on the asset table to check the dtype would have been.

@Sebobo Sebobo merged commit 9b6c48c into main Jan 8, 2024
5 checks passed
@Sebobo Sebobo deleted the bugfix/dont-count-variants branch January 8, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Collections showing wrong asset count
1 participant