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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
jochendecraene
Helper IV
Helper IV

Preserve last updated records

Hi

 

In order to keep the last updated records in my report I found 2 techniques:

- one that uses table.buffer in combination with sort and delete double records

- one that uses Group By

 

Now I'm wondering what the advantages or disadvantages are between these two technique and if there are any better solutions?

 

Any thougts?

2 REPLIES 2
Omid_Motamedise
Memorable Member
Memorable Member

It is all related to your data structure, if the number of records is not that much there is no difference, but if you are faced with too much data, and the number of groups that you want to extract the last record for them is less than around thousand go for Table.Group otherwise use Table.Buffer and Table.Sort technique

ZhangKun
Resolver III
Resolver III

Table. Buffer is used to cache results. For large tables, Table The Buffer function may slow down the calculation.
All data needs to be traversed whether it is de duplication or grouping. But, if the data source supports query folding (query folding may be interrupted by other operations), grouping is excellent, because grouping operations will be performed on the server instead of locally. However, if you use Table Buffer function to cache data is undoubtedly a very bad decision.
In conclusion, if the data source supports query folding, you should use grouping. I personally feel that there is no difference between other data sources.

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.