@@ -85,6 +85,8 @@ var extraSort
85
85
public async Task < PagedDto < RentalListingGroupDto > > GetGroupedRentalListings ( string ? all , string ? address , string ? url , string ? listingId , string ? hostName , string ? businessLicence ,
86
86
bool ? prRequirement , bool ? blRequirement , long ? lgId , string [ ] statusArray , bool ? reassigned , bool ? takedownComplete , int pageSize , int pageNumber , string orderBy , string direction )
87
87
{
88
+ var stopwatch = Stopwatch . StartNew ( ) ;
89
+
88
90
var query = _dbSet . AsNoTracking ( ) ;
89
91
90
92
if ( _currentUser . OrganizationType == OrganizationTypes . LG )
@@ -106,13 +108,9 @@ public async Task<PagedDto<RentalListingGroupDto>> GetGroupedRentalListings(stri
106
108
107
109
var extraSort = "" ;
108
110
109
- var stopwatch = Stopwatch . StartNew ( ) ;
110
111
111
112
var groupedListings = await Page < RentalListingGroupDto , RentalListingGroupDto > ( groupedQuery , pageSize , pageNumber , orderBy , direction , extraSort ) ;
112
113
113
- stopwatch . Stop ( ) ;
114
-
115
- _logger . LogDebug ( $ "Get Grouped Listings (group) - Page Size: { pageSize } , Page Number: { pageNumber } , Time: { stopwatch . Elapsed . TotalSeconds } seconds") ;
116
114
117
115
foreach ( var group in groupedListings . SourceList )
118
116
{
@@ -122,6 +120,10 @@ public async Task<PagedDto<RentalListingGroupDto>> GetGroupedRentalListings(stri
122
120
hostName , businessLicence , prRequirement , blRequirement , lgId , statusArray , reassigned , takedownComplete , group ) ;
123
121
}
124
122
123
+ stopwatch . Stop ( ) ;
124
+
125
+ _logger . LogDebug ( $ "Get Grouped Listings (group) - Page Size: { pageSize } , Page Number: { pageNumber } , Total Time: { stopwatch . Elapsed . TotalSeconds } seconds") ;
126
+
125
127
return groupedListings ;
126
128
}
127
129
0 commit comments