Files
markbase/data/users
Warren d783fdc397 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)
2026-05-17 03:35:35 +08:00
..