zrcadlo / undercurrent_api

The Backend of your Dreams: API for dream recording app
0 stars 0 forks source link

Dream endpoints, jsonb edition. #8

Closed lfborjas closed 4 years ago

lfborjas commented 4 years ago

Use JSONB instead of a join table. As the tests, er, attest, this works perfectly fine, and it'll be much easier to work with in all cases except maybe for statistics (but I'd probably want a triggered update to some counts table anyway, as per this blog post)