查询 Athena 哪个更快:pyathena 还是 boto3?

Which one is faster for querying Athena: pyathena or boto3?

pyathenaboto3 使用 python 脚本查询 AWS Athena 模式哪个更快?

目前我正在使用 pyathena 查询 Athena 模式,但速度很慢,我知道还有另一种选择 boto3,但在开始之前需要一些专家建议。

查看 dependencies for PyAthena 可以看到它实际上依赖于 boto3。

除非 PyAthena 为其库增加了大量开销(这不太可能),否则您可能会看到的最佳性能改进将取决于您如何使用 Athena 本身。

您可以进行许多性能改进,Amazon 发布了一个名为 Top 10 Performance Tuning Tips for Amazon Athena 的博客,这将有助于提高您的查询性能。