The Database Health page (Documentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
/settings/system-health/database) provides a real-time view of database integrity indicators, including trigger coverage, row-level security policy coverage, and index usage — broken down by module.
Overview
The page is gated byplatform.system_health.manage at the route level. It calls useDatabaseHealth to load a metrics object containing a summary, an issues array, and a byModule breakdown. The header shows the last update timestamp (metrics.generatedAt) and provides Refresh and Export JSON buttons. The main grid shows DatabaseHealthOverviewCard (summary statistics) and DbHealthIssuesList (surfaced issues). A ModuleCoverageTable below lists per-module coverage statistics. Clicking the back arrow navigates to /settings/system-health.
Who it’s for
Requires permissionplatform.system_health.manage.
Before you start
- You must hold
platform.system_health.manage. - Navigate from
/settings/system-healthusing the Database Health card, or go directly to this URL.
Steps
Open Database Health
Navigate to
/settings/system-health/database. Metrics load automatically on page entry.Review the overview summary
The left column card shows aggregate health statistics across trigger coverage, RLS policy coverage, and index usage.
Review issues
The right column panel lists specific issues detected in the database. Review each issue and act on it according to your platform runbook.
Review per-module coverage
The
ModuleCoverageTable below shows coverage breakdowns by module, helping identify which modules have gaps.Key concepts
Trigger coverage
Trigger coverage
Trigger coverage measures whether the expected database triggers (e.g., for audit logging or updated_at management) are present on each table.
RLS policy coverage
RLS policy coverage
Row-level security coverage indicates whether RLS policies are enabled and present for each table that should have them.
Index usage
Index usage
Index usage statistics help identify tables with missing or underused indexes that may affect query performance.
Related
Platform Foundation
Platform Foundation overview.
Governance & parity
Documentation coverage and governance.
This page documents shipped product behavior. It is not medical, legal, or
billing advice. Verify against your organization’s policies and applicable
regulations before using it for clinical, compliance, or billing decisions.
Protected health information (PHI) shown in the product is governed by your
tenant’s access controls and is never exposed in this documentation.
Documentation sources
Documentation sources
- src/routes/platform.tsx
- src/platform/health/pages/DatabaseHealthPage.tsx
- src/platform/health/hooks/useDatabaseHealth.ts