[xwiki/xwiki-platform] a0055f: XWIKI-22976: The tag cloud is slow on large wikis ...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: a0055f10a1a0a004ac766ed38e5585d1feddd218 https://github.com/xwiki/xwiki-platform/commit/a0055f10a1a0a004ac766ed38e558... Author: Michael Hamann <[email protected]> Date: 2026-10-01 (Thu, 01 Oct 2026) Changed paths: M xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-api/src/main/java/org/xwiki/tag/internal/selector/DefaultTagsSelector.java M xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-api/src/main/java/org/xwiki/tag/internal/selector/ExhaustiveCheckTagsSelector.java M xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-api/src/main/java/org/xwiki/tag/internal/selector/UnsafeTagsSelector.java M xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-api/src/test/java/org/xwiki/tag/internal/selector/ExhaustiveCheckTagsSelectorTest.java M xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-api/src/test/java/org/xwiki/tag/internal/selector/UnsafeTagsSelectorTest.java M xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-test/xwiki-platform-tag-test-docker/pom.xml M xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-test/xwiki-platform-tag-test-docker/src/test/it/org/xwiki/tag/test/ui/AllIT.java M xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-test/xwiki-platform-tag-test-docker/src/test/it/org/xwiki/tag/test/ui/TagIT.java A xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-test/xwiki-platform-tag-test-docker/src/test/it/org/xwiki/tag/test/ui/UnsafeTagsSelectorIT.java Log Message: ----------- XWIKI-22976: The tag cloud is slow on large wikis (#6442) * Let the database compute the cardinality in the unsafe selector, so that a single row is returned per distinct tag value instead of one row per (document, tag) pair. The case variants are still merged in Java, over the grouped rows * Order the results by tag in the exhaustive selector's getAllTags and memoize the view right per document, so that the remaining documents of a tag are skipped as soon as one of them is viewable * Read the tag.rightCheckStrategy.hint property on each call instead of once at initialization, like DefaultKeywordSearchSource does for rest.keywordSearchSource, so that the strategy no longer needs a restart * Cover both queries with docker tests running against a real database, the unsafe strategy being switched on from within the tests since the configuration is now read live Co-authored-by: Claude Opus 5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications