UniqueIdentifier - Performance Issues Though doing a Index Seek

Azmath Momin 61 Reputation points
2020-08-21T09:36:27.27+00:00

Dear Experts,

I have two Tables with 800 Million Records in each where the Two Tables which I have Uniqueidentifier Column in the both as Primary Keys and one is references to other table.

While the Select is done with other tables including these tables as Joins, I have severe performance issues though the Execution plans shows the Index Seek Operation happening on these tables but the query cost on these two tables shows 70 % for these two tables alone. Also to mention these tables are partitioned with the timestamp without a purge policy as the data is important.

Indexes:
Primary Key (Clustered Index) Uniqueidentifier
Non-Clustered Index (Partitioned Column)

Any help on improving the queries performance could be greatly appreciated

Thanks
Momen

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,688 questions
{count} votes

2 answers

Sort by: Most helpful
  1. tibor_karaszi@hotmail.com 4,311 Reputation points
    2020-08-21T10:52:50.023+00:00

    We would need to have something more to go on. Like table structure, query, execution plan, indexes. And index can help for a seek (predicate, search condition) for the outer table in the plan, for the other tables, it is about helping with the join operation. So in the end it boils down to your queries, search conditions, indexes, etc.

    0 comments No comments

  2. Tom Phillips 17,731 Reputation points
    2020-08-21T12:11:27.77+00:00

    As Tibor said, we would need to see your query and your execution plan to give any information. There is nothing inherent in a uniqueid which would cause a performance issue on queries, and you indicate it is already doing an index seek. Having 70% being taking on a huge table is not an indication of a problem, just where it is spending most of the time.

    0 comments No comments

Your answer

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