主要修复: - 强制启用数据库连接池,避免单连接竞争死锁 - 修复 OutfitImageRepository 所有方法使用连接池 - 优化 AsyncMaterialService 异步任务,使用 spawn_blocking - 修复 video_classification_repository 和 video_generation_repository - 添加连接池监控和诊断命令 连接池配置: - 最大连接数:10,最小连接数:3 - 获取超时:30秒,空闲超时:5分钟 - 带重试机制和超时处理 新增监控功能: - get_detailed_connection_pool_stats:获取连接池统计 - force_cleanup_database_connections:强制清理连接 修复的方法: - create_record_with_products:强制使用连接池 - get_records_by_model_id:避免死锁的查询 - init_tables, update_record:连接池优化 - recover_stuck_tasks:视频分类任务恢复 这个修复从根本上解决了数据库死锁问题,提高了并发性能和稳定性。 |
||
|---|---|---|
| .. | ||
| capabilities | ||
| icons | ||
| src | ||
| .gitignore | ||
| Cargo.toml | ||
| build.rs | ||
| tauri.conf.json | ||