MySQL 9.4.0
Source Code Documentation
page_zip_stat_t Struct Reference

Compression statistics for a given page size. More...

#include <page0types.h>

Public Member Functions

 page_zip_stat_t ()
 

Public Attributes

ulint compressed
 Number of page compressions. More...
 
ulint compressed_ok
 Number of successful page compressions. More...
 
ulint decompressed
 Number of page decompressions. More...
 
std::chrono::microseconds compress_time
 Duration of page compressions. More...
 
std::chrono::microseconds decompress_time
 Duration of page decompressions. More...
 
bool dropped {false}
 The pages can linger in BP for a while after the index was already dropped. More...
 

Detailed Description

Compression statistics for a given page size.

Constructor & Destructor Documentation

◆ page_zip_stat_t()

page_zip_stat_t::page_zip_stat_t ( )
inline

Member Data Documentation

◆ compress_time

std::chrono::microseconds page_zip_stat_t::compress_time

Duration of page compressions.

◆ compressed

ulint page_zip_stat_t::compressed

Number of page compressions.

◆ compressed_ok

ulint page_zip_stat_t::compressed_ok

Number of successful page compressions.

◆ decompress_time

std::chrono::microseconds page_zip_stat_t::decompress_time

Duration of page decompressions.

◆ decompressed

ulint page_zip_stat_t::decompressed

Number of page decompressions.

◆ dropped

bool page_zip_stat_t::dropped {false}

The pages can linger in BP for a while after the index was already dropped.

Compression and decompression are done at very low level. We have no access to a dict_index_t object there. Such objects might be evicted by LRU anyway. We use this flag here to indicate that the stats for this index are no longer of interest. This way this information is easily accessible to the low-level logic, and can outlive eviction or drop of dict_index_t.


The documentation for this struct was generated from the following file: