cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Databricks ODBC driver tooks long time to list columns

Youngwb
New Contributor

I'm testing the performance of databricks, when I use ODBC driver to submit query, I found it slower than notebook,and it looks like odbc driver will send "list columns" request to databricks, 

Youngwb_0-1722594481062.png

1. Is there a way to prevent the ODBC driver from sending these requests?

2. Are these requests necessary?

1 REPLY 1

Kaniz_Fatma
Community Manager
Community Manager

Hi @Youngwb,  

  • Unfortunately, there isnโ€™t a direct way to prevent the ODBC driver from sending โ€œlist columnsโ€ requests. These requests are typically part of the driverโ€™s metadata retrieval process, which helps ensure that the query execution environment is correctly set up.
  • These โ€œlist columnsโ€ requests are generally necessary for the ODBC driver to understand the schema of the tables youโ€™re querying. This helps optimize the query execution and ensure that the results are correctly formatted. However, they can add some overhead, especially if the schema is large or complex.

Although you can't directly prevent these requests, they help optimize query execution and format results accurately, albeit with some overhead. To boost performance, ensure you're using the latest ODBC driver version, simplify your queries, optimize table indexing and partitioning, and consider alternative querying methods like Databricks Notebooks or the JDBC driver if performance issues persist.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group