Fix rec_prefix_compression miscount for page delta

XMLWordPrintableJSON

    • Storage Engines, Storage Engines - Transactions
    • SE Transactions - 2025-10-24
    • 5

      Currently, rec_prefix_compression does not correctly reflect the number of key bytes discarded using prefix compression for leaf page deltas. This happens because we always build the full disk image first, then build the delta page and select the preferred option, causing the rec_prefix_compression statistic is incremented during the full image build even if we later choose to use the delta page.

      This ticket is to fix the issue by separating the metric into rec_prefix_compression_full and rec_prefix_compression_delta, and ensure that we increment the appropriate statistic based on the final choice (full disk image or delta page). We should also change test_layered54.py as it will not test prefix compression properly.

            Assignee:
            Zunyi Liu
            Reporter:
            Zunyi Liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: