Feature #2898
closedMake remove operation in PibImpl as deep remove
Description
Current spec of PibImpl does not require removeXXX to be deep removal, that is removal of an identity does not remove the related keys/cert. removal of a key does not remove a related cert.
We should explicit require PibImpl implementation to remove all related entities.
Updated by Yingdi Yu over 9 years ago
- Tracker changed from Task to Feature
- Status changed from New to Code review
- % Done changed from 0 to 80
Updated by Junxiao Shi over 9 years ago
commit:7d1f4572e81479f7f1911d46693e68f1bcf0bdae makes deep remove the responsibility of PibImpl
, which adds complexity every PibImpl
subclass.
Why not keep PibImpl
simple and implement this feature in Pib
?
Updated by Yingdi Yu over 9 years ago
Junxiao Shi wrote:
commit:7d1f4572e81479f7f1911d46693e68f1bcf0bdae makes deep remove the responsibility of
PibImpl
, which adds complexity everyPibImpl
subclass.
Why not keepPibImpl
simple and implement this feature inPib
?
The reason is similar to http://redmine.named-data.net/issues/2896#note-3
Because PibImpl is expected to be implemented on a database. It would be more efficient to do this with DB support. Doing it in Pib may involve many function calls.
Updated by Junxiao Shi over 9 years ago
commit:726c07cb049114f8bd21684127797d969ee17c2d implements deep remove with a foreign key.
This does not increase complexity.
Therefore, I agree with note-3.
Updated by Yingdi Yu over 9 years ago
- Status changed from Code review to Closed
- % Done changed from 80 to 100