Skip to content

perf: Optimize native filters and cross filters#31243

Merged
kgabryje merged 1 commit into
apache:masterfrom
kgabryje:perf/optimize-native-filters
Dec 2, 2024
Merged

perf: Optimize native filters and cross filters#31243
kgabryje merged 1 commit into
apache:masterfrom
kgabryje:perf/optimize-native-filters

Conversation

@kgabryje
Copy link
Copy Markdown
Member

@kgabryje kgabryje commented Dec 2, 2024

SUMMARY

This PR supersedes #30958.
Related to PRs: #31240, #31241, #31242, #31244.

Optimizes utils and components related to native filters and cross filters. Many util functions, such as useSelectChartTabParents or getCrossFilterIndicator were suboptimal, running some operations unnecessarily, and were being called from components redundantly. This PR implements memoization in filter bar components, improves Redux selectors and optimizes the util functions.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

For detailed perf improvement results, see the details in PR #30958

TESTING INSTRUCTIONS

No functional changes - the dashboard, native filters, cross filters, chart actions, etc. should work like before

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@kgabryje kgabryje force-pushed the perf/optimize-native-filters branch from a9de786 to 02b7e50 Compare December 2, 2024 14:07
@kgabryje kgabryje merged commit ce0e06a into apache:master Dec 2, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 5.0.0 First shipped in 5.0.0 labels Jul 29, 2025
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels dashboard:cross-filters Related to the Dashboard cross filters dashboard:native-filters Related to the native filters of the Dashboard dashboard:performance Related to Dashboard performance size/XL 🚢 5.0.0 First shipped in 5.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants