-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindexes.sql
42 lines (38 loc) · 1.11 KB
/
indexes.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
-- Index Payments improves the calculation of a customer balance of payments
CREATE NONCLUSTERED INDEX INDEX_Payments ON Payments (
ReservationID ASC
)
WITH (PAD_INDEX = OFF,
STATISTICS_NORECOMPUTE = OFF,
SORT_IN_TEMPDB = OFF,
DROP_EXISTING = OFF,
ONLINE = OFF,
ALLOW_ROW_LOCKS = ON,
ALLOW_PAGE_LOCKS = ON
)
-- Index DayRegistration improves obtaining lists of participants assigned
-- to reservations for conference days
CREATE NONCLUSTERED INDEX INDEX_DayRegistration ON DayRegistrations (
DayReservationID ASC
)
WITH (PAD_INDEX = OFF,
STATISTICS_NORECOMPUTE = OFF,
SORT_IN_TEMPDB = OFF,
DROP_EXISTING = OFF,
ONLINE = OFF,
ALLOW_ROW_LOCKS = ON,
ALLOW_PAGE_LOCKS = ON
)
-- Index WorkshopRegistration improves obtaining lists of perticipants
-- assigned to workshop reservations
CREATE NONCLUSTERED INDEX INDEX_WorkshopRegistration ON WorkshopRegistrations (
WorkshopReservationID ASC
)
WITH (PAD_INDEX = OFF,
STATISTICS_NORECOMPUTE = OFF,
SORT_IN_TEMPDB = OFF,
DROP_EXISTING = OFF,
ONLINE = OFF,
ALLOW_ROW_LOCKS = ON,
ALLOW_PAGE_LOCKS = ON
)