New for creating indexes in SQL Server. Suppose I have 3 columns A, B, C, none of which are my primary key. I create many requests with offers WHEREthat contain any and all of their combinations. So, some sentences WHEREmay include only A, others A and B, others B and C, some of the three, etc.
A, B, C
WHERE
Should I create an index for each of these combinations?
If they include these columns as "Included columns" (as in https://msdn.microsoft.com/en-us/library/ms190806.aspx )
(A, B, C), n , :
(A, B, C)
A
B
(A, B, C) :
C
, , .
: , INSERT, UPDATE DELETE ( ).
INSERT
UPDATE
DELETE
- over-index! , ...
2) , . , , ( ). , , F, A, B , ((A, B) include (F)), , (A, B) . F .
1) , , .. , , - , , , 1000 . , , SQL Server (PRIMARY KEY) .
SELECT , marc_s.
Source: https://habr.com/ru/post/1629387/More articles:SAML message validation error - spring-samlsumming up a summary table - google-visualizationDisabling Apple Pay in iOS 9 sims - iosFailed to replace env in config using Bash & NPM - node.js$ mdDialog confirm reorder cancel-ok to ok-cancel - angularjsSwift naming convention for mutated functions - naming-conventionsDjango without a module named "compressor" - pythonError in Android Studio when starting the application - javaHide useless scrollbars that only appear on Windows - htmlReturn types and tag dispatching - c ++All Articles