TDS Row Bitmap Encoding for Null Column Compression
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current Tabular Data Stream (TDS) protocols are inefficient in transmitting query results due to the transmission of null columns, which consume bandwidth without providing useful data.
Innovation Solution
Incorporating an identification component that uses a bit map to differentiate null and non-null columns, allowing only non-null columns to be sent, thereby reducing the number of bits transmitted and improving efficiency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of energy
If all columns including null columns are transmitted in TDS protocol, then complete data structure is maintained, but bandwidth is wasted and transmission efficiency deteriorates
Solution Approach 1:
The patent extracts and removes null column data from the transmission stream, sending only non-null column values. This is achieved by identifying null columns and excluding them from the data transmission, thereby reducing bandwidth consumption while maintaining the integrity of actual data.
Solution Approach 2:
The patent segments the data transmission into two parts: a bitmap indicating which columns are null, and the actual non-null column data. This segmentation allows the receiver to reconstruct the complete data structure by placing null values in appropriate positions based on the bitmap information.
2Productivity
If null columns are excluded from transmission, then bandwidth is saved, but data structure completeness may be compromised
Solution Approach 1:
The patent introduces a bitmap as an intermediary data structure that carries metadata about column nullness. This bitmap acts as a guide for the receiving end to reconstruct the complete data structure, ensuring that even though null columns are not transmitted, their positions and types are preserved through the bitmap information.
3Productivity
If bitmap is added to indicate null columns, then transmission efficiency improves, but header size increases
Solution Approach 1:
The patent changes the representation parameters of column data by using a compact bitmap format instead of transmitting full column definitions for null columns. This parameter change reduces the overall transmission size despite adding a header, because the bitmap uses minimal space (one bit per column) compared to the space that would be required to transmit actual null column data.
Data Source
Figure 1
Figure 2
Figure 3
AI summary
Systems and methodologies that enhance a Tabular Data Stream (TDS) protocol by enabling efficient transmission of a row(s) with null columns(s). An identification component employs a bit map that can be positioned at beginning of a row, to indicate to the receiving side (e.g., a client) columns that are to be sent. Accordingly, by distinguishing columns that are null from columns that are not null - followed by sending columns that are not null - transmission resources can be effectively employed.