The invention relates to a data storage optimization method for a hash joint. The method includes the steps of selecting a
foreign key of a radix hash storage on a
fact table, determining a
dimension table, setting n bits of radix base numbers, determining 2
n hash partition storages, setting 2n radix hash partition queues, storing the
fact table and the
dimension table by means of a page chain table, carrying out PAX column storage in a page, carrying out radix hash on recorded hash partition attribute values according to low n bits when records are inserted, storing the hash partition attribute values in corresponding pages, dynamically applying a new page after a certain radix hash partition page is filled with the records, directly having access to a specific radix hash partition
queue according to a hash value of a connection key, having access to all records of the radix hash partition according to page addresses stored in the
queue, having access to the records according to an original physical page link sequence of the tables when full-table scan is carried out, storing a small table R and a large table S in a partition manner, adopting a column type connection method to the
fact table during hash joint in a
database, and increasing or reducing the bits of the radix hash partitions to achieve dynamic increasing and reducing of the hash partitions.