In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
CREATE INDEX codes_idx_partit_curren_delete_code_refere ON dbo.Codes (PartitionKey,CurrentPosition,Deleted,Code,ReferenceKey);
SELECT
dbo.Codes.Code,
dbo.Codes.ReferenceKey,
dbo.Codes.CodeKey
FROM
dbo.Codes
WHERE
dbo.Codes.PartitionKey = 'PART1'
AND dbo.Codes.CurrentPosition = 1
AND dbo.Codes.Deleted = 0
AND dbo.Codes.Code = 'CODE1'
AND dbo.Codes.ReferenceKey = 0x0000000000000000000000000000000000000000