Skip to content

Commit

Permalink
Merge pull request #509 from radixdlt/pending-tx-query-opt
Browse files Browse the repository at this point in the history
Dropped ORDER BY / LIMIT from pending TX payload queries
  • Loading branch information
krzlabrdx authored Sep 27, 2023
2 parents 3b45860 + e42d052 commit 206fea5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,6 @@ private async Task<ICollection<PendingTransactionSummary>> LookupPendingTransact
return await _rwDbContext
.PendingTransactions
.Where(pt => pt.IntentHash == intentHash)
.OrderBy(pt => pt.GatewayHandling.FirstSubmittedToGatewayTimestamp)
.Take(100) // Limit this just in case
.Select(pt =>
new PendingTransactionSummary(
pt.PayloadHash,
Expand All @@ -597,6 +595,7 @@ private async Task<ICollection<PendingTransactionSummary>> LookupPendingTransact
)
)
.AnnotateMetricName()
.AsNoTracking()
.ToListAsync(token);
}

Expand Down

0 comments on commit 206fea5

Please sign in to comment.