Extract stable primitives (isAuthenticated, userOrgId) from user object for the checkOrg effect dependency array to prevent unnecessary re-runs on every render. Batch uptime cleanup deletion (1000 rows/batch) to avoid lock contention and WAL bloat.
Extract stable primitives (isAuthenticated, userOrgId) from user object for the checkOrg effect dependency array to prevent unnecessary re-runs on every render. Batch uptime cleanup deletion (1000 rows/batch) to avoid lock contention and WAL bloat.