Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-534
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Shay Banon
Reporter: Kenny MacLeod
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

Make CompassOperations.delete(query) return deletion count

Created: 07/Feb/08 07:08 AM   Updated: 09/Feb/08 05:31 AM
Component/s: Compass::Core
Affects Version/s: 2.0 M1
Fix Version/s: None

 Description  « Hide
Currently, CompassOperations.delete(CompassQuery) returns void. How about returning something useful, such as the number of objects deleted, or better yet a Set containing the IDs of the objects that were deleted?

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Shay Banon added a comment - 09/Feb/08 05:31 AM
Good question. The main problem with adding this API is the fact that later on, if a more optimized solution will find its way (currently Compass simply execute the query and iterate through and deletes) there might not be an option to provide this information.