This question is locked. New answers and comments are not allowed.
Hello all.
In this post I am using DataAccess to populate a grid. Unfortunately there are not really neccessary subsequent requests for the navigation properties generated.
The main request could be used to popupate the already joined navigation properties (WorkOrder and Operation). Obviously the join is only used for filtering.
SELECT TOP (@__TAKE) a.[Id] AS COL1, a.[ActivityStatus] AS COL2, a.[BackgroundColor] AS COL3, a.[EventType] AS COL4, a.[Description] AS COL5, a.[en] AS COL6, a.[EventType] AS COL7, a.[IsAllDay] AS COL8, a.[OperationId] AS COL9, a.[OperationId] AS COL10, a.[RecurrenceException] AS COL11, a.[RecurrenceRule] AS COL12, a.[strt] AS COL13, a.[Status] AS COL14, a.[Title] AS COL15, a.[WorkplaceId] AS COL16, a.[WorkplaceId] AS COL17FROM [CalendarEvent] aJOIN [Operation] AS b ON (a.[OperationId] = b.[Id])JOIN [WorkOrder] AS c ON (b.[WorkOrderId] = c.[Id])WHERE a.[OperationId] IS NOT NULL AND b.[MasterSystemHierarchy] = @p0 AND NOT ((b.[ProcessingStatus] IN (@p1, @p2))) AND c.[QuantityToProduce] - b.[QuantityConfirmed] > 0What can I do to improve performance in such cases?
If you need any additional information not included in the linked post, please let me know.
Kind regards.