you are viewing a single comment's thread
view the rest of the comments
[–] 27 points 1 year ago (8 children)

pg can actually query into json fields!

  • source
  • parent
  • hideshow 8 child comments
  • [–] 14 points 1 year ago (4 children)

    And you can add indexes on those JSON fields too!

  • source
  • parent
  • hideshow 4 child comments
  • [–] 7 points 1 year ago (3 children)

    Kind of. I hope you don't like performance...

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 1 year ago (1 child)

    The performance is actually not bad. You're far better off using conventional columns but in the one off cases where you have to store queryable JSON data, it actually performs quite well.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 1 point 1 year ago

    Sure, if you use a field often it is most likely better to extract it into a column with auto-updates from the JSON data.

    But you have to tune it and see what is best for your use case. Just saying that you can add indexes to JSON fields as well!

  • source
  • parent
  • [–] 3 points 1 year ago (2 children)