You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "sfc-gh-jramizares (via GitHub)" <gi...@apache.org> on 2025/07/15 22:39:47 UTC
[I] ADBC Driver Optimization for Power BI Integration [arrow-adbc]
sfc-gh-jramizares opened a new issue, #3169:
URL: https://github.com/apache/arrow-adbc/issues/3169
### What would you like help with?
I have a customer who is experiencing slow data transfer from Snowflake to Power BI using ODBC driver version 3.2.2, despite the query execution in Snowflake performing well. They are exploring the new ADBC driver recommended by Microsoft to potentially improve performance. However, the issue remains. Fetching large result sets (e.g., 160M rows) via ADBC is still slow due to small default fetch batch sizes (~10K rows).
They noticed that the extraction is happening in cursor mode, in chunks e.g., data fetching is in small batches (10000 rows) which took 20 min to fetch 160MM rows.
As such, the customer has the following question. Kindly provide any guidance you can.
1. What are the best practices for using the ADBC driver with Power BI?
2. Are there any configurations to optimize the ADBC driver further?
3. The environment variable needed for the ADBC driver (http_proxy) is generic and impacts other applications. Is there a way to rename this? Can we implement an ADBC-specific proxy configuration to avoid conflicts with other connectors?
4. What can be done to maximize throughput (batching, parallelism, or other configurations)?
5. Do we have any ability to configure the chunk size or exclude, if possible?
6. Are there any Snowflake-provided benchmarks or statistics on data load timing we can reference?
7. Are there any stats on the data load timing from Snowflake team that can be referred for the benchmarking ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] ADBC Driver Optimization for Power BI Integration [arrow-adbc]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on issue #3169:
URL: https://github.com/apache/arrow-adbc/issues/3169#issuecomment-3076374052
> The environment variable needed for the ADBC driver (http_proxy) is generic and impacts other applications.
Can you clarify this? We don't require a proxy setting in general (is this something Microsoft has set?)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] ADBC Driver Optimization for Power BI Integration [arrow-adbc]
Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade commented on issue #3169:
URL: https://github.com/apache/arrow-adbc/issues/3169#issuecomment-3089770725
If we can get Snowflake to allow actual parameters / options to be used for `gosnowflake`, then we can easily propagate those options through ADBC to allow configuration of it. So the ball is in Snowflake's court there, feel free to file an issue on gosnowflake and reference this!
In addition to the options that @CurtHagenlocher mentioned for managing the parallelization and concurrency options for the driver, I also wanted to address two of the questions:
> 4. What can be done to maximize throughput (batching, parallelism, or other configurations)?
> 5. Do we have any ability to configure the chunk size or exclude, if possible?
Currently, as far as I'm aware, Snowflake does not expose any way for a client to configure the chunk size or anything else about the way the batching is done for how it returns the stream of results. So, similar to my comment above, if snowflake adds a way to influence the batch and chunk sizes (through session parameters, client parameters, or anything else) we can easily pipe that through the ADBC driver options.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] ADBC Driver Optimization for Power BI Integration [arrow-adbc]
Posted by "davidhcoe (via GitHub)" <gi...@apache.org>.
davidhcoe commented on issue #3169:
URL: https://github.com/apache/arrow-adbc/issues/3169#issuecomment-3077807561
It looks like Snowflake preferred the generic environment variable per https://github.com/snowflakedb/gosnowflake/issues/125.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] ADBC Driver Optimization for Power BI Integration [arrow-adbc]
Posted by "CurtHagenlocher (via GitHub)" <gi...@apache.org>.
CurtHagenlocher commented on issue #3169:
URL: https://github.com/apache/arrow-adbc/issues/3169#issuecomment-3076562575
Broadly speaking, the ADBC driver uses connection and statement options to control the behavior of the gosnowflake library and the Power BI Snowflake connector uses its options to control the ADBC driver. So for a customer to be able to control e.g. the batching or parallelism of fetching the results, these need to be exposed by each layer to the higher layer and then ultimately to the customer.
The gosnowflake options are described at [https://pkg.go.dev/github.com/snowflakedb/gosnowflake#section-readme](https://pkg.go.dev/github.com/snowflakedb/gosnowflake#section-readme). It's here that we see that the only way to control the proxy is via an environment variable. This isn't something we can easily manage via the Power BI connector, and to improve on this I think we would need gosnowflake to change to allow direct configuration. (Disclaimer: maybe it does already; I haven't looked at the gosnowflake source.)
The ADBC driver options are described at [https://arrow.apache.org/adbc/19/driver/snowflake.html](https://arrow.apache.org/adbc/19/driver/snowflake.html). There is some management of batching available via `adbc.rpc.result_queue_size` and `adbc.snowflake.rpc.prefetch_concurrency` but we're not exposing these in the Power BI connector. That is probably a fairly straightforward change, but the default values also seem pretty generous.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org