US 12,189,657 B2
Apparatus and method for managing storage of a primary database and a replica database
Qingqing Zhou, Santa Clara, CA (US); Yang Sun, Palo Alto, CA (US); and Guogen Zhang, San Jose, CA (US)
Assigned to Futurewei Technologies, Inc., Addison, TX (US)
Filed by Futurewei Technologies, Inc., Addison, TX (US)
Filed on Jun. 9, 2022, as Appl. No. 17/836,105.
Application 17/836,105 is a division of application No. 14/872,811, filed on Oct. 1, 2015, granted, now 11,403,318.
Prior Publication US 2023/0409601 A1, Dec. 21, 2023
Int. Cl. G06F 16/27 (2019.01); G06F 16/215 (2019.01); G06F 16/22 (2019.01)
CPC G06F 16/275 (2019.01) [G06F 16/215 (2019.01); G06F 16/221 (2019.01); G06F 16/2282 (2019.01)] 18 Claims
OG exemplary drawing
 
1. A method, at a computation node of a database system, for managing storage of data in a primary database and a replica database, the method comprising:
storing, by the computation node, the data arranged in a sequence of rows in a first storage format at the primary database, the storing the data in the primary database includes storing each group of rows in a plurality of groups of rows in the data into a heap file of a fixed length, and storing the data in the replica database includes storing a fixed number of columns in each group of rows into a corresponding compression unit (CU) of a fixed number of entries;
determining, by the computation node, a second sequence of rows according to one of the first storage format and a second storage format, wherein the first storage format is a row store (RS) and the second storage format is a column store (CS), or wherein the first storage format is a column store (CS) format and the second storage format is a row store (RS) format; and
storing, by the computation node, the data arranged in the second sequence of rows in the second storage format at the replica database.