MrSethtT

fact_data indexes

Oct 23rd, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 1.93 KB | None | 0 0
  1. USE [FSTest]
  2. GO
  3.  
  4. /****** Object:  Index [FACT_Data_z]    Script Date: 10/23/2017 11:43:11 AM ******/
  5. CREATE NONCLUSTERED INDEX [FACT_Data_z] ON [dbo].[FACT_Data]
  6. (
  7.     [STime] ASC,
  8.     [dept_id] ASC,
  9.     [WrittenState] ASC
  10. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  11. GO
  12.  
  13. /****** Object:  Index [IX_FACT_Data]    Script Date: 10/23/2017 11:43:11 AM ******/
  14. CREATE NONCLUSTERED INDEX [IX_FACT_Data] ON [dbo].[FACT_Data]
  15. (
  16.     [STime] ASC,
  17.     [dept_id] ASC,
  18.     [specs_id] ASC
  19. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  20. GO
  21.  
  22. /****** Object:  Index [IX_FACT_Data_DeptSpecSubg]    Script Date: 10/23/2017 11:43:11 AM ******/
  23. CREATE NONCLUSTERED INDEX [IX_FACT_Data_DeptSpecSubg] ON [dbo].[FACT_Data]
  24. (
  25.     [dept_id] ASC,
  26.     [specs_id] ASC,
  27.     [subg_number] ASC
  28. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  29. GO
  30.  
  31. /****** Object:  Index [IX_FACT_DATA2]    Script Date: 10/23/2017 11:43:11 AM ******/
  32. CREATE NONCLUSTERED INDEX [IX_FACT_DATA2] ON [dbo].[FACT_Data]
  33. (
  34.     [dept_id] ASC,
  35.     [specs_id] ASC,
  36.     [STime] ASC
  37. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  38. GO
  39.  
  40. /****** Object:  Index [IX_FACT_DataSpecsTimeID]    Script Date: 10/23/2017 11:43:11 AM ******/
  41. CREATE NONCLUSTERED INDEX [IX_FACT_DataSpecsTimeID] ON [dbo].[FACT_Data]
  42. (
  43.     [specs_id] ASC,
  44.     [STime] ASC,
  45.     [data_id] ASC,
  46.     [data_uid] ASC
  47. )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
  48. GO
Advertisement
Add Comment
Please, Sign In to add comment