Forum Discussion
Filter by list or by arguments -- very different processing times
Hello PhilippeMuniesa
try to change approach 1 like this
let Source - Ouvre_FEC1, BufferList = List.Buffer(Liste_JX_Selection_Liste), Filtre_Selon_Jx_Selectionnes - Table.SelectRows (Source, each List.Contains (BufferList , [JournalCode]) In Filtre_Selon_Jx_SelectionnesIf this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy
5 Replies
- Jimmy801
Community Champion
Hello PhilippeMuniesa
try to change approach 1 like this
let Source - Ouvre_FEC1, BufferList = List.Buffer(Liste_JX_Selection_Liste), Filtre_Selon_Jx_Selectionnes - Table.SelectRows (Source, each List.Contains (BufferList , [JournalCode]) In Filtre_Selon_Jx_SelectionnesIf this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun
Jimmy- PhilippeMuniesa
Resolver I
Jimmy,
it works perfectly and much faster. I had not yet been able to realize the advantage of list.buffer or table.buffer. here is what is made for List.Buffer.
However, I cannot explain the very big difference in processing time for a list that has only two elements.
2mn, 14sec in the original request
13 sec in the request you propose with List.Buffer ...
Thanks a lot
Philippe
- PhilippeMuniesa
Resolver I
Jimmy,
it works perfectly and much faster. I had not yet been able to realize the advantage of list.buffer or table.buffer. here is what is made for List.Buffer.
However, I cannot explain the very big difference in processing time for a list that has only two elements.
2mn, 14sec in the original request
13 sec in the request you propose with List.Buffer ...
Thanks a lot
Philippe
- Jimmy801
Community Champion
Hello PhilippeMuniesa
List.Buffer is buffering the data and therefore the engine can access much faster. When you don't use List.Buffer the engine has to read the list on every row when filtering.
BR
Jimmy
- PhilippeMuniesa
Resolver I
Thank you Jimmy
Can you explain to me why, when I use Table.buffer when creating or modifying a table, and then I merge this table put in buffer with another table (in the same requete), it seems to me that the processing time is much longer ???
Sincerly
Philippe