大量消息收件箱完成第一层性能优化
This commit is contained in:
1 parent
7731a343d7
commit
e4f1d88ca1
6 files changed
+7024
-4
No files matched your search
@@ -58,6 +58,7 @@ public sealed class NotificationsController(
|
||||
var total = await source.CountAsync(cancellationToken);
|
||||
var items = await source
|
||||
.OrderByDescending(x => x.CreatedAt)
|
||||
.ThenByDescending(x => x.Id)
|
||||
.Skip((page - 1) * pageSize)
|
||||
.Take(pageSize)
|
||||
.Select(x => new
|
||||
|
||||
Reference in new issue
Block a user