<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Optimal Strategies for downloading large query results with Databricks API in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/optimal-strategies-for-downloading-large-query-results-with/m-p/67906#M2964</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm currently facing an issue with handling a large amount of data using the Databricks API. Specifically, I have a query that returns a significant volume of data, sometimes resulting in over 200 chunks.&lt;/P&gt;&lt;P&gt;My initial approach was to retrieve the external_link for each chunk within a loop and then download the .csv file containing the data. However, I've encountered a bottleneck where obtaining the external link alone takes a considerable amount of time, leading to many files expiring before they can be downloaded.&lt;/P&gt;&lt;P&gt;I'm wondering if anyone has found an optimal strategy or method for dealing with this problem. For instance, is it feasible to generate and retrieve all the links at once and then download the files in parallel?&lt;/P&gt;&lt;P&gt;Any insights or suggestions would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2024 06:07:09 GMT</pubDate>
    <dc:creator>rafal_walisko</dc:creator>
    <dc:date>2024-05-02T06:07:09Z</dc:date>
    <item>
      <title>Optimal Strategies for downloading large query results with Databricks API</title>
      <link>https://community.databricks.com/t5/get-started-discussions/optimal-strategies-for-downloading-large-query-results-with/m-p/67906#M2964</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm currently facing an issue with handling a large amount of data using the Databricks API. Specifically, I have a query that returns a significant volume of data, sometimes resulting in over 200 chunks.&lt;/P&gt;&lt;P&gt;My initial approach was to retrieve the external_link for each chunk within a loop and then download the .csv file containing the data. However, I've encountered a bottleneck where obtaining the external link alone takes a considerable amount of time, leading to many files expiring before they can be downloaded.&lt;/P&gt;&lt;P&gt;I'm wondering if anyone has found an optimal strategy or method for dealing with this problem. For instance, is it feasible to generate and retrieve all the links at once and then download the files in parallel?&lt;/P&gt;&lt;P&gt;Any insights or suggestions would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 06:07:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/optimal-strategies-for-downloading-large-query-results-with/m-p/67906#M2964</guid>
      <dc:creator>rafal_walisko</dc:creator>
      <dc:date>2024-05-02T06:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Optimal Strategies for downloading large query results with Databricks API</title>
      <link>https://community.databricks.com/t5/get-started-discussions/optimal-strategies-for-downloading-large-query-results-with/m-p/120583#M10122</link>
      <description>&lt;P&gt;I am also facing the same issue now one approach tomorrow i will try I will create a job that using serverless job cluster. Then whenever user will click on download button from UI. This should trigger the job now this job. Will read the table as data frame, then we can write these data frame into Adls gen 2Then we can give the download link of that file and the writing of data frame &amp;nbsp;Will be in multiple partition, so we have &amp;nbsp;use colace&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 20:34:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/optimal-strategies-for-downloading-large-query-results-with/m-p/120583#M10122</guid>
      <dc:creator>Datagyan</dc:creator>
      <dc:date>2025-05-29T20:34:25Z</dc:date>
    </item>
  </channel>
</rss>

