3 ms·
- Never embed personalized information (eg not `{ post: { user_has_commented: true } }` Until you hear from an iOS developer that it is a huge pain trying to f
by webjunkie 10y ago
- Never embed personalized information (eg not `{ post: { user_has_commented: true } }`
Until you hear from an iOS developer that it is a huge pain trying to figure out if the user has left a comment on an item or not and including this little flag would save tons of time.
- andreasklinger 10y agoclient lib code is never the issue. usually scaling or breaking contracts is you can just add it as separate key (similar how you embed eg user objects) ``` posts: {…} interactions: { commented_on_posts: [1212,12,1212,121] } ``` btw most people over estimate this problem the _total_ amount of user interactions is usually very small in almost all cases you could download it once at boot for the user.
- webjunkie 10y agoGood ideas, thanks!