JSONB a PostgreSQL bináris JSON típusa — a JSON adatokat hatékony, lekérdezhető és indexelhető formátumban tárolja. Lehetővé teszi rugalmas, félig strukturált adatok tárolását egy relációs adatbázisban, kombinálva a relációs integritást a NoSQL-szerű rugalmassággal. Ez az egyik PostgreSQL legerősebb funkciója.
JSONB vs JSON
JSON → stores the exact text (preserves whitespace/key order/duplicates), parsed each query
JSONB → stores a DECOMPOSED BINARY format → slightly slower to write, but MUCH faster
to query, and supports INDEXING and rich operators
→ Use JSONB in almost all cases (JSON only if you need exact text preservation).
