feat: Add children_json update to scan system

Problem:
- Home folder could not expand (children_json was empty)
- UI tree view showed flat structure

Solution:
- Add step [5/5] to update children_json for all folders
- Use SQL: json_group_array(node_id) to collect child IDs
- Update 802 folders after node insertion

Performance:
- Children JSON update: 1.55s (74% of total time)
- Total scan time: 2.08s (vs 0.89s without children)

Result:
- Home folder has 805 children 
- Tree structure fully functional 
- API returns correct children array 

Files:
- src/scan.rs (added children_json update step)
This commit is contained in:
Warren
2026-05-17 03:35:35 +08:00
parent 86fa66bb42
commit d783fdc397
2 changed files with 30 additions and 7 deletions

Binary file not shown.