Skip to content

Commit c389696

Browse files
faster getLastImportUpdateId
[ci] Signed-off-by: Robert Autenrieth <robert.autenrieth@digitalasset.com>
1 parent 2180ba4 commit c389696

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

apps/common/src/main/scala/org/lfdecentralizedtrust/splice/store/UpdateHistory.scala

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1711,14 +1711,11 @@ class UpdateHistory(
17111711
-- Note: to make update ids consistent across SVs, we use the contract id as the update id.
17121712
max(c.contract_id)
17131713
from
1714-
update_history_transactions tx,
17151714
update_history_creates c
17161715
where
1717-
tx.history_id = $historyId and
1718-
1719-
tx.migration_id = $migrationId and
1720-
tx.record_time = ${CantonTimestamp.MinValue} and
1721-
tx.row_id = c.update_row_id
1716+
history_id = $historyId and
1717+
migration_id = $migrationId and
1718+
record_time = ${CantonTimestamp.MinValue}
17221719
""".as[Option[String]].head,
17231720
s"getLastImportUpdateId",
17241721
)

0 commit comments

Comments
 (0)