• Kissaki
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    Are you saying “don’t use a synthetic key, you ain’t gonna need it”?

    • Corbin
      link
      fedilink
      English
      arrow-up
      4
      ·
      5 months ago

      I think they’re saying that e.g. you shouldn’t index a natural key unless you know that you’re going to search/collate by that key as a column. Telling the database that a certain column contains (a component of) the primary key is adding a restriction to that column.