objectbox / objectbox/objectbox-java
Put or remove without triggering data observers
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.6k
- Forks
- 311
- PR merge metrics
- No merged PRs in 30d
Description
Is it possible to add an option of put (maybe remove as well) that will not trigger data observers? This can be useful when you are doing some maintenance work on entity (i.e. updating timestamp) and do not wish observer be triggered. As a workaround, we can unregister the observer, do the work and then register again, however that is quite messy.
I can imagine it being:
1. box.putSilently(entity)
2. box.removeSilently(entity)
3. boxStore.runInTxSilently(runnable)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing put, remove, data observer, and runInTx APIs referenced in the issue. Determine whether silent variants should cover entity updates, removals, and transactions, and define completion around a documented behavior that performs the requested maintenance work without triggering observers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100