My current challenge involves managing a list of record IDs, such as [1, 20, 20]
.
The process of individually querying and deleting each item is proving to be quite inefficient.
store.findRecord('post', 1).then(function(post) {
post.deleteRecord();
post.save(); // => DELETE to /posts/1
});
I am seeking guidance on how to efficiently delete multiple records simultaneously using Ember data. What is the best approach for accomplishing this task?