×

System and method for hybrid hash join using over-partitioning to respond to database query

  • US 6,226,639 B1
  • Filed: 09/22/1998
  • Issued: 05/01/2001
  • Est. Priority Date: 09/22/1998
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer system, comprising:

  • at least one computer having at least one main memory defining a memory size, the computer accessing at least one data storage disk;

    one or more input devices associated with the computer for generating a user query for data stored in at least one probe table and at least one build table defining a build table size, the tables being accessible by the computer;

    logic means executable by the computer for establishing build partitions in the main memory and the disk when the build table size is greater than the main memory size, the logic means having;

    partition means for determining a number “

    N”

    of build partitions B1, B2, . . . ,BN of the build table;

    hash means for applying a hash function to the build table to establish build partitions B1, B2, . . . ,BN;

    write means for writing at least portions of the build partitions B1, B2, . . . ,BN into the main memory;

    spill means for selecting at least one build partition as a victim partition when the main memory is full prior to writing each partition in its entirety to main memory and for spilling the victim partition to the disk; and

    packing means for designating, after all build partitions B1, B2, . . . ,BN have been written to main memory or spilled to disk and before a probe phase is undertaken, at least some partitions as winners to be written from disk to main memory, and designating at least some partitions as losers to be written from main memory to disk.

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