×

On-line reorganization in object-oriented databases

  • US 6,343,296 B1
  • Filed: 09/03/1999
  • Issued: 01/29/2002
  • Est. Priority Date: 09/03/1999
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for on-line reorganization of at least a part of an object-oriented database containing physical references to one or more objects within said part of said database migrating from an old physical location to a new physical location, said method comprising the steps of:

  • performing a fuzzy traversal on said database without locking any objects other than to obtain a temporary latch of an object while a reference contained therein is read;

    releasing said latch immediately after reading said reference in said object;

    separately for each of said migrating objects, identifying during said fuzzy traversal all approximate parents of each of said migrating objects, each of said approximate parents being an object containing a reference to a migrating object;

    identifying all objects to which a reference to one of said migrating objects is inserted or deleted by a transaction occurring on objects during said fuzzy traversal, each of said objects referred to respectively as an inserted parent and a deleted parent;

    for each of said migrating objects, obtaining a write lock on each of its approximate parents;

    for each of said migrating objects, obtaining a write lock on said inserted parents;

    for each of said migrating objects, updating the reference to said migrating object found in each of said write locked objects;

    for each of said migrating objects, relocating said migrating object to said new physical location; and

    for each of said migrating objects, releasing each of said write locked objects.

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