Closed pantonis closed 7 months ago
Yes, it should be thread safe. However, the better approach (and better performance) would be to use asynchronous API.
Im using ParquetSerializer.SerializeAsync
It is then ;)
Async and parallel are 2 different things :)
Only 2? Then you are using 1 thread, which is the same as async
:) But seriously, it's thread-safe, so you can mix and match.
1thread with parallel? Unless serializer is locking
Latest release has fixed some occassional locking issues for class serializer so it's perfectly fine now.
Trying to understand this "Then you are using 1 thread, which is the same as async"
Trying to understand this "Then you are using 1 thread, which is the same as async"
Silly joke, doesn't make sense, apologies ;)
I created a repo with a couple of different strategies for writing to a single parquet file from multiple threads. https://github.com/HeathHopkins/ParquetMultithread
Issue description
Im want to use ParquetSerializer.SerializeAsync to write hundreds of thousands of files using Parallel.ForEach. Is ParquetSerializer.SerializeAsync thread safe?