made connectors summary page faster (#2320)

* made connectors summary page faster

* not worth risk
This commit is contained in:
hagen-danswer 2024-09-04 16:25:45 -07:00 committed by GitHub
parent 34ba3181ff
commit e4c85352b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -242,7 +242,7 @@ def get_latest_finished_index_attempt_for_cc_pair(
secondary_index: bool,
db_session: Session,
) -> IndexAttempt | None:
stmt = select(IndexAttempt).distinct()
stmt = select(IndexAttempt)
stmt = stmt.where(
IndexAttempt.connector_credential_pair_id == connector_credential_pair_id,
IndexAttempt.status.not_in(