Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Partial index to support DataValueTrimJob efficiently.
-- Only indexes rows where value is null or empty and not yet deleted,
-- which are the candidates for soft-deletion by the trim job.
-- Expected to be tiny in a healthy system (near-zero rows match).
create index if not exists idx_datavalue_null_empty_trim
on datavalue (dataelementid)
where deleted = false and (value is null or value = '');
Loading