fix(server/gtfs): chunk stop times into smaller blocks

This commit is contained in:
Cilly Leang 2026-04-01 17:23:59 +11:00
parent 91d4fe25a6
commit c9aeeb99c1
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 9 additions and 2 deletions

View file

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