From e4c85352b42f424c065743bb5b9032cd1a72ae9d Mon Sep 17 00:00:00 2001 From: hagen-danswer Date: Wed, 4 Sep 2024 16:25:45 -0700 Subject: [PATCH] made connectors summary page faster (#2320) * made connectors summary page faster * not worth risk --- backend/danswer/db/index_attempt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/danswer/db/index_attempt.py b/backend/danswer/db/index_attempt.py index 2af1e7c56..e93fc8253 100644 --- a/backend/danswer/db/index_attempt.py +++ b/backend/danswer/db/index_attempt.py @@ -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(