Skip to content

Lazy Removal from PersistentBag collection (Similar to Add operation) #2776

Answered by fredericDelaporte
gkatoch asked this question in Q&A
Discussion options

You must be logged in to vote

The bag semantic does not allow lazy delete. Use a list, a map or a set instead. Of course if your bag can be mapped as a set, a list or a map, then it is not really a bag.
In usual data-models, most if not all collections really should be mapped as sets.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@gkatoch
Comment options

@maca88
Comment options

@bahusoid
Comment options

@gkatoch
Comment options

Answer selected by gkatoch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants