cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
akhaliq7
Responsive Resident
Responsive Resident

Should I I use TABLE.BUFFER?

I like to have single column lists and queries that are referenced from my fact table then I inner join/list.contains them to my dim tables as it helps the user experience with filtering.

 

My question is for lists I use list.buffer to improve performance and then use list.contains in my dim tables. But wanted to know if I should use table.buffer on single column tables/queries so when I do a inner join in my dim table it also improves performance like my list.buffer/list.contains does?

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

List.Buffer or Table.Buffer are useful when you use them multiple times in your query. If you are using them only once, then there is no advantage in buffering them. Buffering consumes finite amount of memory and time. Many times, it may degrade the performance, hence don't use them if you are not using them multiple times. You will have to experiment in your query whether buffering is working for you or not. Take a note that Table.Buffer breaks Query folding which is its biggest disadvantage. Hence, if you are taking advantage of Query Folding, then you must not use Table.Buffer. The trade-off of using query folding vs.a.vs. Table.Buffer is far better (true is most situations but some exceptions might be there)

View solution in original post

1 REPLY 1
Vijay_A_Verma
Super User
Super User

List.Buffer or Table.Buffer are useful when you use them multiple times in your query. If you are using them only once, then there is no advantage in buffering them. Buffering consumes finite amount of memory and time. Many times, it may degrade the performance, hence don't use them if you are not using them multiple times. You will have to experiment in your query whether buffering is working for you or not. Take a note that Table.Buffer breaks Query folding which is its biggest disadvantage. Hence, if you are taking advantage of Query Folding, then you must not use Table.Buffer. The trade-off of using query folding vs.a.vs. Table.Buffer is far better (true is most situations but some exceptions might be there)

Helpful resources

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Difinity Conference

Difinity Conference 2022

Difinity is the largest Microsoft Data, AI, Power BI, Power Platform and Business Applications Conference in New Zealand.

European Share Point Conference

European Share Point Conference

This conference returns live and in-person in Copenhagen this 28 November-01 December with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Top Solution Authors