Types of Databases
PostgreSQL JSONB Columns
Object Storage
Practice
Assignment
Back end Track
Under construction
<aside>
🚧
This page is currently under construction. Please check back later.
</aside>
Implementation plan:
- What is
jsonb — binary JSON stored in a relational column
- When to use
jsonb vs normalized tables
- Creating a table with a
jsonb column
- Inserting JSON data
- Updating JSON data (
jsonb_set)
- Querying nested fields:
> (get as JSON), >> (get as text)
- Querying arrays within JSON
- Containment operator:
@>
- Indexing JSONB: GIN indexes for fast lookups
- Advantages: flexibility, schema evolution
- Limitations: harder to enforce constraints, query complexity
- Exercise: add a
jsonb column to an existing project and query it
The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0

*https://hackyourfuture.net/*
Found a mistake or have a suggestion? Let us know in the feedback form.