Skip to content
Open
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,9 @@
-- Index for active_subscription on tools table.
-- The active_subscription column is used as a filter predicate in multiple
-- computed selectors (totalMonthlyCost, totalAnnualCost, renewingWithin30Days).
-- A partial index keeps the index small and targets the common query pattern
-- of filtering for tools with an active subscription.

create index if not exists idx_tools_active_subscription
on tools (billing_cycle)
where active_subscription = true;