×

System and method for storing a database on flash memory or other degradable storage

  • US 10,359,962 B1
  • Filed: 09/21/2016
  • Issued: 07/23/2019
  • Est. Priority Date: 09/21/2015
  • Status: Active Grant
First Claim
Patent Images

1. A system for writing a database to a computer memory that degrades when written, comprising:

  • a data file receiver/portioner having an input for receiving at least a column of the database, the data file receiver/portioner for dividing the column into a plurality of portions and for providing at an output the plurality of portions, each of the portions in the plurality comprising more than a specified number of rows of the column of the database;

    a compression unit manager having an input coupled to the data file receiver/portioner output for receiving the plurality of portions, and for selecting and providing at an output a first group of the specified number of rows of the column of the database; and

    a buffer manager having an input coupled to the compression unit manager output for receiving the first group of the specified number of rows of the column of the database, the buffer manager for compressing the selected rows of the column to produce a compressed version of the rows of the column, and for storing via an output into the computer memory, the compressed version of the rows of the column into as many one or more buffers of a given size as are required to hold all of the compressed version of the rows of the column, each of the one or more buffers not used to hold rows of any column outside of the first group;

    andwherein;

    the compression unit manager and the buffer manager are additionally for repeating the selecting, compressing and storing for each of a plurality of other groups of the column;

    the buffer manager is additionally for storing via the buffer manager output into one or more pointer buffers, each of a certain size, pointers to each of the one or more buffers in the computer memory holding the compressed versions of the first group and each of the plurality of other groups, with an indicator of a one of the pointers to a first buffer of the first group, and for storing in the computer memory, metadata that applies to all of;

    the first group and the plurality of other groups, and for storing via the buffer manager output in the computer memory, with the metadata, a pointer to the one of the pointers in one of the one or more pointer buffers pointing to the first buffer of the first group andthe first group and the plurality of other groups are all part of a single one of the plurality of portions.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×