sql - Non Clustered Index on UniqueIdentifier columns -
we have simple sql query selecting 2 columns below
select teamid,isvalid teams teamid='{{guid}}' , subid = {{guid}}.
we had issues performance of query there no index have added now...
create nonclustered index [nonclusteredindex-20170725-191322] on [dbo].[tablename] ( [subid ] asc, [teamid] asc, [date] asc ) include ([isvalid]) (pad_index = off, statistics_norecompute = off, sort_in_tempdb = off, drop_existing = off, online = off, allow_row_locks = on, allow_page_locks = on) on [primary] go
the problem takes few milliseconds execute query few seconds!!! times .
and because of constraints can't change type of guid column , exernal system.
is there way can still make sure performance good
Comments
Post a Comment