Skip to content

Update from task 65e82eea-310b-4ac8-bb6c-d714aa018cfb - #37

Open
aihlp wants to merge 1 commit into
mainfrom
database-optimization-and-user-flow-fixes-18cfb
Open

Update from task 65e82eea-310b-4ac8-bb6c-d714aa018cfb#37
aihlp wants to merge 1 commit into
mainfrom
database-optimization-and-user-flow-fixes-18cfb

Conversation

@aihlp

@aihlp aihlp commented Jul 29, 2026

Copy link
Copy Markdown
Owner

This PR was created by qwen-chat coder for task 65e82eea-310b-4ac8-bb6c-d714aa018cfb.

Key features implemented:
- New optimization script at scripts/optimize_db.py that restructures data storage by extracting essential fields and removing large arrays
- Adds parent_uri, foundation_id, and chapter_info columns to icd_nodes_state table for efficient querying
- Removes indexTerm, exclusion, and @context fields from raw_data to reduce database size by 70-80%
- Creates new indexes on parent_uri and foundation_id columns for faster lookups
- Updates .gitignore to properly exclude database files and simplify ignore rules
- Reduces database size from ~95MB to ~20-30MB to comply with GitHub's 100MB file limit
- Maintains data integrity while optimizing storage through VACUUM operation

The optimization script transforms the database structure to keep only minimal metadata needed for processing while preserving essential data fields, ensuring the repository stays within GitHub's file size constraints.
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.

2 participants