Share via

very slow queries

Wissem Golli 0 Reputation points
2025-04-15T20:04:31.2866667+00:00
       cursor.execute(
            sql_query,
            [
                query_embedding,  # First placeholder (%s)
                person_names,  # Second placeholder (%s)
                file_ids,  # Third placeholder (%s)
            ],
        )

        results = cursor.fetchall()


this started to taking like 40 seconds , which is very slow

SQL Server Database Engine
0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.