mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-22 23:31:12 +02:00
- Added asyncio.gather() to run all connector searches concurrently - Replaced sequential for-loop (~600 lines) with parallel execution - Added search_single_connector() helper function for cleaner code - Added CONNECTOR_EMOJIS and CONNECTOR_RESULT_NAMES mappings - Streams "Searching N sources in parallel" before concurrent execution - Processes results as they complete and streams found counts Before: 20 connectors × ~1s each = ~20s total After: All connectors run simultaneously = ~2-3s total This is the highest impact performance optimization identified in the audit. |
||
|---|---|---|
| .. | ||
| agents | ||
| config | ||
| connectors | ||
| prompts | ||
| retriver | ||
| routes | ||
| schemas | ||
| services | ||
| tasks | ||
| utils | ||
| __init__.py | ||
| app.py | ||
| celery_app.py | ||
| db.py | ||
| users.py | ||