CPC G06F 16/2453 (2019.01) [G06F 16/221 (2019.01); G06F 16/2282 (2019.01); G06F 40/177 (2020.01)] | 20 Claims |
1. A method for writing data to a cloud-based database for optimized cloud-based database query execution, comprising:
receiving, by a table writer computer program executed by a local electronic device, table data comprising a plurality of rows and a plurality of columns, a schema for the table data, and a primary-key for the table data;
creating, by the table writer computer program, a footer for the table data, the footer comprising the schema and the primary-key;
sorting, by the table writer computer program, the rows of the table data using the primary-key;
dividing, by the table writer computer program, columns of the sorted rows of the table data into a plurality of datapages based on a datapage size;
identifying, by the table writer computer program, sparse indices for each datapage, wherein the sparse indices comprise a minimum value, a maximum value, a starting row index, an ending row index for each datapage;
writing, by the table writer computer program, each datapage to cloud storage;
inserting, by the table writer computer program, the sparse indices into the footer for the table data; and
writing, by the table writer computer program, the footer to cloud storage.
|