What are your experiences with @postgresql jsonb columns as document store?

Is it easy to use from a Spring App? How fast is it? What are its limitations?

#postgresql #json #databases

You are viewing a single thread.
View all comments
3 points

I haven’t used json(b) in a Spring app, so I can’t say much about that.

Json vs Jsonb depends on the use-case. Inserting json is faster than inserting Jsonb. Reading json (based on searching for specific json properties) Jsonb is faster, because Jsonb is parsed into a more optimized tree.

From my experience, I don’t really like doing selects based on json properties. If I know I’ll be selecting a certain property, I usually add an additional column next to the json with the data, and insert that property there (At least in c#/dotnet, with EF) The frameworks don’t have that much support for selecting within json (you can do it, it’s just a lot more natively supported to use proper columns)

permalink
report
reply

PostgreSQL

!postgresql@programming.dev

Create post

The world’s most advanced open source relational database

Project
Events
Podcasts
Related Fediverse communities

Community stats

  • 14

    Monthly active users

  • 134

    Posts

  • 95

    Comments