feat(server): use lazy swappable database

This commit is contained in:
Cilly Leang 2026-04-11 21:59:26 +10:00
parent 959b022cf9
commit 0524eda5d2
Signed by: cilly
GPG key ID: 6500251E087653C9
5 changed files with 49 additions and 62 deletions

View file

@ -135,7 +135,7 @@ class GtfsParser(
.forEach { fd ->
log.info("parsing stop times for ${fd.parent}...")
parseStopTimes(fd, trips) { seq ->
seq.chunked(10000)
seq.chunked(1000000)
.forEach { emit(GtfsData.StopTimeChunk(it)) }
}
}