Patent ID: 8161054

Claim:
A computer-implemented method for determining one or more dynamic page breaks to include in a database query result generated in response to a user request, comprising: receiving the database query result, wherein the database query result includes a plurality of records in a specified sequence; evaluating, for a first record of the sequence, a record prior to the first record and a record following the first record, relative to the sequence, to determine a page-change factor based on (i) a first measure of similarity for the first record and the record prior to the first record and (ii) a second measure of similarity for the first record and the record following the first record; upon determining the page-change factor indicates that the first record is more similar to the record following the first record than to the record prior to the first record, inserting a dynamic page break in the database query result, wherein the first record is assigned to a page following the dynamic page break; and upon determining the page-change factor indicates that the first record is more similar to the record prior to the first record than to the record following the first record, relative to the sequence, sequentially evaluating at least the record following the first record of the sequence to determine at least a second page-change factor, wherein the sequential evaluation continues until a dynamic page break is inserted, based on the page change factor determined for one of the records following the first record, and wherein at least the first record is assigned to a page preceding the dynamic page break.