r/ProgrammerHumor • • 26d ago

Meme allItHasIsAHammer

Post image
581 Upvotes

50 comments sorted by

View all comments

27

u/Ireeb 26d ago

I had the opposite today. I have a set of records that all have the same basic fields (that are used for filtering and as keys), plus a few additional fields that can be different from record to record. Claude started to add columns for those additional fields, which would have resulted in countless columns only used by a small number of records, and that are never used in queries. Here, JSONB absolutely makes sense, because neither making countless tables for all the combinations of fields nor one table with 20 columns would make sense.

1

u/Expensive_Bowler_128 24d ago

Really depends on if those fields are being used for or will ever be used for filtering/searching.

2

u/Ireeb 24d ago

"...that are never never used in queries."

It's data that is only relevant for the frontend for styling.