Seen in the logs here
The logs don't make it all that clear what is happening there but looking at the code the only thing that comes to mind is this query
acsSizeInDb <- acsInitResult match {
case StoreHasData(acsStoreId, _) =>
storage
.querySingle(
sql"""
select count(*)
from #$acsTableName
where store_id = ${acsStoreId} and migration_id = $domainMigrationId
""".as[Int].headOption,
"initialize.getAcsCount",
)
.getOrElse(0)
case _ => FutureUnlessShutdown.pure(0)
This also seems to be in line with these metrics that also show initialize taking 30s
We definitely need to fix that, a store reinitialization should be a noop and it very much is not atm.
Seen in the logs here
The logs don't make it all that clear what is happening there but looking at the code the only thing that comes to mind is this query
This also seems to be in line with these metrics that also show initialize taking 30s
We definitely need to fix that, a store reinitialization should be a noop and it very much is not atm.