Skip to content

Commit

Permalink
OSM: increase chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
johan12345 committed Nov 26, 2023
1 parent d7631ec commit 3ef5366
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ class ChargeLocationsRepository(
val time = Instant.now()
val result = api.fullDownload()
try {
result.chargers.chunked(100).forEach {
result.chargers.chunked(1024).forEach {
chargeLocationsDao.insert(*it.toTypedArray())
fullDownloadProgress.value = result.progress
}
Expand Down

0 comments on commit 3ef5366

Please sign in to comment.