Skip to content

Commit

Permalink
use messages_lookup to retrieve timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivansete-status committed Sep 26, 2024
1 parent b358c90 commit dc3c07d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions waku/waku_archive/driver/postgres_driver/postgres_driver.nim
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ const SelectWithCursorNoDataAscStmtDef =
timestamp <= $7
ORDER BY timestamp ASC, messageHash ASC LIMIT $8;"""

const SelectCursorByHashName = "SelectMessageByHash"
const SelectCursorByHashName = "SelectMessageByHashInMessagesLookup"
const SelectCursorByHashDef =
"""SELECT timestamp FROM messages
"""SELECT timestamp FROM messages_lookup
WHERE messageHash = $1"""

const
Expand Down

0 comments on commit dc3c07d

Please sign in to comment.