| CPC G06F 12/0888 (2013.01) [G06F 12/0893 (2013.01); G06F 16/24554 (2019.01); G06F 2212/163 (2013.01)] | 20 Claims |

|
1. A system, comprising:
at least one data processor; and
at least one memory result in operations comprising:
receiving a query including a projection;
receiving a plurality of rows in response to the query processed by a processing thread of a plurality of processing threads;
determining whether the query specifies an order for the plurality of rows;
in response to the query specifying the order, determining whether a disk buffer associated with the processing thread contains a stored row;
in response to determining the disk buffer contains the stored row, storing the plurality of rows in the disk buffer;
in response to determining the disk buffer does not contain the stored row and a memory buffer contains at least a threshold amount of memory to store the plurality of rows, storing the plurality of rows in the memory buffer associated with the processing thread; and
providing the stored plurality of rows in response to the query.
|