-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatic removal of unreachable static chunks (#7518)
Unreachable static chunks are dead weight: there exists no query that can access their data (at least when using Rerun as a Visualizer). By automatically removing dangling chunks, we make it possible for user to use the Rerun Viewer as a soft-realtime telemetry system (provided we properly invalidate our caches too, which is the subject of an upcoming PR). This raises the question of what should happen when using Rerun as a database: should this data be kept and made accessible? If so, this behavior should probably be made configurable (e.g. when instantiating a ChunkStore in the SDK). * Part of #7404 --- Test: ```python from pathlib import Path import rerun as rr image_file_path = Path(__file__).parent / "ferris.png" rr.init("rerun_example_encoded_image", spawn=True) for _ in range(0, 10): rr.log("image", rr.EncodedImage(path=image_file_path), static=True) ``` Command: ``` RERUN_FLUSH_NUM_ROWS=0 python test.py ``` Before: ![image](https://github.com/user-attachments/assets/a9823055-5247-4d63-9295-fc310aa4923f) After: ![image](https://github.com/user-attachments/assets/c095fda2-02ac-4456-bf3f-e251b24dc75d)
- Loading branch information
Showing
2 changed files
with
178 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters