Use item specific prefixes and autonumber for primary keys?

后端 未结 9 1459
孤街浪徒
孤街浪徒 2020-12-05 20:12

We had a meeting this morning about how would should store our ID for some assets that we have in our database that we are making, the descusion generated a bit of heat so I

9条回答
  •  庸人自扰
    2020-12-05 20:54

    I would choose a numeric primary key for performance reasons. Integer comparisons are much cheaper than string comparisons, and it will occupy less space in the DB.

提交回复
热议问题