<?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 Re: Suggestions for iterating over files in lakehouse in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Suggestions-for-iterating-over-files-in-lakehouse/m-p/3762875#M2139</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="16874" data-lia-user-login="scabral" class="lia-mention lia-mention-user"&gt;scabral&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Glad to know that your query got resolved. Please continue using Fabric Community for your further queries.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2024 08:25:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-03-14T08:25:48Z</dc:date>
    <item>
      <title>Suggestions for iterating over files in lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Suggestions-for-iterating-over-files-in-lakehouse/m-p/3751719#M2082</link>
      <description>&lt;P&gt;so this is a 2 part question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i've created a pipeline that queries the Power BI REST API get activity events for a day or multiple days (parameter) and stores the data for each day in a file in a lakehouse with date appended to the filename.&amp;nbsp; This part is working.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first question is there are different file formats to choose from in the copy activity when creating the destination file (JSON, Delimited, Parquet, Binary, Avro, ORC).&amp;nbsp; Right now i just chose delimited and the pipeline creates .txt files for each day that I pass in the parameter and stores them in the files folder in the lakehosue.&amp;nbsp; What i eventually want to do in the pipeline is read the data from these files, most likely just about 12-15 columns which will always be the same each time, and insert the rows into a table in the lakehouse.&amp;nbsp; What is the best file format to choose for this process?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My second question is what is the best way to iterate all the files in the lakehouse and select the columns i need and insert them into the lakehouse table.&amp;nbsp; My guess is that there are probably better formats to handle the select query than others and what activities should i use to loop through each file and move the needed columns and rows into the lakehouse table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 15:26:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Suggestions-for-iterating-over-files-in-lakehouse/m-p/3751719#M2082</guid>
      <dc:creator>scabral</dc:creator>
      <dc:date>2024-03-08T15:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions for iterating over files in lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Suggestions-for-iterating-over-files-in-lakehouse/m-p/3754212#M2092</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="16874" data-lia-user-login="scabral" class="lia-mention lia-mention-user"&gt;scabral&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;&lt;SPAN&gt;Choosing the most suitable approach depends completely on your specific needs and type of data thats being handled. Here are some suggestions I have based on my understanding of your scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;File Format Selection:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;For your scenario, where you'll be reading specific columns from the data and inserting them into a lakehouse table, columnar file formats are the clear choice. Here's a breakdown of the most suitable option:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Parquet:&lt;/STRONG&gt;&amp;nbsp;This is a widely adopted, efficient format that excels in columnar storage and fast querying. It supports schema evolution, making it adaptable to future data changes. It's a great default choice for most use cases.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Advantages of Columnar Formats:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Faster Query Performance:&amp;nbsp;Since you'll only be reading specific columns, columnar formats significantly improve query speed by skipping irrelevant data during processing.&lt;/LI&gt;
&lt;LI&gt;Efficient Storage:&amp;nbsp;By storing data in columns instead of rows, they reduce storage footprint and optimize data transfer.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Delimited Text (CSV) Considerations:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;While delimited text (CSV) might seem familiar, it's not ideal due to:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Slower Processing:&amp;nbsp;Row-based structure requires reading the entire row even if you only need a few columns.&lt;/LI&gt;
&lt;LI&gt;Larger File Size:&amp;nbsp;Less efficient compression compared to columnar formats.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Iteration and Data Processing:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Here's a recommended approach for iterating through files and inserting data into your lakehouse table:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;ForEach Activity is ideal for iterating through files.&lt;/LI&gt;
&lt;LI&gt;Separate activities handle file metadata retrieval, data reading, and table insertion.&lt;/LI&gt;
&lt;LI&gt;Data Factory Python SDK facilitates integration with Fabric Notebooks.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;By following these recommendations, you'll establish a more efficient and scalable pipeline for processing your Power BI activity event data in your lakehouse.&lt;BR /&gt;&lt;BR /&gt;Hope this is helpful. Please let me know incase of further queries.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 07:12:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Suggestions-for-iterating-over-files-in-lakehouse/m-p/3754212#M2092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-11T07:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions for iterating over files in lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Suggestions-for-iterating-over-files-in-lakehouse/m-p/3756945#M2105</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="16874" data-lia-user-login="scabral" class="lia-mention lia-mention-user"&gt;scabral&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.&lt;BR /&gt;In case if you have any resolution please do share that same with the community as it can be helpful to others . &lt;BR /&gt;Otherwise, will respond back with the more details and we will try to help .&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 05:37:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Suggestions-for-iterating-over-files-in-lakehouse/m-p/3756945#M2105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-12T05:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions for iterating over files in lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Suggestions-for-iterating-over-files-in-lakehouse/m-p/3760587#M2130</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="16874" data-lia-user-login="scabral" class="lia-mention lia-mention-user"&gt;scabral&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In case if you have any resolution please do share that same with the community as it can be helpful to others .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, will respond back with the more details and we will try to help .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 12:06:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Suggestions-for-iterating-over-files-in-lakehouse/m-p/3760587#M2130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-13T12:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions for iterating over files in lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Suggestions-for-iterating-over-files-in-lakehouse/m-p/3760646#M2131</link>
      <description>&lt;P&gt;I did create a process in Fabric data factory given some of the points that were listed above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a new data pipeline with the following activities:&lt;/P&gt;&lt;P&gt;1. a ForEach activity that calls the Power BI REST API for each day (parameter driven) and calls the getctivities events and stores the data in PARQUET files for each day in a new lakehouse.&lt;/P&gt;&lt;P&gt;2. a GetMetadata activity to get the list of file names from the lakehouse&lt;/P&gt;&lt;P&gt;3. a ForEach activity that uses a copy activity to load each PARQUET file into a lakehouse table and archive each file into an archive folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i still need to make some minor tweaks, but the overall pipeline is working.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 12:36:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Suggestions-for-iterating-over-files-in-lakehouse/m-p/3760646#M2131</guid>
      <dc:creator>scabral</dc:creator>
      <dc:date>2024-03-13T12:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions for iterating over files in lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Suggestions-for-iterating-over-files-in-lakehouse/m-p/3762875#M2139</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="16874" data-lia-user-login="scabral" class="lia-mention lia-mention-user"&gt;scabral&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Glad to know that your query got resolved. Please continue using Fabric Community for your further queries.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 08:25:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Suggestions-for-iterating-over-files-in-lakehouse/m-p/3762875#M2139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-03-14T08:25:48Z</dc:date>
    </item>
  </channel>
</rss>

