The app is generating a couple N+1 queries in the My Bills view. These may also be present in the All Bills view.
When associating Subjects with Bills:
(@P1 nvarchar(4))
select [Subject].*
, [BillSubject].[BillId] as [pivot_BillId]
, [BillSubject].[SubjectId] as [pivot_SubjectId]
from [Subject]
inner join [BillSubject] on [Subject].[Id] = [BillSubject].[SubjectId]
where [BillSubject].[BillId] in (@P1)
When associating Actions with Bills:
(@P1 nvarchar(3))
select *
from [Action]
where [Action].[BillId] in (@P1)
order by [Date] desc
When associating ScheduledActions with Bills
(@P1 nvarchar(3),@P2 nvarchar(23))
select *
from [ScheduledAction]
where [ScheduledAction].[BillId] in (@P1) and [Date] >= @P2
order by [Date] asc
The app is generating a couple N+1 queries in the My Bills view. These may also be present in the All Bills view.
Subjects
withBills
:Actions
withBills
:ScheduledActions
withBills