Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10861

SQLServer: uid PK should not be clustered

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 5.6.0-HF09
    • Fix Version/s: None
    • Component/s: Core VCS
    • Environment:
      MS SQLServer

      Description

      In MS SQLServer a table should have both a PK and a clustered index.
      The clustered index is used to arrange data on disk.
      By default the PK is the clustered index.

      Having the clustered index on hierarchy.id has a performance impact because it fragment the data.

      We should set the clustered index on another column.

      More info
      http://ask.sqlservercentral.com/questions/1147/should-my-primary-key-be-clustered.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bdelbosc Benoit Delbosc
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: