Files
ragflow/api/apps
Paul Lu f4e2783eb4 optimize doc id check: do not query db when doc id to validate is empty (#12500)
### What problem does this PR solve?
when a kb contains many documents, say 50000, and the retrieval is only
made against some kb without specifying any doc ids, the query for all
docs from the db is not necessary, and can be omitted to improve
performance.

### Type of change

- [x] Performance Improvement
2026-01-08 13:22:58 +08:00
..
2025-12-25 21:18:13 +08:00
2025-12-25 21:18:13 +08:00
2025-12-22 16:47:21 +08:00
2026-01-08 12:54:10 +08:00
2025-12-12 10:23:40 +08:00
2025-12-22 16:47:21 +08:00