Why use rowguid and what are the benefits?
rowguid
Suppose a company has thousands of customers, is it a good approach to divide them on the basis of their gender for the performance and fast query if no then why?
How do large companies like Facebook handle their primary key for their comments, users and for other things for example:
Suppose there are five users with primary key 1,2,3,4,5...
What if user 3 is deleted from there, now it's 1,2,4,5 will be left, which is kind of gap between continuous chain. How do they deal with it?
分かりません - 他のデータベース間で一定に保つことができるように、自動以外の値を使用することもできます(おそらく、3部目の統合などで使用することができます)。
ジェンダーを知らない(または完全なリストが必要な)ときに、2つのテーブルを検索する必要があるときや、他のフィルタリング/検索を追加するときに、性別などのフィールドで分けてはいけません再度複数のテーブルを操作する必要があります。
IDチェーンにギャップがある場合、何も影響しません。なぜそれが重要だと思いますか?