Announcement

Collapse
No announcement yet.

1,000,000, posts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Congrats on the 1,000,000, posts
    MCSE, MVP, CCIE
    Microsoft Beta Team

    Comment


    • #17
      Originally posted by filburt1
      If you drop and reapply auto_increment, it could start to fill in blank IDs. If you delete post ID 2, then reapply auto_increment, suddenly it could be filled with a new post.

      If the dateline had millisecond precision, it could be used as the primary key instead (provided no two posts share the same post time to the millisecond). The point of an ID is to uniquely identify data, not to necessarily describe it.

      (I'm taking a database design class, but I knew this going into it anyway)
      There would still be the possibility of collisions even with millisecond precision.

      I did not know that reseting auto_increment would fill in unused IDs. Thanks for the information.

      Comment

      Related Topics

      Collapse

      Working...
      X