Skip to content

Feature: Delete streams#85

Open
ricksliu wants to merge 3 commits into
developfrom
feature/delete_streams
Open

Feature: Delete streams#85
ricksliu wants to merge 3 commits into
developfrom
feature/delete_streams

Conversation

@ricksliu
Copy link
Copy Markdown
Contributor

@ricksliu ricksliu commented Mar 24, 2025

  • Add command to delete streams: .delete [stream]

image

  • Yes/no confirmation prompt that prints which streams get deleted

  • Deletes physical DB files and removes relevant ids from all three indexer tables

Other notes:

  • To print the streams being deleted, implemented a helper function get_all_stream_names() which maps stream IDs to the original stream strings (i.e. stream + matchers). Unfortunately we don't actually store those original strings anywhere in the indexer so it has to reconstruct them.

  • No concurrency/locking. Maybe we could wait for a exclusive lock on all physical files before deleting.

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