Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
 canpolat   ( @canpolat@programming.dev )  to Programming@programming.devEnglish · 1 year ago

You'll regret using natural keys

blog.ploeh.dk

external-link
message-square
17
link
fedilink
  • cross-posted to:
  • hackernews@lemmy.smeargle.fans
68
external-link

You'll regret using natural keys

blog.ploeh.dk

 canpolat   ( @canpolat@programming.dev )  to Programming@programming.devEnglish · 1 year ago
message-square
17
link
fedilink
  • cross-posted to:
  • hackernews@lemmy.smeargle.fans
Beating another dead horse.
  •  Kissaki   ( @Kissaki@programming.dev ) 
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

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

    •  Corbin   ( @Corbin@programming.dev ) 
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year 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.

Programming@programming.dev

programming@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programming@programming.dev

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 76 users / day
  • 186 users / week
  • 1.36K users / month
  • 3.98K users / 6 months
  • 442 local subscribers
  • 23.5K subscribers
  • 2.01K Posts
  • 17.1K Comments
  • Modlog
  • mods:
  •  snowe   ( @snowe@programming.dev ) 
  •  Ategon   ( @Ategon@programming.dev ) 
  •  MaungaHikoi   ( @MaungaHikoi@lemmy.nz ) 
  •  UlrikHD   ( @UlrikHD@programming.dev ) 
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code