Skip to content

feat: disable dashboard and grouped views for large vaults (workaround for performance issues)#44

Merged
soler1212 merged 1 commit intomasterfrom
chore/performance-setting
Jul 23, 2025
Merged

feat: disable dashboard and grouped views for large vaults (workaround for performance issues)#44
soler1212 merged 1 commit intomasterfrom
chore/performance-setting

Conversation

@soler1212
Copy link
Copy Markdown
Member

@soler1212 soler1212 commented Jul 23, 2025

What

This PR introduces a workaround to improve performance in large vaults by disabling the Status Dashboard and Grouped Status View when the number of notes exceeds a configurable limit (vaultSizeLimit, default: 15000).

A setting is added in the plugin options to customize this threshold, or disable the check by setting it to 0.

Why

Vaults with a high number of notes cause performance degradation when rendering the dashboard or grouped views. This PR prevents rendering them entirely in such cases as a temporary mitigation.

How

  • Added vaultSizeLimit setting (default: 15000).
  • In both status-dashboard-view and grouped-status-view, added early return if vault size exceeds the threshold.
  • Rendered a user-friendly message instead.
  • Updated settings UI and styling to support the new option.

Caveats

This is a workaround — it does not solve the root performance problem, only avoids the UI impact in large vaults.


Issue created to track the real solution: Improve dashboard performance in large vaults.

Closes #45

@soler1212 soler1212 self-assigned this Jul 23, 2025
@soler1212 soler1212 changed the title feat: hidde dashboard and grouped status by vault size feat: disable dashboard and grouped views for large vaults (workaround for performance issues) Jul 23, 2025
@soler1212 soler1212 added the bug Something isn't working label Jul 23, 2025
@soler1212 soler1212 added this to the v2.0.0 milestone Jul 23, 2025
@soler1212 soler1212 marked this pull request as ready for review July 23, 2025 06:44
@soler1212 soler1212 merged commit 070df7d into master Jul 23, 2025
@soler1212 soler1212 deleted the chore/performance-setting branch July 23, 2025 06:44
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.

Improve performance of dashboard and grouped views in large vaults

1 participant