ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

Refa: change to db exists operation

Open Woody-Hu opened this issue 6 months ago • 1 comments

What problem does this PR solve?

Change some API's db operations to exist to improve performance.

Type of change

  • [x] Performance Improvement

Woody-Hu avatar Jun 16 '25 01:06 Woody-Hu

@Woody-Hu Please refer to the original query method implementation - we cannot directly pass filter conditions to the Model's where() method here. https://github.com/infiniflow/ragflow/blob/main/api/db/db_models.py#L177

asiroliu avatar Jun 17 '25 02:06 asiroliu