Instead of zipping the whole text, we store JSON by columns. Then we can read only the fields we need.
json-ultra-compress does this for JSON & NDJSON (logs).
NDJSON works best for columnar compression. One JSON per line.
Gzip = best tiny package, but you still unpack everything to eat one cookie.
Ultra selective = just take the 2 cookies you want; no need to open the whole jar.
Method | Compressed size (wire) | Decoded size (JSON text) | Time (ms) | Fields read / total | Actions |
---|