PostgreSQL has native support for objects stored as JSON as actually binary JSON (or JSONB). With JSONB format, you can add index do the column for faster and more efficient reads.

Even though the format supports both storing arrays of maps and nested maps, I suggest making it simple and just use an unnested single map.

The use case I am going for is have some sort of user-entered product attributes that I later can search and filter on.

continue reading on fullstackphoenix.com

⚠️ This post links to an external website. ⚠️