×

Method of performing a high-performance sort which gains efficiency by reading input file blocks sequentially

  • US 6,408,314 B1
  • Filed: 07/06/1999
  • Issued: 06/18/2002
  • Est. Priority Date: 07/06/1999
  • Status: Expired due to Term
First Claim
Patent Images

1. An improvement in a sort-merge process carried out upon an input file stored on an input disk in the form of a direct access storage device which is made available to a digital computer, said input file to be sorted and stored in sorted form in an output file, said process comprising a pre-string generation phase, a string generation phase and a merge phase, wherein the improvement comprises the following steps conducted within said string generation phase:

  • a) reading the directory data prior to reading the data of said input file, for said input file from said input disk and determining therefrom the physically contiguous runs of data on said input disk associated with said input file and information about the location of said runs on said input disk;

    b) sorting said location information with regard to all of said runs and thereby determining the physical order of said runs on said input disk;

    c) sequentially reading into random access memory of said computer in accordance with said determined physical order, blocks of data comprised of input from said runs; and

    d) sorting each such block of data and writing it to sort work if necessary, or if not necessary, to the output file.

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