This application relates to a method and
system for comparing table data in a row-oriented storage
database. The method includes: acquiring the
database to be verified; collecting business characteristics, constructing a B+ tree index, and partitioning the
database; sequentially locating the difference partitions, difference rows, and difference fields based on the B+ tree index and partitioning combined with hash calculation; and outputting the comparison results based on the difference fields. This embodiment achieves rapid location and on-demand reading of difference partitions in a row-oriented storage database. By sequentially locating the difference partitions, difference rows, and difference fields based on the B+ tree index and partitioning combined with hash calculation, it achieves
rapid identification of the partitions containing the difference data, avoiding a full scan of irrelevant data, thereby significantly reducing disk I / O, memory usage, and bandwidth consumption, improving
verification efficiency, and reducing resource overhead.