Hey guys, just wondering if I can work with daft a...
# daft-dev
n
Hey guys, just wondering if I can work with daft at a query planning level or some way that I can make daft “load aware” as I’m working with terabytes of data. My question is - is daft already designed to be load aware? It is unrealistic to imagine that I’ll always be querying TBs of data. Some queries might be smaller, some might churn more. My point is I want to make sure that partitioning happens effectively in Ray cluster. Maybe some queries require partitioning to be spread across 2 nodes, some might need 3 nodes, some might work best on the native runner. How can I control this?
c
If you are not sure how big your cluster is, or how much data your workload is going to process, you can try using
df.into_batches(batch_size : int)
https://docs.daft.ai/en/stable/api/dataframe/#daft.DataFrame.into_batches Essentially, this allows you to 'tune' the parallelism of daft according to some batch size. This works on both the native and ray runner. However, we don't have functionality to auto determine runners (native vs ray) yet though
n
This helps. Thanks!