Skip to content

Commit

Permalink
parTraverse actually
Browse files Browse the repository at this point in the history
  • Loading branch information
dmivankov committed Dec 11, 2024
1 parent 03c025d commit 54431c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/cognite/spark/v1/RawTableRelation.scala
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class RawTableRelation(
case Some(maxOutstandingRawInsertRequests) =>
Backpressure[IO](Backpressure.Strategy.Lossless, maxOutstandingRawInsertRequests)
.flatMap { backpressure =>
rows.grouped(batchSize).toVector.traverse_ { batch: Seq[Row] =>
rows.grouped(batchSize).toVector.parTraverse_ { batch: Seq[Row] =>
backpressure.metered(postRows(columnNames, batch))
}
}
Expand Down

0 comments on commit 54431c0

Please sign in to comment.