I was reading the Fast Data Blog and have a questi...
# ask-metaflow
c
I was reading the Fast Data Blog and have a question about the implementation of loading the PyArrow tables, why is it that the implementation leverages a ThreadPool to fetch the files? Doesn’t
S3().get_many()
run in parallel as well?
1
v
great question! If you look closely, the files are actually fetched outside
ThreadPoolExecutor
here: https://github.com/outerbounds/fast-data-blog/blob/main/table_loader.py#L27
threads are used to parallelize decoding of Parquet files: https://github.com/outerbounds/fast-data-blog/blob/main/table_loader.py#L31
c
Ah got it, thanks @straight-shampoo-11124!
Super helpful blog btw I have been using it in prod recently.
dancing 1
v
great!