| Feature |
Particulars |
Efficiency & Superiority |
Byte Codes/Extensions |
| BQL Command Sets |
8-bit for common ops (GET, PUT); 16-bit
for complex ops (JOIN, COUNT, SUM,
GROUP_BY, UNION, etc.), extensible to
32-bit via high bit. |
Compact binary encoding slashes parsing
overhead, outperforming SQL’s text
queries. Scalable for future needs. |
0x01 (GET), 0x0003 (COUNT) |
| BQL Value Compression |
PRIMITIVE_WIDTH compresses primitives
(e.g., int64_t 255 to 1 byte) based on
value size. |
Cuts storage and bandwidth, ideal for
IoT, surpassing SQL’s fixed-size data
handling. |
N/A |
| BQL Hashed Indices |
Branch indices (BRANCH_8 to BRANCH_32)
for scalable lookups. |
Faster than SQL’s B-trees, with lower
memory use, boosting query speed. |
0x0001 (BRANCH_8) |
| BQL Hardware Support |
8 to 64-bit addressing, encryption,
flags (e.g., DB_FILE_JOURNAL). |
Adapts to microcontrollers and servers,
with secure, efficient data management. |
0x80 (ENCRYPTION_ENA) |
| ChannelData Memory Allocation |
MemoryAllocationRequest struct for size,
type, and flags. |
Precise allocation minimizes waste,
optimizing CPU, GPU, cloud performance. |
0x00 (HEAP_MEMORY) |
| ChannelData Encoding |
Memory types (HEAP_MEMORY, GPU_MEMORY),
data types (DATA_INT, DATA_OBJECT),
dimensions (DATA_2D_ARRAY). |
Supports complex data and
hardware-specific storage, more versatile
than SQL tables. |
0x03 (DATA_INT) |
| ChannelData Flags |
Flags like MEMORY_GPU_TEXTURE,
DATA_PACK_PARAMETERS for specialized
handling. |
Fine-grained control enhances
high-performance computing, outpacing
SQL’s generic model. |
0x0400 (MEMORY_GPU_TEXTURE) |