Athena API vs JDBC Driver

0

Hi,

We are planning to use Athena in our team. We noticed there are two ways to query data using Athena (API vs JDBC). We are looking differences in terms of performance and salability. Does using JDBC driver is more performant than API since potentially Driver can cache some of the metadata and figure out security during the connection creation instead of running as part of every single query?

What is AWS recommendation?

Dileep
已提問 5 年前檢視次數 802 次
2 個答案
0

We are using pyathenajdbc module due to Python. As the module name indicates, behinde the scene it is using jdbc driver provided by aws to query Athena. After compararision of pyathena (REST API based) module and pyathenajdbc (JDBC based), we found that JDBC driver based access is faster. Also, if you are using Java then JDBC based access should be fastest.
Another point, if you are using Python, then boto3 based access is even faster compared to JDBC driver, however you will have to write boilerplate code for having JDBC kind of interface.

Edited by: psl-shareinsights on May 2, 2019 5:18 AM

已回答 5 年前
0

Thanks for the info.

Dileep
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南