objectbox / objectbox/objectbox-java

Put or remove without triggering data observers

Open
#699 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.