ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

Feat: Improve 'user_canvan_version' delete and 'document' delete performance

Open Woody-Hu opened this issue 9 months ago • 0 comments

What problem does this PR solve?

  1. Add delete_by_ids method
  2. Add get_doc_ids_by_doc_names
  3. Improve user_canvan_version's logic (avoid O(n) db IO)
  4. Improve document delete logic (avoid O(n) db IO)

Type of change

  • [ ] Bug Fix (non-breaking change which fixes an issue)
  • [ ] New Feature (non-breaking change which adds functionality)
  • [ ] Documentation Update
  • [ ] Refactoring
  • [x] Performance Improvement
  • [ ] Other (please describe):

Woody-Hu avatar Mar 26 '25 08:03 Woody-Hu