Skip to content

Conversation

@zteln
Copy link

@zteln zteln commented Aug 30, 2025

Add ability to put, delete, and get metadata key-value pairs from the database that are separated from the regular database entries. The metadata table is stored as a keyword in a separate field at each node, but only present at the root node. Support for handling metadata operations in transactions as well.

The main motivation is to be able to store extra metadata information about the database without having to filter it away when reading, e.g. during select.

  • put_metadata/3, delete_metadata/2 and get_metadata/3 functions are exposed in the CubDB module.
  • The metadata table is moved to the root during splits and merges while underlying nodes get an empty metadata field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant