Forum Discussion
Should I I use TABLE.BUFFER?
- 4 years ago
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)
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)