-
Notifications
You must be signed in to change notification settings - Fork 360
feat: split raw data storage into per-dataset SQLite files #8219
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
Draft
astafan8
wants to merge
16
commits into
microsoft:main
Choose a base branch
from
astafan8:feature/split-raw-data-sqlite
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,779
−18
Draft
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
efca7d8
feat: split raw data storage into per-dataset SQLite files
f9a3ea4
address PR review feedback from Jens and Copilot
32b1c96
Add update_raw_data_paths helper for relocated raw data files
d897d95
Add update_raw_data_paths documentation to intro.rst and Database.ipynb
dce30f5
Merge branch 'main' into feature/split-raw-data-sqlite
astafan8 ce732d6
Fix ruff format and unused import lint issues
a195b32
Fix pyright type errors in test_raw_data_storage
5577d3a
Merge branch 'main' into feature/split-raw-data-sqlite
astafan8 07266e6
Add purge_orphaned_datasets and cleanup_datasets management functions
0f21ee9
Add towncrier news fragment for split raw data storage
c76baad
Address PR review comments: move queries to queries.py, add prints, s…
84e119d
Use log.debug for per-dataset reports, Path.unlink() for file removal
8f4ff32
Merge branch 'main' into feature/split-raw-data-sqlite
astafan8 91dd316
Fix extract/export and unsubscribe to use _data_conn for split storage
ddbee78
Merge branch 'main' into feature/split-raw-data-sqlite
astafan8 2aeb373
Apply suggestions from code review
astafan8 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| Added **split raw data storage** for the DataSet: an opt-in feature | ||
| enabled via the ``dataset.raw_data_to_separate_db`` config option that | ||
| writes raw measurement data into individual per-dataset SQLite files | ||
| while keeping all metadata in the main database. This prevents the | ||
| main DB file from growing excessively large and allows users to have a | ||
| single main SQLite QCoDeS database on their PC as opposed to many that | ||
| grow infinitely. | ||
|
|
||
| Management helpers included: | ||
|
|
||
| - ``update_raw_data_paths()``: update stored paths after raw data files | ||
| have been moved to a new folder. | ||
| - ``purge_orphaned_datasets()``: find and remove dataset records whose | ||
| raw data files no longer exist on disk (``dry_run=True`` by default). | ||
| - ``cleanup_datasets()``: remove datasets (DB records and raw data files) | ||
| by age, sample name, or file size (``dry_run=True`` by default). |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.