Skip to content

Commit b29e4d7

Browse files
Remove the order by in the DB queries
1 parent ccc95e4 commit b29e4d7

File tree

1 file changed

+0
-4
lines changed
  • aggregation_mode/batcher/src

1 file changed

+0
-4
lines changed

aggregation_mode/batcher/src/db.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ impl Db {
5959
"SELECT merkle_path FROM tasks
6060
WHERE address = $1
6161
AND nonce = $2
62-
ORDER BY created_at DESC
6362
LIMIT $3",
6463
)
6564
.bind(addr.to_lowercase())
@@ -72,7 +71,6 @@ impl Db {
7271
sqlx::query_scalar::<_, Option<Vec<u8>>>(
7372
"SELECT merkle_path FROM tasks
7473
WHERE address = $1
75-
ORDER BY created_at DESC
7674
LIMIT $2",
7775
)
7876
.bind(addr.to_lowercase())
@@ -84,7 +82,6 @@ impl Db {
8482
sqlx::query_scalar::<_, Option<Vec<u8>>>(
8583
"SELECT merkle_path FROM tasks
8684
WHERE nonce = $1
87-
ORDER BY created_at DESC
8885
LIMIT $2",
8986
)
9087
.bind(n)
@@ -95,7 +92,6 @@ impl Db {
9592
(None, None) => {
9693
sqlx::query_scalar::<_, Option<Vec<u8>>>(
9794
"SELECT merkle_path FROM tasks
98-
ORDER BY created_at DESC
9995
LIMIT $1",
10096
)
10197
.bind(limit)

0 commit comments

Comments
 (0)