Azure Tables client library for Python是否可以异步地从多个表中检索数据?假设表A和表B位于不同的存储帐户中,是否可以勒韦林asyncio
模块同时从两个表中检索数据?
我找不到任何文档说明这是否可行或如何实现。我可以考虑构建两个异步函数,可以从表中检索数据,并通过asyncio.gather()
调用它们。这是否可行,或者对Azure端点的实际出站调用是否不能异步完成?
我发现存在一个Azure Data Tables aio模块,可以用于此目的。
Azure Tables client library for Python是否可以异步地从多个表中检索数据?假设表A和表B位于不同的存储帐户中,是否可以勒韦林asyncio
模块同时从两个表中检索数据?
我找不到任何文档说明这是否可行或如何实现。我可以考虑构建两个异步函数,可以从表中检索数据,并通过asyncio.gather()
调用它们。这是否可行,或者对Azure端点的实际出站调用是否不能异步完成?
我发现存在一个Azure Data Tables aio模块,可以用于此目的。
1条答案
按热度按时间nue99wik1#
您可以使用下面的代码,通过**
asyncio method
**检索不同存储帐户中的两个表的数据。上述代码成功执行并从两个表中检索数据。