Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

"Unbuffer" - List/Table

Hey everyone,

 

I have a question regarding the Buffer() function in M. So after loading a List or Table into memory, is there away to unload it after it is not required anymore? That would be potentially be helpful to reduce Query Performance, or is my understanding wrong here?

 

Example:

So I have below case, where I have a parent child relationship. Meaning that in my case I want to filter out all values in my Child column that appear in the Parent column. So "A" in the Child column should be filtered out.

 

ChildParent
A 
BA
C 

 

 

parentlist = List.Buffer(List.Distinct(Table.Column(Fact.Table, "Parent"))),
filteroutparents = Table.SelectRows(Fact.Table, each List.Contains(parentlist, [Child])=false),

 

The above code does precisley this within the same query without reavaulating the parentlist statments for each row, I believe. So after I have filtered them out, this list becomes useless and only takes up memory, hence is there a way to drop it in subsequent steps?

 

Regards,

Christian

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

After my tests and research, I don't find a way like "unbuffer" to release memory manually.

When Power Query run the above query, it will actually takes memory, but after the data imported into dataset, Power Query will release this part of memory. 

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

2 REPLIES 2
v-eachen-msft
Community Support
Community Support

Hi @Anonymous ,

 

After my tests and research, I don't find a way like "unbuffer" to release memory manually.

When Power Query run the above query, it will actually takes memory, but after the data imported into dataset, Power Query will release this part of memory. 

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.
Anonymous
Not applicable

Hi @v-eachen-msft , 

 

thank you for the reply. Ok, understood - that answers it.

 

Yes my idea was to release the list from memory in my case to free up memory for the subsequent transformation steps of the query to potentially increase the query execution performance. 

 

Best regards,

Christian

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors