aiodataloader
aiodataloader copied to clipboard
Asyncio DataLoader for Python3
Hello, I'm trying to use Redis backed dict instead of regular dict as a cache for the Dataloader. But aiodataloader is directly caching the future object instead of the actual...
I just started experimenting with `aiodataloader` and it's been great so far. Having type annotations (at least for the public `DataLoader` class) would make it even easier for folks who...
Hello! I've used the package although I cannot use it my pytest scenarios due to the infamous `got Future attached to a different loop` issue. Consider the following test code:...
You could insert e.g. await asyncio.sleep(0) in dispatch_queue_batch function. It's async but has blocking behavior if there are lots of data to process.
I prefer to subclass DataLoader and provide an overridden batch_load_fn on the subclass, rather than passing a function into DataLoader's constructor (which feels a little too Javascript-y). Please could the...
[Sharing] pydantic-resolve, an easy way to generate lite-graphql-like nested data with aiodataloader
aiodataloader is very helpful to use with graphql framework such as Graphene or strawberry for complex query result. and then I start to wonder if I could use with aiodataloader...