thechazm
VBA, VB.net, C#, Java
- Local time
- Today, 18:04
- Joined
- Mar 7, 2011
- Messages
- 515
Hello all,
It's been a while and hope everyone is doing ok. I have a question and it's maybe more on a basic level but when I open a query that has results with more than 200K records when I click on the date field it takes a while before it gives me the selection of the dates to filter with.
This is just a basic query but it's going to seem large due to the normalization I am doing but ultimatly is there anyway to speed up the list generation when you click on the drop down in the open query?
I have already tried indexing the date field and it did nothing.
Thanks
It's been a while and hope everyone is doing ok. I have a question and it's maybe more on a basic level but when I open a query that has results with more than 200K records when I click on the date field it takes a while before it gives me the selection of the dates to filter with.
This is just a basic query but it's going to seem large due to the normalization I am doing but ultimatly is there anyway to speed up the list generation when you click on the drop down in the open query?
I have already tried indexing the date field and it did nothing.
Thanks
Code:
SELECT Shops.Shops,
[Shop Commits].Badge,
[Project Name Ref].[Project Name] AS [CWeek Proj],
TSDS.TSD AS CWeekTSD,
TSDS.Title AS [C Title],
TSDS.Nuclear AS CWeekNUC,
[Request Types].[Request Type] AS CWeekPriority,
[Project Name Ref_1].[Project Name] AS AProj,
TSDS_1.TSD AS ATSD,
TSDS_1.Title AS [A Title],
TSDS_1.Nuclear AS ANUC,
[Request Types_1].[Request Type] AS APriority,
[Project Name Ref_2].[Project Name] AS A1WeekProj,
TSDS_2.TSD AS A1WeekTSD,
TSDS_2.Title AS [A1 Title],
TSDS_2.Nuclear AS A1NUC,
[Request Types_2].[Request Type] AS A1Priority,
[Project Name Ref_3].[Project Name] AS A2Proj,
TSDS_3.TSD AS A2TSD,
TSDS_3.Title AS [A2 Title],
TSDS_3.Nuclear AS A2NUC,
[Request Types_3].[Request Type] AS A2Priority,
[Project Name Ref_4].[Project Name] AS A3Proj,
TSDS_4.TSD AS A3TSD,
TSDS_4.Title AS [A3 Title],
TSDS_4.Nuclear AS A3NUC,
[Request Types_4].[Request Type] AS A3Priority,
[Shop Commits].[C Date]
FROM [Request Types] RIGHT JOIN ([Request Types] AS [Request Types_4]
RIGHT JOIN ([Request Types] AS [Request Types_3]
RIGHT JOIN ([Request Types] AS [Request Types_2]
RIGHT JOIN ([Request Types] AS [Request Types_1]
RIGHT JOIN (TSDS AS TSDS_4
RIGHT JOIN (TSDS AS TSDS_3
RIGHT JOIN (TSDS AS TSDS_2
RIGHT JOIN (TSDS AS TSDS_1
RIGHT JOIN ([Project Name Ref] AS [Project Name Ref_4]
RIGHT JOIN ([Project Name Ref] AS [Project Name Ref_3]
RIGHT JOIN ([Project Name Ref] AS [Project Name Ref_2]
RIGHT JOIN ([Project Name Ref] AS [Project Name Ref_1]
RIGHT JOIN (Shops INNER JOIN ([Project Name Ref]
RIGHT JOIN (TSDS RIGHT JOIN [Shop Commits] ON TSDS.ID = [Shop Commits].CTSD)
ON [Project Name Ref].ID = [Shop Commits].CProject)
ON Shops.ID = [Shop Commits].Shop)
ON [Project Name Ref_1].ID = [Shop Commits].AProject)
ON [Project Name Ref_2].ID = [Shop Commits].A1Project)
ON [Project Name Ref_3].ID = [Shop Commits].A2Project)
ON [Project Name Ref_4].ID = [Shop Commits].A3Project)
ON TSDS_1.ID = [Shop Commits].ATSD)
ON TSDS_2.ID = [Shop Commits].A1TSD)
ON TSDS_3.ID = [Shop Commits].A2TSD)
ON TSDS_4.ID = [Shop Commits].A3TSD)
ON [Request Types_1].ID = [Shop Commits].[AColor Type])
ON [Request Types_2].ID = [Shop Commits].[A1Color Type])
ON [Request Types_3].ID = [Shop Commits].[A2Color Type])
ON [Request Types_4].ID = [Shop Commits].[A3Color Type])
ON [Request Types].ID = [Shop Commits].[CColor Type];
Last edited: