×

Method, apparatus and program storage device for managing buffers during online reorganization

  • US 7,774,304 B2
  • Filed: 01/31/2005
  • Issued: 08/10/2010
  • Est. Priority Date: 01/31/2005
  • Status: Expired due to Fees
First Claim
Patent Images

1. A program storage device, comprising:

  • program instructions executable by a processing device to perform operations for managing buffers during online reorganization, the operations comprising;

    providing an adaptive buffer having a dynamically adjustable boundary between log records and pointers associated with the log records, the adaptive buffer for processing the log records and pointers associated with the log records during online reorganization of a database; and

    adaptive switching between a first and a second task during the processing of the log records comprising data log records and index log records during the online reorganization of the database, further comprising;

    begin processing, by a first task, records located in first buffer associated with first task set and processing, by a second task, records located in first buffer associated with second task set;

    completing by first task the processing of records in first buffer associated with first task;

    begin processing by first task, records located in second buffer associated with first task set without waiting for second task to complete processing records of first buffer associated with second task set;

    completing processing records located in second buffer associated with first task by first task;

    waiting, by first task, until second task completes the processing of records located in first buffer associated with second task set;

    refilling, by first task, the first buffer associated with first task set and the first buffer associated with second task set;

    determining whether the first task or the second task completes processing records in its first buffer next;

    beginning to refill second buffer for both tasks by the task determined to next complete processing of its first buffer; and

    processing, by task determined to next complete processing its first buffer, second buffer of task determined to next complete processing its first buffer.

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