×

Database variable size entry container free space handling based on use patterns

  • US 10,642,756 B2
  • Filed: 05/19/2017
  • Issued: 05/05/2020
  • Est. Priority Date: 05/19/2017
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method for minimizing fragmentation in a database comprising:

  • initiating, in an in-memory database system, allocation of an entry in a variable size entry container, the variable size entry container comprising a plurality of pages loaded into memory of the in-memory database system and forming a chain, the entries stored within the variable size entry container having different sizes;

    determining whether free space is found within the pre-existing pages using a transient data structure storing information about pages in a persistence layer of the in-memory database system with free space and with deleted entries that can be reused;

    allocating the entry in free space of a pre-existing page if free space is found;

    creating a new page and appending it to the chain and allocating the entry on the new page if free space is not found;

    loading either the pre-existing page in which free space was found or the newly created page into the memory of the in-memory database system;

    deleting pages in the page chain when all entries on such pages are de-allocated; and

    selectively bypassing the determining, allocating, creating, and loading based on a usage pattern of the variable sized entry container;

    wherein the determining comprises measuring an amount of fragmentation within the page based on whether the usage pattern of the container is configured such that new entries are added and oldest entries are deleted when space is needed.

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