-
Notifications
You must be signed in to change notification settings - Fork 1
Better SQLite Support #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| # Initialize metadata storage based on configuration | ||
| self.use_sqlite = METADATA_STORAGE == "sqlite" | ||
|
|
||
| if self.use_sqlite: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this code should be moved into method _init_pipeline_metadata
| raise | ||
| else: | ||
| # Initialize mutable stream for metadata (legacy mode) | ||
| self.pipeline_stream_name = "synthetic_data_pipelines" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why both setting will use sqlite for metadata, seems the mutable stream based metadata is not here?
|
|
||
| db_logger.info(f"Successfully retrieved pipeline: {pipeline_info['name']} (writes: {live_count})") | ||
| return pipeline_info | ||
| if self.use_sqlite: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this logic should be wrapper in the metadata manager
To switch in Powershell:
$env:METADATA_STORAGE = "sqlite"
python main.py
$env:METADATA_STORAGE = "mutable_stream"
python main.py
To switch in zsh:
export METADATA_STORAGE=mutable_stream
python main.py
export METADATA_STORAGE=sqlite
python main.py