Using the JSONAPI adapter.
I have two articles. In an Ember template:
{{#each articles as |article|}}
{{article.comments}}
{{/each}}
With coalesce enabled. If each article has a 100 comments. Ember Data will execute comments?filter[id]=1,2,3,4,5,6…200
The endpoint handling comments?filter[id] is expected to receive X amount of ids. The API endpoint is exposed to anyone trying to do: comments?filter[id]=1,2,3,4,5,6…9999999.
Which will be quite taxing on the database. How do you guys handle such situations?
Aucun commentaire:
Enregistrer un commentaire