US 12,072,879 B2
Dynamically generated operations in a parallel processing framework
Christina Teflioudi, Heidelberg (DE); Paul Willems, Heidelberg (DE); and Till Merker, Sandhausen (DE)
Assigned to SAP SE, Walldorf (DE)
Filed by SAP SE, Walldorf (DE)
Filed on May 3, 2022, as Appl. No. 17/735,493.
Prior Publication US 2023/0359620 A1, Nov. 9, 2023
Int. Cl. G06F 16/2453 (2019.01); G06F 8/41 (2018.01); G06F 9/30 (2018.01); G06F 9/50 (2006.01); G06F 16/2455 (2019.01)
CPC G06F 16/24542 (2019.01) [G06F 8/48 (2013.01); G06F 9/3009 (2013.01); G06F 9/5044 (2013.01); G06F 16/24539 (2019.01); G06F 16/24554 (2019.01)] 20 Claims
OG exemplary drawing
 
1. A system, comprising:
at least one data processor; and
at least one memory storing instructions which, when executed by the at least one data processor, cause operations comprising:
executing sequentially a dynamically generated operation included in a query plan of a query on a dataset;
upon executing the dynamically generated operation a threshold quantity of times, initiating a compilation operation to generate precompiled code for the dynamically generated operation; and
upon generating the precompiled code, parallelizing execution of the precompiled code by at least
determining, based at least on a first quantity of time required to execute the precompiled code on a portion of the dataset, a first task size,
dividing, based at least on the first task size, the execution of the precompiled code into one or more tasks, and
allocating a first quantity of worker threads to perform the one or more tasks in parallel.