ComfyUI/tests-unit/assets_test
Luke Mino-Altherr 58582f1faf Optimize enrichment: shared DB session per batch, add fast scan timing logs
- Add debug timing logs for each fast scan sub-step (sync_root, collect_paths, build_asset_specs) and info-level total timing
- Refactor enrich_asset to accept a session parameter instead of creating one per file
- enrich_assets_batch now opens one session for the entire batch, committing after each asset to keep transactions short
- Simplify enrichment tests by removing create_session mocking

Amp-Thread-ID: https://ampcode.com/threads/T-019cbb0b-8563-7199-b628-33e3c4fe9f41
Co-authored-by: Amp <amp@ampcode.com>
2026-03-04 15:17:48 -08:00
..
queries Reduce duplication across assets module 2026-03-03 17:23:32 -08:00
services Optimize enrichment: shared DB session per batch, add fast scan timing logs 2026-03-04 15:17:48 -08:00
conftest.py feat: soft-delete for AssetReference with scanner persistence 2026-03-03 20:15:14 -08:00
helpers.py refactor(assets): database layer — split queries into modules and merge migrations 2026-03-03 15:51:52 -08:00
test_assets_missing_sync.py refactor(assets): API routes call services directly, extract upload handling 2026-03-03 15:51:52 -08:00
test_crud.py feat: soft-delete for AssetReference with scanner persistence 2026-03-03 20:15:14 -08:00
test_downloads.py feat: soft-delete for AssetReference with scanner persistence 2026-03-03 20:15:14 -08:00
test_file_utils.py fix: follow symlinks in list_files_recursively with cycle detection 2026-03-03 15:51:52 -08:00
test_list_filter.py refactor(assets): API routes call services directly, extract upload handling 2026-03-03 15:51:52 -08:00
test_metadata_filters.py Assets Part 2 - add more endpoints (#12125) 2026-01-31 02:22:05 -05:00
test_prune_orphaned_assets.py refactor(assets): API routes call services directly, extract upload handling 2026-03-03 15:51:52 -08:00
test_sync_references.py feat: soft-delete for AssetReference with scanner persistence 2026-03-03 20:15:14 -08:00
test_tags_api.py feat: soft-delete for AssetReference with scanner persistence 2026-03-03 20:15:14 -08:00
test_uploads.py refactor(assets): API routes call services directly, extract upload handling 2026-03-03 15:51:52 -08:00