Skip to content

Commit a8a4685

Browse files
committed
api/rofl_apps: A bit improved ordering
1 parent 16c0e4d commit a8a4685

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.changelog/1070.feature.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
api/rofl_apps: Prioritize non-removed apps in ordering

storage/client/queries/queries.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ func RuntimeRoflApps(rawNames *[]string, args *[]interface{}) string {
13921392
-- Exclude not yet processed apps.
13931393
ra.last_processed_round IS NOT NULL
13941394
1395-
ORDER BY num_active_instances DESC, ra.num_transactions DESC, ra.id DESC
1395+
ORDER BY num_active_instances DESC, ra.removed ASC, ra.num_transactions DESC, ra.id DESC
13961396
LIMIT $%d::bigint
13971397
OFFSET $%d::bigint`, nameCondition, argOffset+len(clauses), argOffset+len(clauses)+1)
13981398

0 commit comments

Comments
 (0)