Actions
Idea #6186
closed[API] [Performance] Improve "destroy" implementation
Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
API
Target version:
-
Start date:
Due date:
Story points:
-
Description
The destroy method in API -> application_controller.rb is as follows:
def destroy
@object.destroy
show
end
From this we can see that, after destroy operation the entire object is returned (uuid is set to nil). In case of large objects such as a collection with large manifest_text, this seems unnecessary overhead and performance killer.
If we do need to return the object, we need to nil all non-essential attributes in the object and send only what is needed (similar to setting uuid to nil).
Updated by Radhika Chippada almost 11 years ago
- Subject changed from [API] Improve "destroy" implementation to [API] [Performance] Improve "destroy" implementation
- Description updated (diff)
- Category set to API
Actions