×

System and method for efficiently indexing and storing a large database with high data insertion frequency

  • US 5,204,958 A
  • Filed: 06/27/1991
  • Issued: 04/20/1993
  • Est. Priority Date: 06/27/1991
  • Status: Expired due to Term
First Claim
Patent Images

1. A method of storing and maintaining a database of entries in a computer system having primary random access memory and secondary memory, the steps of the method performed by said computer system comprising:

  • upon request, storing new records in a database file;

    storing indexed pointers to said new records in a first tree data structure which is stored in primary memory;

    storing a second tree data structure in secondary memory, said second tree data structure containing indexed pointers to all records in said database file other than records for which indexed pointers are stored in said first tree data structure;

    wherein said indexed pointers in said second tree data structure are stored in sequential order in said secondary memory;

    periodically merging a portion of said first tree data structure into said second tree data structure by (1A) selecting a portion of the indexed pointers in said first tree data structure, (1B) retrieving from said secondary memory a corresponding portion of said indexed pointers in said second tree data structure, (1C) merging said selected portion of the indexed pointers in said first tree data structure into said indexed pointers retrieved from said second tree data structure to produce sequentially ordered merged indexed pointers, (1D) storing the merged index pointers in said secondary memory so as to maintain the stored index pointers in sequential order, and (1E) removing from said first tree data structure those indexed pointers which were merged with indexed pointers from said second tree data structure.

View all claims
  • 4 Assignments
Timeline View
Assignment View
    ×
    ×