4 ms·
Yes, the first point is valid, data could be re-fetched. Compounded documents or unions/nested data should only be avoid. I think strong normalization is a goo
by 1qaz2wsx3edc 13y ago
Yes, the first point is valid, data could be re-fetched.
Compounded documents or unions/nested data should only be avoid. I think strong normalization is a good idea.
In the second case. The flow could be:
GET /posts
GET /posts/1/comments
GET /posts/1/comments/authors
Comments only need to rel to authors, which can be loaded next. Data-binding for the win.
I'm not against embedded data as an optimization. It's difficult to fit.