Skip to content

Commit 97d1e55

Browse files
feat: Add guest bookings partial index for active and hotel_id
1 parent 07e6e27 commit 97d1e55

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
-- Partial index on guest_bookings for active bookings by hotel
2-
-- Covers the common query pattern: hotel_id AND status = 'active'
1+
-- Partial index on guest_bookings for active bookings by hotel"
32
create index if not exists idx_guest_bookings_hotel_id_active
43
on public.guest_bookings(hotel_id)
54
where status = 'active';

0 commit comments

Comments
 (0)