{"id":99469,"date":"2020-04-13T10:22:11","date_gmt":"2020-04-13T02:22:11","guid":{"rendered":"http:\/\/4563.org\/?p=99469"},"modified":"2020-04-13T10:22:11","modified_gmt":"2020-04-13T02:22:11","slug":"uuid-%e4%bd%9c%e4%b8%ba%e4%b8%bb%e9%94%ae%e4%bc%9a%e5%ad%98%e5%9c%a8%e7%9a%84%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=99469","title":{"rendered":"uuid \u4f5c\u4e3a\u4e3b\u952e\u4f1a\u5b58\u5728\u7684\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  uuid \u4f5c\u4e3a\u4e3b\u952e\u4f1a\u5b58\u5728\u7684\u95ee\u9898               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ruandao <\/span>  <span><i><\/i> 57<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6211\u5728\u770b \u9ad8\u6027\u80fd mysql<\/p>\n<p>\u7136\u540e\uff0c\u91cc\u9762\u63d0\u5230\u7528 uuid \u4f5c\u4e3a\u4e3b\u952e\u4f1a\u51fa\u73b0\u63d2\u5165\u7684\u6027\u80fd\u95ee\u9898\uff0c\u90a3\u4e48\u662f\u6307 uuid4 \u5417\uff1f<\/p>\n<p>\u6211\u67e5\u770b\u4e86\u4e0b uuid1 \u597d\u50cf\u662f\u65f6\u95f4\u589e\u5e8f\u7684\uff0c \u6240\u4ee5\u5e94\u8be5\u4e0d\u4f1a\u6709\u63d2\u5165\u65f6\u4e0d\u662f\u987a\u5e8f\uff0c\u5bfc\u81f4\u9891\u7e41\u9875\u5206\u88c2\u7684\u95ee\u9898\u5427\uff1f<\/p>\n<p>\u6211\u76ee\u524d\u7684\u8ba4\u77e5\u662f\uff0cuuid1 \u4f5c\u4e3a\u4e3b\u952e\u7684\u8bdd\uff0c\u56e0\u4e3a\u8981\u8fdb\u7d22\u5f15\uff0c\u4f1a\u5bfc\u81f4\u6027\u80fd\u95ee\u9898\uff08\u56e0\u4e3a uuid1 \u6bd4\u8f83\u957f\uff0c\u6bcf\u4e2a\u9875\u80fd\u5bb9\u7eb3\u7684 key \u53d8\u5c11\u4e86\uff09<\/p>\n<p>\u6709\u4ec0\u4e48\u7f3a\u6f0f\uff0c\u6216\u8005\u4e0d\u5bf9\u7684\u5730\u65b9\u5417\uff1f<\/p>\n<p>\u8c22\u8c22<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>13<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"742486\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : ruandao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3b\u8981\u662f\u4e66\u4e2d\u4e00\u53e5\u8bdd\uff1a<\/p>\n<p> \u4f8b\u5982\uff0c\u4ece\u6027\u80fd\u7684\u89d2\u5ea6\u8003\u8651\uff0c\u4f7f\u7528 UUID \u6765\u4f5c\u4e3a\u805a\u7c07\u7d22\u5f15\u5219\u4f1a\u5f88\u7cdf\u7cd5\uff1a\u5b83\u4f7f\u5f97\u805a\u7c07\u7d22\u5f15\u7684\u63d2\u5165\u53d8\u5f97\u5b8c\u5168\u968f\u673a\uff0c\u8fd9\u662f\u6700\u574f\u7684\u60c5\u51b5\uff0c\u4f7f\u5f97\u6570\u636e\u6ca1\u6709\u4efb\u4f55\u805a\u96c6\u7279\u6027                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"742487\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : love <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6bd4\u666e\u901a\u7684\u56db\u5b57\u8282\u6574\u6570\u5927 4 \u500d\uff0c\u6240\u4ee5\u53ea\u7528\u5728\u5fc5\u8981\u7684\u60c5\u51b5\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"742488\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : binux <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u90fd 0202 \u5e74\u4e86\uff0cPostgreSQL \u5b83\u4e0d\u9999\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"742489\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hbolive <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @binux PostgreSQL \u9999\u5f52\u9999\uff0c\u4f46\u7528\u4ec0\u4e48\u6570\u636e\u5e93\uff0c\u5f80\u5f80\u4e0d\u662f\u770b\u4e66\u7684\u4eba\u51b3\u5b9a\u7684\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"742490\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ic2y <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1. \u5982\u679c\u4f60\u7528\u7684 innodb \u5f15\u64ce\uff0c\u6700\u597d\u7528\u81ea\u589e\u503c\u505a\u4e3b\u952e\uff08\u4e3b\u952e\u662f\u805a\u7c07\u7d22\u5f15\uff09\u3002\u56e0\u4e3a Mysql \u7684 innodb \u5f15\u64ce\u4f7f\u7528\u81ea\u589e\u8fde\u7eed\u7684\u503c\uff0c\u53ef\u4ee5\u89c4\u907f B+\u6811\u7684\u9891\u7e41\u5206\u88c2\u548c\u8c03\u6574\u3002<\/p>\n<p>2.\u5bf9\u4e8e\u975e\u4e3b\u952e\u7684\u7d22\u5f15\uff0c\u90fd\u662f\u975e\u805a\u7c07\u7d22\u5f15\uff0c\u6bcf\u4e2a\u975e\u805a\u7c07\u7d22\u5f15\u7684\u53f6\u5b50\u8282\u70b9\u5b58\u50a8\u7684\u662f\u4e3b\u952e\u7684\u5177\u4f53\u503c\uff08\u53ef\u4ee5\u89c4\u907f\u63d2\u5165\u66f4\u65b0\u4e2d B+\u6811\u7684\u8c03\u6574\uff09\u3002\u4e5f\u5c31\u662f\u8bf4\uff1a\u5982\u679c\u4e3b\u952e\u7528 UUID,\u90a3\u4e48\u5176\u4ed6\u7684\u7d22\u5f15\u90fd\u53d8\u76f8\u7684\u53d8\u5927\u4e86\u51e0\u500d\uff0c\u4f1a\u5bfc\u81f4\u78c1\u76d8\u7a7a\u95f4\u7684\u6d6a\u8d39\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"742491\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : okwork <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6253\u7b97\u7528 uuid \u4e3b\u952e\uff0c\u81ea\u7136\u662f\u8003\u8651\u6570\u636e\u91cf\u975e\u5e38\u5927\uff0c\u540e\u671f\u7d22\u5f15\u6548\u7387\u6bd4\u8f83\u4f4e\u3002\u5b9e\u9645\u60c5\u51b5\u53ef\u4ee5\u7528\u81ea\u589e\u4e3b\u952e\uff0c\u540c\u65f6\u52a0\u4e00\u5217\u7d22\u5f15 uuid\uff0c\u6309\u9700\u4f7f\u7528\u5c31\u53ef\u4ee5\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"742492\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cmdOptionKana <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u73b0\u5728\u53ef\u4ee5\u8003\u8651\u91c7\u7528 Snowflake                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"742493\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wx3571 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5efa\u7acb\u975e\u805a\u7c07\u7d22\u5f15\u7684\u65f6\u5019\u7a7a\u95f4\u8981\u6c42\u66f4\u5927\uff0c\u7279\u522b\u662f\u9700\u8981\u5efa\u5f88\u591a\u975e\u805a\u7c07\u7d22\u5f15\u7684\u65f6\u5019\u3002\u7d22\u5f15\u7a7a\u95f4\u8981\u6c42\u53d8\u5927\u4f1a\u9020\u6210\u7d22\u5f15\u6548\u7387\u53d8\u4f4e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"742494\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : binux <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hbolive #4 \u90a3\u8ba9\u51b3\u5b9a\u7528\u4ec0\u4e48\u6570\u636e\u5e93\u7684\u4eba\u51b3\u5b9a\u7528\u4ec0\u4e48\u505a\u4e3b\u952e\u53bb\u5427\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"742495\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hbolive <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @binux \u90a3\u597d\uff0c\u4f60\u4e0b\u5348\u53bb\u8d22\u52a1\u7ed3\u7b97\u4e0b\u5de5\u8d44\uff0c\u660e\u5929\u4e0d\u7528\u6765\u4e86\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"742496\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : guokeke <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6309\u7167\u6211\u7684\u7406\u89e3, \u5982\u679c\u4f60\u6309\u7167 char \u7c7b\u578b\u5b58\u50a8\u7684\u8bdd\u8fd8\u662f\u5b58\u5728\u4e0a\u9762\u7684\u95ee\u9898\uff0c\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u6309\u7167 binary \u7c7b\u578b\u5b58 uuid\u3002<br \/>\u6211\u4e0d\u4e00\u5b9a\u5bf9\uff0c\u4f46\u662f binary \u7c7b\u578b\u662f\u53ef\u4ee5\u4f18\u5316 uuid \u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"742497\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Foredoomed <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u67e5\u8be2\u6027\u80fd\u53ef\u80fd\u6ca1\u4ec0\u4e48\u5927\u533a\u522b\uff0c\u4f46\u662f uuid \u7d22\u5f15\u5360\u7684\u5185\u5b58\u4f1a\u591a\u5f88\u591a\u5f88\u591a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"742498\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : ruandao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Foredoomed \u67e5\u8be2\u6027\u80fd\u5e94\u8be5\u662f\u6709\u5f71\u54cd\u7684\uff0c\u56e0\u4e3a key \u5360\u7684\u7a7a\u95f4\u5927\uff0c\u7136\u540e\u4e00\u4e2a\u9875\u80fd\u5b58\u653e\u7684 key \u5c31\u5c11\uff0c\u7136\u540e\u5c31\u591a\u4e86\u51e0\u6b21 IO \u64cd\u4f5c<\/p>\n<p>\u6211\u8fd9\u8fb9\u4e3b\u8981\u7684\u77db\u76fe\u662f\u4e66\u4e0a\u8bb2\u7684\u662f uuid4 \u5417\uff0c\u56e0\u4e3a uuid1 \u7684\u5e8f\u5217\u662f\u6709\u5e8f\u7684                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>uuid \u4f5c\u4e3a\u4e3b\u952e\u4f1a\u5b58\u5728\u7684\u95ee\u9898 \u8cc7&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/99469"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=99469"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/99469\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=99469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=99469"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=99469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}