在库存管理系统和财务系统里面存在很多重叠的数据,在整合这两个系统的数据时很容易发生主键冲突或者数据关联错误。
There is a certain overlap between the stock control system and the accounting system which, if the connection were made, would save a lot of re-keying and associated errors.
如我之前提到的那样,切分迫使您重视主键,因为您将需要亲自管理这些主键。
As I mentioned earlier, sharding forces you to be keenly aware of primary keys, as you'll manage them yourself.
避免相同主键最安全的方法就是让应用程序(应用程序将管理切分系统)生成主键。
The safest way to prohibit duplicate primary keys is to have your application (which will be managing a sharded system anyway) generate keys.
应用推荐