v.20.3New Feature
Add blockSerializedSize function for disk size calculation without compression
Add blockSerializedSize function (size on disk without compression) #8952 (Azat Khuzhin)Why it matters
This feature allows users to determine the exact serialized size of data blocks as they are stored on disk without any compression applied. It helps in understanding storage requirements, optimizing data layout, and improving resource management.How to use it
Use theblockSerializedSize() function in your queries to retrieve the uncompressed serialized size of a data block. For example:SELECT blockSerializedSize() AS size_on_disk FROM table_name