objectbox / objectbox/objectbox-java

Get database size and available capacity

Open
#826 6 comments 3 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

Add ways to retrieve information about sizes, e.g.:

  • database size on disk
  • current size limit on disk
  • information about free space in the current file. This is not trivial and could be e.g. based on free pages and pages with capacity. Might be an approximation. Could be a percentage or an absolute number.
  • optional(?): approximate remaining capacity until we reach max size (and/or disk limit). Details tbd...

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

No files, tests, or entry points are named. Begin by reviewing the existing database API and how storage limits and free space are represented, then resolve which measurements are required and whether free space may be approximate. Done means the selected size and capacity information is exposed with agreed semantics and covered by tests.

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.