Content Deep Dive

QuestDB's QWP under the hood: varints, ZigZag and bit packing

Blog post from QuestDB

Post Details
Company
Date Published
Author
Javier Ramirez
Word Count
2,868
Company Posts That Month
1
Language
English
Hacker News Points
-
Post removed?
No
Summary

QuestDB’s QWP protocol reduces data-transfer size by matching encodings to the kinds of values being sent: it uses Gorilla delta-of-delta for timestamps, varints for nonnegative lengths, counts and symbol IDs, and bit packing for booleans and null maps, while keeping most numeric values at native width for efficient copying. The article explains why ZigZag, which makes small negative and positive integers compact as varints, is unnecessary for QWP’s fields but is used in Parquet timestamp encoding and metadata. Comparisons across timestamp datasets show that Gorilla is effective for short, regular runs and series with gaps, ZigZag varints can suit irregular tick data, and delta binary packed performs well on uniform blocks but can be inflated by outliers. The best choice depends on the data pattern and whether encoding is used for streaming or storage.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.