Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
+17
@@ -0,0 +1,17 @@
|
||||
-- Phase 04 performance hardening — workflow execution list indexes.
|
||||
--
|
||||
-- These indexes match the execution list and history query shapes:
|
||||
-- tenant/global scope + newest first, workflow history + newest first,
|
||||
-- and status/type filters in admin and tenant execution views.
|
||||
|
||||
CREATE INDEX "workflow_execution_tenant_scope_created_at_idx"
|
||||
ON "WorkflowExecution" ("tenantId", "appliesToAllTenants", "createdAt" DESC);
|
||||
|
||||
CREATE INDEX "workflow_execution_workflow_tenant_created_at_idx"
|
||||
ON "WorkflowExecution" ("workflowId", "tenantId", "createdAt" DESC);
|
||||
|
||||
CREATE INDEX "workflow_execution_tenant_status_created_at_idx"
|
||||
ON "WorkflowExecution" ("tenantId", "status", "createdAt" DESC);
|
||||
|
||||
CREATE INDEX "workflow_execution_tenant_type_created_at_idx"
|
||||
ON "WorkflowExecution" ("tenantId", "type", "createdAt" DESC);
|
||||
Reference in new issue
Block a user