Slackbot
06/06/2023, 1:45 PMCulver McWhirter
06/06/2023, 1:48 PMasync
decorator but the README said async
doesnt play well with other decorators, and we're using extract_columns
to break the dataframes from queries into individual columnsElijah Ben Izzy
06/06/2023, 2:55 PMasync
could work (although its still a little undeveloped). Our approach for parallelization has generally been to delegate to other frameworks. So, the ray
and dask
graph adapters both naturally do horizontal parallelism. The idea is its a quick swap for the driver, and you get the power of distributed systems. Some resources:
• Quick post about scaling with ray
• More information about horizontal scaling with ray/dask
• dask hello_world
• ray hello_worldElijah Ben Izzy
06/06/2023, 2:55 PMStefan Krawczyk
06/06/2023, 5:13 PMStefan Krawczyk
06/06/2023, 5:15 PMCulver McWhirter
06/13/2023, 5:14 PMCulver McWhirter
06/13/2023, 5:18 PMloop = asyncio.get_running_loop()
loop.run_in_executor(THREAD_POOL, some_func)
would love to hear your thoughtsElijah Ben Izzy
06/13/2023, 5:25 PMElijah Ben Izzy
06/13/2023, 5:26 PMStefan Krawczyk
06/13/2023, 5:36 PMCulver McWhirter
06/13/2023, 5:36 PMrun_query()
and get_results()
in new threads is because theyre not async functions themselves, so i couldnt await
themCulver McWhirter
06/13/2023, 5:38 PMAsyncDriver
, the code snippet I posted was the funcs i pass to to the driverCulver McWhirter
06/13/2023, 5:43 PMStefan Krawczyk
06/13/2023, 5:55 PMStefan Krawczyk
06/13/2023, 6:10 PMStefan Krawczyk
06/13/2023, 6:42 PM