US 12,242,497 B1
Native copy mechanism for in-memory and paged primitive data structures
Anish Maniyar, Pune (IN); Santhosh T Kumar, Bengaluru (IN); Guo Gang Ye, Shanghai (CN); Amit Pathak, Pune (IN); Sebastian Seifert, Heidelberg (DE); and Souvik Pal, Bengaluru (IN)
Assigned to SAP SE, Walldorf (DE)
Filed by SAP SE, Walldorf (DE)
Filed on Nov. 8, 2023, as Appl. No. 18/504,435.
Int. Cl. G06F 16/25 (2019.01)
CPC G06F 16/254 (2019.01) 20 Claims
OG exemplary drawing
 
1. A method performed by a database system, comprising:
detecting a first query targeting a first database object stored in a unified persistence format in a persistence store, wherein a persistence representation of the first database object comprises one or more primitives;
determining whether to load the first database object in column-loadable format or page-loadable format into an in-memory store, responsive to detecting the first query;
responsive to determining to load the first database object in the column-loadable format into the in-memory store, determining if a first bit representation of the one or more primitives in the persistence store is compatible with a second bit representation used for storing the one or more primitives in the in-memory store; and
performing a native copy operation to copy the one or more primitives from the persistence store to the in-memory store responsive to determining that the first bit representation is compatible with the second bit representation, wherein the native copy operation comprises copying the one or more primitives on a page-by-page basis without decoding and encoding values of the one or more primitives.