{"id":99077,"date":"2020-05-21T05:15:49","date_gmt":"2020-05-20T21:15:49","guid":{"rendered":"http:\/\/4563.org\/?p=99077"},"modified":"2020-05-21T05:15:49","modified_gmt":"2020-05-20T21:15:49","slug":"%e4%b8%80%e9%81%93%e9%9d%a2%e8%af%95%e9%a2%98%e7%bb%99%e6%88%91%e6%95%b4%e6%87%b5%e4%ba%86%ef%bc%8c%e6%b1%82%e6%8c%87%e5%af%bc","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=99077","title":{"rendered":"\u4e00\u9053\u9762\u8bd5\u9898\u7ed9\u6211\u6574\u61f5\u4e86\uff0c\u6c42\u6307\u5bfc"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4e00\u9053\u9762\u8bd5\u9898\u7ed9\u6211\u6574\u61f5\u4e86\uff0c\u6c42\u6307\u5bfc               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yuk1no <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u67d0\u5927\u5382\u4e8c\u9762\uff0c\u524d\u9762\u7b97\u6cd5\u554a\u9879\u76ee\u554a\u8fd8\u6bd4\u8f83\u6b63\u5e38\uff0c\u6700\u540e\u76f4\u63a5\u6574\u4e86\u8fd9\u6837\u4e00\u9053\u9898\u3002<\/p>\n<p>\u8981\u6c42\u8bbe\u8ba1\u4e00\u4e2a\u8fd9\u6837\u7684\u7cfb\u7edf\uff1a<br \/>1. \u80fd\u591f\u652f\u6491\u4e00\u767e\u4ebf\u8ba2\u5355 id\uff0c\u4e00\u4ebf\u4e2a\u7528\u6237 id\uff0c\u6bcf\u5929\u589e\u91cf\u66f4\u65b0<br \/>2. \u63d0\u4f9b\u67e5\u8be2\u201c\u7528\u6237 id-\u8ba2\u5355 id\u201dpair \u662f\u5426 valid \u7684\u670d\u52a1<br \/>3. \u4e00\u6b21\u67e5\u8be2\u6700\u591a\u4e00\u5343\u4e07\u5bf9\u6570\u636e\uff0c\u54cd\u5e94\u65f6\u95f4\u8d8a\u4f4e\u8d8a\u597d<\/p>\n<p>\u6211\u61f5\u4e86\uff0c\u60f3\u4e86\u534a\u5929\u6324\u51fa\u6765\u4e86\u4e00\u4e2a redis set \u5b58\u6570\u636e\uff0ct+1 \u66f4\u65b0\uff0c\u63a5\u53e3\u63a5\u53d7 csv \u6587\u4ef6\uff0c\u9762\u8bd5\u5b98\u4e0d\u662f\u5f88\u6ee1\u610f      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>44<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1647693\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : luckyrayyy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7cfb\u7edf\u8bbe\u8ba1\u9898\u8003\u7684\u5c31\u662f\u4f60\u601d\u7ef4\u4e25\u8c28\u903b\u8f91\u7f1c\u5bc6\u7684\u80fd\u529b\uff0c\u53e6\u5916\u5bf9\u5404\u79cd\u5206\u5e03\u5f0f\u3001\u9ad8\u53ef\u7528\u67b6\u6784\u7684\u719f\u6089\u7a0b\u5ea6\u3002<br \/>\u6211\u4e5f\u4ece\u6765\u6ca1\u8bbe\u8ba1\u8fc7\u8fd9\u4e48\u5927\u91cf\u7ea7\u7684\u4ea7\u54c1\uff0c\u5982\u679c\u662f\u6211\u7684\u8bdd\u53ef\u80fd\u4f1a\u8fd9\u6837\u8bbe\u8ba1\uff1a<br \/>0 \u3001\u9996\u5148\u5e94\u8be5\u4e00\u4e2a\u8ba2\u5355\u53f7\u5bf9\u5e94\u4e00\u4e2a\u7528\u6237\u5427\uff0c\u4e00\u4e2a\u7528\u6237\u53ef\u80fd\u5bf9\u5e94\u591a\u4e2a\u8ba2\u5355\uff0c\u5c31\u662f\u6709\u4e2a\u4e00\u5bf9\u591a\u7684\u5173\u7cfb\u3002<br \/>1 \u3001\u6839\u636e\u7528\u6237 ID \u5782\u76f4\u5207\u5206\uff0c\u53ef\u4ee5 hash \u5230\u4e0d\u540c\u7684\u673a\u5668\u4e0a\u5904\u7406\uff0cRedis Memcachee \u5565\u7684\u603c\u4e0a\u3002<br \/>2 \u3001\u5173\u8054\u5ea6\u9ad8\u7684\u6570\u636e\u653e\u5230\u540c\u4e00\u53f0\u7269\u7406\u673a\u6216\u8005\u81f3\u5c11\u540c\u4e00\u4e2a\u673a\u623f\u91cc\uff0c\u51cf\u5c11\u8de8\u533a\u57df\u7684\u67e5\u8be2\u3002<\/p>\n<p>\u66f4\u8be6\u7ec6\u7684\u65b9\u6848\u53ef\u4ee5\u53c2\u8003\u8fd9\u4e2a\uff1a<br \/>[\u767e\u4ebf\u7ea7\u5fae\u4fe1\u7ea2\u5305\u7684\u9ad8\u5e76\u53d1\u8d44\u91d1\u4ea4\u6613\u7cfb\u7edf\u8bbe\u8ba1\u65b9\u6848]( https:\/\/www.infoq.cn\/article\/2017hongbao-weixin)                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647694\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Vegetable <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6545\u610f\u8bf4\u8fd9\u4e48\u5927\u7684\u6570\u636e\u89c4\u6a21\uff0c\u5e94\u8be5\u662f\u4e3a\u4e86\u63d0\u793a\u4f60\u8fd9\u4e2a\u5fc5\u987b\u505a\u5206\u5e03\u5f0f\u5904\u7406\u5427\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647695\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : keepeye <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0a tidb                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647696\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : winnie2012 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528\u6237\u8868\u589e\u957f\u6162\uff0c\u5206\u5e03\u5f0f\u5b58\u50a8\u5373\u53ef\u3002<br \/>\u8ba2\u5355\u8868\u5206\u51b7\u70ed\u6570\u636e\uff0c\u70ed\u6570\u636e\u6309\u7528\u6237\u5206\u5e03\u5f0f\u5b58\u50a8\uff0c\u51b7\u6570\u636e\u653e OLDP \u5206\u5e03\u5f0f\u6570\u636e\u5e93\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647697\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vnex <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @luckyrayyy \u6839\u636e ID hash \u5230\u4e0d\u540c\u7684 \u673a\u5668\u4e0a\uff0c\u8981\u600e\u4e48\u6269\u5bb9\uff0c\u4e00\u6269\u5bb9\u4e0d\u5c31 hash \u5230\u522b\u7684\u673a\u5668\u4e0a\u4e86\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647698\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vnex <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @luckyrayyy \u8b6c\u5982\u641e\u6d3b\u52a8\uff0c\u7528\u6237\u8d85\u51fa\u9884\u60f3\u7684\u91cf\uff0c\u80fd\u4e0d\u80fd\u4e34\u65f6\u52a0\u673a\u5668\uff0c\u8fd8\u662f\u8981\u7b49\u673a\u6269\u5bb9\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647699\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vnex <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7b49\u673a\u6269\u5bb9\uff1f \u505c\u673a\u6269\u5bb9                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647700\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : luckyrayyy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vnex \u4fdd\u8bc1\u80fd hash \u5230\u539f\u673a\u5668\u4e0a\u5c31\u884c\u5457\uff0c\u4e00\u81f4\u6027 hash\uff0c\u6216\u8005\u865a\u62df\u8282\u70b9\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647701\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Vegetable <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vnex \u6839\u636e\u7528\u6237 ID \u5206\u7247\u7684\u8bdd\uff0c\u53ef\u4ee5\u8003\u8651\u4e0d\u7528 Hash\uff0c\u6839\u636e ID \u7684\u81ea\u589e\u5c5e\u6027\u6216\u8005 ct \u6765\u5206\u7247\uff0c\u907f\u514d\u65b0\u589e\u6570\u636e\u4f4d\u7f6e\u4e0d\u786e\u5b9a\uff0c\u6269\u5bb9\u5f71\u54cd\u5b58\u91cf\u6570\u636e\u50a8\u5b58\u4f4d\u7f6e\u7684\u95ee\u9898\uff0c\u4f46\u662f\u8fd9\u6837\u53c8\u4f1a\u51b7\u70ed\u4e0d\u5747\u3002<br \/>\u6309\u7167\u7528\u6237 ID \u5206\u7247\u672c\u8eab\u5c31\u662f\u4e00\u4e2a\u53cd\u76f4\u89c9\u7684\u8bbe\u8ba1\uff0c\u53ea\u662f\u9488\u5bf9\u9898\u9762\u9700\u6c42\u505a\u51fa\u7684\u8bbe\u8ba1\u5427\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647702\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vnex <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @luckyrayyy \u4e00\u81f4\u6027 hash \u5728\u52a0\u51cf\u8282\u70b9\u7684\u65f6\u5019\uff0c\u4e5f\u4f1a\u6709\u5c11\u90e8\u5206\u7684\u6570\u636e\u843d\u5230\u522b\u7684\u8282\u70b9\u4e0a\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647703\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vnex <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Vegetable ct \u662f\u4ec0\u4e48 create time?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647704\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : luckyrayyy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vnex \u90a3\u5c31\u8fc1\u79fb\u6570\u636e\u5457\uff0c\u5148\u590d\u5236\u6570\u636e\u8fc7\u53bb\uff0c\u518d\u628a\u4e4b\u524d\u7684\u5220\u6389\uff0c\u7136\u540e\u518d\u542f\u7528\u65b0\u7684\u8282\u70b9\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647705\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vnex <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @luckyrayyy \u5514\uff0c\u4f60\u8fd9\u4e2a\u5df2\u7ecf\u5230\u6301\u4e45\u5c42\u4e86\uff0c\u6211\u662f\u95ee\uff0c\u5904\u7406\u8bf7\u6c42\u7684\u65f6\u5019\uff0c\u5c06\u540c\u4e00\u4e2a\u7ea2\u5305 ID \u4e32\u884c\u5230\u540c\u4e00\u4e2a\u903b\u8f91\u8282\u70b9\uff0c\u7136\u540e\u8fd9\u79cd\u60c5\u51b5\u8981\u600e\u4e48\u52a8\u6001\u6269\u5bb9                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647706\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : luckyrayyy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vnex \u6211\u6ca1\u592a\u660e\u767d\u4ec0\u4e48\u610f\u601d&#8230;\u6211\u8bbe\u60f3\u7684\u5c31\u8ddf Redis \u96c6\u7fa4\u7c7b\u4f3c\uff0c\u6269\u5bb9\u4e5f\u662f\u4e00\u6837\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647707\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vnex <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @luckyrayyy \u591a\u4e2a\u4eba\u62a2\u7ea2\u5305\uff0c\u7136\u540e\u8fd9\u4e9b\u7528\u6237\u7684\u62a2\u7684\u7ea2\u5305 ID \u662f\u540c\u4e00\u4e2a\uff0c\u8fde\u63a5\u5c42\u6839\u636e\u7ea2\u5305 ID hash \u5230\u540c\u4e00\u4e2a\u903b\u8f91\u8282\u70b9\uff0c\u7531\u903b\u8f91\u8282\u70b9\u8fdb\u884c\u4e32\u884c\u5904\u7406\uff0c\u90a3\u4e48\u5982\u4f55\u5bf9\u903b\u8f91\u8282\u70b9\u8fdb\u884c\u6269\u5bb9\uff0c\u56e0\u4e3a\u6269\u5bb9\u7684\u65f6\u5019\uff0c \u7ea2\u5305 ID \u53ef\u80fd hash \u5230\u522b\u7684\u903b\u8f91\u8282\u70b9\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647708\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : woodensail <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vnex \u4ee5\u524d\u540e\u7aef\u7684\u540c\u4e8b\u505a\u8fc7\u8fd9\u79cd\u9700\u6c42\u3002<\/p>\n<p>\u4f3c\u4e4e\u662f\u8fd9\u6837\uff1a\u4f7f\u7528 ng \u6765\u8fdb\u884c\u6d41\u91cf\u5206\u53d1\u3002<br \/>\u6267\u884c\u6269\u5bb9\u65f6\uff0c\u5148\u628a\u65b0\u96c6\u7fa4\u8fdb\u884c\u9884\u70ed\uff0c\u6309\u914d\u7f6e\u6587\u4ef6\u5c06\u7279\u5b9a id \u8303\u56f4\u7684\u6570\u636e\u4ece\u8001\u96c6\u7fa4\u590d\u5236\u5230\u65b0\u96c6\u7fa4\u3002\uff08\u5305\u62ec\u65b0\u7684\u5199\u5165\uff09<br \/>\u9884\u70ed\u5b8c\u6bd5\u540e ng \u5207\u5230\u65b0\u89c4\u5219\uff0c\u90e8\u5206 id \u6bb5\u6253\u5230\u8001\u96c6\u7fa4\uff0c\u90e8\u5206 id \u6bb5\u6253\u5230\u65b0\u96c6\u7fa4\uff0c\u96c6\u7fa4\u5185\u90e8\u518d\u5206\u7247\uff0c\u4ece\u800c\u5e73\u8861\u65b0\u8001\u96c6\u7fa4\u7684\u8d1f\u8f7d<\/p>\n<p>\u5927\u6982\u662f\u8fd9\u6837\u5427\uff0c\u6211\u53ea\u662f\u8ddf\u4ed6\u4eec\u804a\u5929\u7684\u65f6\u5019\u542c\u8bf4\u8fc7\uff0c\u5177\u4f53\u7ec6\u8282\u4e0d\u6e05\u695a\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647709\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : p2pCoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u8003\u8651\u7528\u672c\u5730 map<br \/>\u628a\u7528\u6237 id-\u8ba2\u5355 id \u7684\u62fc\u63a5\u5b57\u7b26\u4e32\u53d6 murmurhash\uff0c\u53ef\u4ee5\u7528 48 \u4f4d\u6216\u8005 64 \u4f4d\u7684<br \/>\u6211\u5728\u9879\u76ee\u4e2d\u66fe\u7528 64 \u4f4d\u6574\u578b\u5b58\u8fc7 50 \u4ebf-100 \u4ebf\u4e2a string key \u7684 map\uff0c\u628a string \u7528 murmurhash \u8f6c\u4e3a 64 \u4f4d\u6574\u578b\u540e\uff0c\u6d4b\u8fc7\u51e0\u6b21\uff0c\u78b0\u649e\u4e2a\u6570\u4e3a 0\uff0c\u5185\u5b58\u5360\u7528\u5728 \u4e00\u767e\u591a G \u5de6\u53f3\uff0cmap \u662f key \u4e3a 64 \u4f4d\u6574\u578b\uff0cvalue \u4f4d double\uff0c\u4f60\u8fd9\u4e2a\u95ee\u9898\uff0c\u5360\u7528\u7684\u5185\u5b58\u66f4\u5c0f<br \/>\u9ad8\u7aef\u70b9\uff0c\u53ef\u4ee5\u8003\u8651\u8bbe\u8ba1\u4e2a bitmap \u4e4b\u7c7b\uff0c\u8fd9\u6837\u67e5\u627e\u901f\u5ea6\u4f1a\u66f4\u5feb\uff0c\u8fd9\u79cd\u8fd8\u9700\u8981\u61c2\u7b97\u6cd5\u7684\u66f4\u7cbe\u7ec6\u7684\u8bbe\u8ba1<br \/>\u5b58\u5230 nosql \u91cc\u9762\u4f1a\u6162\u5f88\u591a,\u4f60\u627e\u51e0\u4e2a 128 \u6838 500G \u5185\u5b58\u7684\u673a\u5668\uff0c\u5b58\u4e2a\u672c\u5730 map\uff0c\u80af\u5b9a\u6bd4\u7528 nosql \u7684\u6570\u636e\u7ed3\u6784\u6027\u80fd\u9ad8\u51e0\u767e\u500d\u53ef\u80fd\u8fd8\u4e0d\u6b62\uff0c\u6210\u672c\u4e5f\u66f4\u4f4e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647710\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : woodensail <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u54c8\uff0c\u4e0a\u8fd9\u4e48\u4e00\u63d0\u6211\u5012\u662f\u60f3\u8d77\u4e86\u5e03\u9686\u8fc7\u6ee4\u5668\u3002\u4e0a\u8bf4\u7684 butmap \u5e94\u8be5\u5c31\u662f\u6307\u8fd9\u4e2a\u5427\u3002<br \/>\u8981\u662f\u5bf9\u6b63\u786e\u6027\u8981\u6c42\u4e0d\u9ad8\u7684\u8bdd\uff0c\u6309\u4e0a\u90a3\u6837 hash \u540e\u53d6 hash \u7ed3\u679c\u7684\u4e00\u90e8\u5206\u6765\u505a\u5e03\u9686\u8fc7\u6ee4\u5668\u3002\u53d6\u7684\u4f4d\u6570\u8d8a\u591a\uff0c\u9519\u8bef\u6982\u7387\u8d8a\u5c0f\uff0c\u5185\u5b58\u5360\u7528\u8d8a\u5927\u300240 \u4f4d\u7684\u5e03\u9686\u8fc7\u6ee4\u5668\u9700\u8981 4GB \u5185\u5b58\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647711\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : woodensail <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @woodensail \u554a\uff0c\u6709\u4e2a\u9519\u522b\u5b57\uff0cbitmap                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647712\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : woodensail <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u55ef\uff0c\u518d\u6269\u5c55\u4e00\u4e0b\uff0c\u5e03\u9686\u8fc7\u6ee4\u5668\u7684\u8bef\u62a5\u5176\u5b9e\u662f\u53ef\u4ee5\u89e3\u51b3\u7684\u3002\u7528\u4e24\u4e2a\u5e03\u9686\u8fc7\u6ee4\u5668\uff0c\u7b2c\u4e00\u4e2a\u7528\u6765\u6807\u8bb0\u78b0\u649e\uff0c\u8bfb\u53d6\u7684\u65f6\u5019\u5148\u68c0\u67e5\u8be5\u8fc7\u6ee4\u5668\uff0c\u5982\u679c\u53d1\u73b0\u78b0\u649e\u5c31\u7a7f\u900f\u5230\u6570\u636e\u5e93\u6216\u8005\u4e0b\u4e00\u7ea7\u7f13\u5b58\u624b\u6bb5\u3002\u6ca1\u53d1\u73b0\u78b0\u649e\u7684\u8bdd\uff0c\u5219\u8ddf\u636e\u7b2c\u4e8c\u4e2a\u8fc7\u6ee4\u5668\u6765\u5224\u65ad\u662f\u5426\u6709\u6548\u3002<\/p>\n<p>\u7136\u540e\u5199\u5165\u7684\u65f6\u5019\u4e00\u822c\u5f80\u7b2c\u4e8c\u4e2a\u8fc7\u6ee4\u5668\u5199\uff0c\u5982\u679c\u53d1\u73b0\u6253\u7b97\u5199\u7684\u4f4d\u7f6e\u5df2\u7ecf\u88ab\u5199\u8fc7\uff0c\u5219\u8ba4\u4e3a\u53d1\u751f\u78b0\u649e\uff0c\u53bb\u7b2c\u4e00\u4e2a\u8fc7\u6ee4\u5668\u5199\u78b0\u649e\u6807\u8bb0\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647713\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : egglin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ES \u5e94\u8be5\u4e0d\u9519                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647714\" 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>                                                             \u4e00\u4e2a\u7528\u6237\u53ef\u80fd\u6709\u591a\u4e2a\u8ba2\u5355\uff0c\u4f46\u662f\u4e00\u4e2a\u8ba2\u5355\u53ea\u80fd\u5c5e\u4e8e 1 \u4e2a\u7528\u6237\u3002 \u800c\u4e14\u8ba2\u5355\u662f\u767e\u4ebf\u7ea7\uff0c\u8fd8\u6bcf\u5929\u589e\u91cf\u66f4\u65b0\u3002\u90a3\u4e48\u611f\u89c9\u5e38\u89c4\u6570\u636e\u5e93\u5e94\u8be5\u6ee1\u8db3\u4e0d\u4e86\u8fd9\u4e2a\u9700\u6c42\u3002 <\/p>\n<p>\u5177\u4f53\u7684\u5b58\u50a8\uff0c\u53ef\u4ee5\u8003\u8651\u7528 HBase\uff0c\u7528 \u7528\u6237 id+\u8ba2\u5355 id\uff0c\u4f5c\u4e3a rowkey \u8fdb\u884c\u4fe1\u606f\u5b58\u50a8\u3002<\/p>\n<p>1.\u67e5\u770b \u7528\u6237 id-\u8ba2\u5355 id \u7ec4\u5408\u662f\u5426\u6709\u6548\u65f6\u3002\u5982\u679c\u5185\u5b58\u5168\u91cf\u5efa\u6a21\u5b58\u50a8\uff0c\u5e94\u8be5\u662f\u8d44\u6e90\u8981\u6c42\u86ee\u9ad8\u7684\u3002\u53ef\u4ee5\u8003\u8651\u7528\u5e03\u9686\u8fc7\u6ee4\u5668\u3002\u56e0\u4e3a\u5c5e\u4e8e\u7528\u6237 1 \u7684\u8ba2\u5355 111\uff0c\u6c38\u8fdc\u90fd\u5c5e\u4e8e\u7528\u6237 1\uff0c\u5177\u6709\u4e0d\u53d8\u6027\u3002\u6240\u4ee5\u5e03\u9686\u8fc7\u6ee4\u5668\uff0c\u9002\u5408\u8fd9\u79cd\u573a\u666f\uff0c\u53ef\u4ee5\u4e00\u76f4\u53e0\u52a0\u3002 \u901a\u8fc7\u7b2c\u4e00\u5c42\u8fc7\u6ee4\uff0c\u5feb\u901f\u8fc7\u6ee4\u51fa\u6765\u4e0d\u80fd vaild \u7684 pair \u3002<\/p>\n<p>2.\u9274\u4e8e\u5e03\u9686\u8fc7\u6ee4\u5668\u7684\u8bef\u62a5\u7684\u7279\u70b9\u3002\u4e0d\u5408\u89c4\u7684 pair \u4f1a\u6709\u6f0f\u7f51\u4e4b\u9c7c\uff0c\u4f46\u662f\u5230\u8fd9\u4e00\u5c42\u6570\u91cf\u4f1a\u5f88\u5c11\u4e86\u3002\u7ec4\u88c5\u8fd9\u4e9b pair\uff0c\u505a\u6210 TreeSet\uff0c\u627e\u5230 rowkey \u7684\u4e0a\u754c\u548c\u4e0b\u754c\uff0c\u7136\u540e\u4f7f\u7528 HBase \u7684 OnlyRawKey \u7684 Scanner \u7684 Filter\uff0c\u53ea\u626b\u63cf rowkey \u3002\u56e0\u4e3a rowkey \u672c\u6765\u662f b \u6811\u7684\uff0c\u7ebf\u6027\u626b\u63cf\u7684\u65f6\u5019\uff0c\u5224\u65ad rowkey \u662f\u5426\u5728 TreeSet \u91cc\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647715\" 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>                                                             \u4e0a\u9762\u7684\u7b2c\u4e8c\u53e5\u6253\u9519\u4e86\u3002\u662f\u5408\u89c4\u7684 pair \u4f1a\u6709\u6f0f\u6d1e\u4e4b\u9c7c\u3002 \u8fc7\u6ee4\u5668\u8bf4\u662f\u5408\u89c4\u7684\uff0c\u5176\u5b9e\u53ea\u662f\u78b0\u649e\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647716\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : woodensail <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u53c8\u53bb\u67e5\u4e86\u4e0b\u5e03\u9686\u8fc7\u6ee4\u5668\u7684 wiki \u3002\u7b97\u4e86\u4e0b\u8bef\u62a5\u7387\u3002<br \/>\u6309 4GB \u7684\u8fc7\u6ee4\u5668\u5b58\u50a8 100 \u4ebf\u6761\u6570\u636e\u6765\u7b97\uff0c\u5982\u679c\u662f\u6700\u7b80\u5355\u7684\u53ea\u7528 1 \u4e2a hash\uff0c\u5219\u8bef\u5224\u7387\u7ea6\u4e3a 0.01 \uff1b<br \/>\u800c\u7406\u8bba\u6700\u4f73\u503c\u662f\u7528\u7ea6 70 \u4e2a hash\uff0c\u6b64\u65f6\u8bef\u62a5\u7387\u662f 1e-23 \u3002\u78b0\u649e\u6982\u7387\u5fae\u4e4e\u5176\u5fae\u3002<br \/>\u4e0d\u8fc7 70 \u4e2a hash \u4ee3\u4ef7\u6709\u4e9b\u5927\uff0c\u53ef\u4ee5\u6298\u4e2d\u4e00\u4e0b\uff0c10 \u4e2a hash \u65f6\u8bef\u62a5\u7387 6e-11\uff0c5 \u4e2a hash \u65f6\u8bef\u62a5\u7387 2.8e-7 \u3002\u4e2a\u4eba\u8ba4\u4e3a 5 \u4e2a hash \u662f\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\uff0c\u7a7f\u900f\u7f13\u5b58\u7684\u6982\u7387\u4e0d\u7b97\u5927\uff0c\u8ba1\u7b97\u6548\u7387\u4e5f\u4e0d\u7b97\u592a\u4f4e\u3002<\/p>\n<p>\u6240\u4ee5\u6700\u7ec8\u65b9\u6848 100 \u4ebf\u6761\u6570\u636e\uff0c\u4f7f\u7528\u53cc\u5e03\u9686\u8fc7\u6ee4\u5668\u4e00\u5171\u6d88\u8017 8GB \u5185\u5b58\uff0chash \u6570\u91cf 5\uff0c\u6709\u4e0d\u5230\u767e\u4e07\u5206\u4e4b\u4e00\u7684\u6982\u7387\u88ab\u7a7f\u900f\u3002\u8fd8\u7b97\u53ef\u4ee5\u5427\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647717\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : woodensail <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u5bf9\uff0c\u4e0a\u9762\u8fd9\u4e2a\u65b9\u6848\u603b\u78b0\u649e\u6570\u91cf\u5927\u6982\u5728 1 \u4e07\u6761\uff0c\u968f\u4fbf\u627e\u70b9\u4ec0\u4e48\u4e1c\u897f\u5b58\u4e0b\u5c31\u597d\u3002\u6ca1\u5fc5\u8981\u4e3a\u4e86\u8bb0\u5f55\u78b0\u649e\u989d\u5916\u518d\u5f00 4GB \u5185\u5b58\u3002<br \/>\u751a\u81f3\u5982\u679c\u628a hash \u6570\u91cf\u63d0\u5347\u5230 10\uff0c\u90a3\u4e48\u78b0\u649e\u6570\u91cf\u7684\u671f\u671b\u503c\u5e94\u8be5\u4e0d\u8d85\u8fc7 10 \u4e2a\u2026\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647718\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vnex <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @woodensail <\/p>\n<p>\u4f60\u662f\u8bf4\uff0c\u5bf9 ID \u8fdb\u884c\u65b0\u65e7\u5206\u7c7b\u5904\u7406\uff0c\u8001\u7684 ID\uff0c \u8d70\u65e7\u7684\u6620\u5c04\uff0c\u65b0\u7684 ID \u8d70\u65b0\u7684\u6620\u5c04\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647719\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vnex <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @woodensail <br \/>@luckyrayyy \u90a3\u53e6\u5916\u4e00\u4e2a\u95ee\u9898\u662f\uff0c\u6269\u5bb9\u540e\uff0c\u5cf0\u503c\u8fc7\u540e\uff0c\u600e\u4e48\u51cf\u5c11\u673a\u5668\u914d\u7f6e\uff0c\u56e0\u4e3a\u50cf\u5fae\u4fe1\u7ea2\u5305\uff0c\u53ef\u4ee5\u5b58\u6d3b 24 \u5c0f\u65f6\uff0c\u5982\u679c\u4f60\u4f7f\u7528\u4e86\u65b0\u7684 ID hash \u65b9\u6848\uff0c\u5982\u679c\u5cf0\u503c\u8fc7\u540e\uff0c\u51cf\u5c11\u673a\u5668\uff0c\u90a3\u4e48 hash \u65b9\u6848\u4f1a\u51fa\u73b0\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647720\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : MinQ <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u89c9\u5f97\u5e94\u8be5\u662f Hive+ElasticSearch \u5427\uff1f Hive \u8d1f\u8d23\u5b58\u6570\u636e\uff0cElasticSearch \u8d1f\u8d23\u70ed\u6570\u636e\u641c\u7d22\uff0c\u51b7\u6570\u636e\u76f4\u63a5 Hive SQL \uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647721\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : palfortime <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8ba2\u5355 id \u628a\u65e5\u671f\u5e26\u4e0a\uff0c\u518d\u7528\u6309\u5929\u5206\u8868\u4e0d\u5c31\u53ef\u4ee5\u5417\uff1f\u7136\u540e\u518d\u6309 id hash \u5206\u591a\u4e00\u6b21\u3002\u53ea\u662f\u8981\u68c0\u67e5\u8ba2\u5355 id \u4e0e\u7528\u6237 id \u662f\u5426\u5339\u914d\uff0c\u4e0d\u4e00\u5b9a\u8981\u6309\u7528\u6237 id \u67e5\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647722\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : woodensail <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vnex \u4e0d\u662f\uff0c\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u6bd4\u5982\u6211\u8ba1\u5212\u6269\u5bb9\u5230\u539f\u6765\u7684 5 \u500d\uff0c\u4e5f\u5c31\u662f\u65b0\u96c6\u7fa4\u5927\u5c0f\u662f\u65e7\u96c6\u7fa4\u7684 4 \u500d\u3002<br \/>\u90a3\u4e48\u6211\u5c31\u5728\u914d\u7f6e\u91cc\u9762\u5199\u4e0b id 0-1 \u7ed3\u5c3e\u7684\u8fdb\u8001\u96c6\u7fa4\uff0cid2-9 \u7ed3\u5c3e\u7684\u8fdb\u65b0\u96c6\u7fa4\u3002\u7136\u540e\u628a\u8001\u96c6\u7fa4\u4e2d\u6240\u6709 2-9 \u7684\u6570\u636e\u5f80\u65b0\u96c6\u7fa4\u590d\u5236(\u590d\u5236\u8fc7\u7a0b\u4e2d\u7684\u65b0\u6570\u636e\u9700\u8981\u5728\u4e24\u8fb9\u90fd\u843d)\u3002<br \/>\u7b49\u9884\u70ed\u5b8c\u6210\u540e\uff0cng \u628a\u6240\u6709 2-9 \u7ed3\u5c3e\u7684\u6d41\u91cf\u5bfc\u5411\u65b0\u96c6\u7fa4\u3002\u7136\u540e\u8001\u96c6\u7fa4\u5c31\u53ef\u4ee5\u628a 2-9 \u76f8\u5173\u7684\u6570\u636e\u5220\u6389\u4e86\u3002<\/p>\n<p>\u5728\u7f29\u5bb9\u7684\u65f6\u5019\uff0c\u628a\u65b0\u96c6\u7fa4\u4e2d\u7684\u6570\u636e\u5168\u90e8\u5199\u56de\u8001\u96c6\u7fa4\uff0c\u7136\u540e\u6d41\u91cf\u5012\u56de\uff0c\u9500\u6bc1\u65b0\u96c6\u7fa4\u5373\u53ef\u3002<\/p>\n<p>\u8fd9\u5957\u65b9\u6848\u4e3b\u8981\u7528\u4e8e\u5927\u4fc3\u4e34\u65f6\u6269\u5bb9\uff0c\u5927\u4fc3\u7ed3\u675f\u540e\u8fd8\u4f1a\u5230\u539f\u72b6\u7684\u573a\u666f\uff0c\u5bf9\u4e8e\u9700\u8981\u8ddf\u636e\u8d1f\u8f7d\u9891\u7e41\u6269\u7f29\u5bb9\u7684\u573a\u666f\u53ef\u80fd\u4e0d\u5408\u9002(\u6bd5\u7adf\u6d77\u91cf\u6570\u636e\u6765\u56de\u5199\u4e0d\u592a\u73b0\u5b9e)<\/p>\n<p>\u6700\u540e\uff0c\u8bf4\u771f\u7684\u6211\u89c9\u5f97\u5e03\u9686\u8fc7\u6ee4\u5668\u7684\u65b9\u6848\u8d5e\u7206\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647723\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : reus <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u5c31\u5efa\u4e2a\u7d22\u5f15\u7684\u4e8b\u60c5\u561b\uff0c\u7528 rocksdb \u5b58\u5c31\u884c\u4e86\uff0c\u5355\u7ebf\u7a0b\u8bfb\u81f3\u5c11\u4e00\u4e07 tuple\/sec\uff0c128 \u7ebf\u7a0b\u5e76\u53d1\uff0c\u4e00\u5343\u4e07\u4e5f\u5c31\u5341\u51e0\u79d2\u3002\u5185\u5b58\u8d8a\u5927\u8d8a\u597d\uff0c\u78c1\u76d8\u8d8a\u5feb\u8d8a\u597d\u3002<br \/>\u903b\u8f91\u592a\u7b80\u5355\uff0c\u6839\u672c\u4e0d\u9700\u8981\u590d\u6742\u6280\u672f\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647724\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yuk1no <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @p2pCoder \u8c22\u8c22\u6307\u5bfc                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647725\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yuk1no <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ic2y \u8c22\u8c22\u6307\u5bfc                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647726\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yuk1no <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @MinQ \u8bf7\u95ee\u5982\u4f55\u5224\u65ad\u51b7\u70ed\u6570\u636e\u5462\uff0c\u5982\u679c\u8981\u5224\u65ad\u51b7\u6570\u636e\uff0cHive SQL \u901f\u5ea6\u5e94\u8be5\u6bd4\u8f83\u6162\u5427<\/p>\n<p>@reus \u8c22\u8c22\u6307\u5bfc\uff0c\u6ca1\u6709\u4e86\u89e3\u8fc7 rocksdb\uff0c\u6211\u5148\u53bb\u5b66\u4e60\u4e00\u4e0b                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647727\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : insert000 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6301\u7eed\u5173\u6ce8\uff0c\u83dc\u9e21\u7b49\u4e00\u4e2a\u6807\u51c6\u7b54\u6848\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647728\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hanhan13 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u8d77\u6765\u50cf\u662f\u4e00\u9053\u5206\u5e03\u5f0f\u7cfb\u7edf\u8bbe\u8ba1\u9898\u3002\u9996\u5148\u7b97\u4e00\u4e0b\uff0c\u4e00\u767e\u4ebf\u8ba2\u5355 id \u548c\u4e00\u4ebf\u7528\u6237 id \u4e00\u5171 10G \u5de6\u53f3(\u5047\u8bbe\u6bcf\u4e2a id \u5360 8byte)\uff0c\u6570\u636e\u91cf\u4e0d\u7b97\u5927\uff0c\u5c31\u7b97\u6bcf\u5929\u90fd\u65b0\u589e\u4e00\u767e\u4ebf\u8ba2\u5355\uff0c5 \u5e74\u7684\u5b58\u50a8\u9700\u6c42\u4e5f\u4e0d\u8fc7 20T \u5de6\u53f3\u3002\u4f46\u95ee\u9898\u5728\u4e8e\u5e76\u53d1\u5f88\u9ad8\uff0c\u53ef\u4ee5\u7c97\u7565\u8ba4\u4e3a\u7cfb\u7edf\u7684 QPS \u8981\u6c42\u8fbe\u4e3a\u4e00\u5343\u4e07\u3002<br \/>\u8bbe\u8ba1\u601d\u8def\u5982\u4e0b\uff1a<br \/>1. \u7cfb\u7edf\u67b6\u6784\u3002\u81ea\u4e0a\u800c\u4e0b\u5206\u4e3a 4 \u5c42\uff1a\u7f51\u5173\u5c42&#8212;&gt;\u5e94\u7528\u5c42&#8212;&gt;\u7f13\u5b58\u5c42&#8212;&gt;\u6570\u636e\u5c42\u3002<br \/>2. \u5b58\u50a8\u7cfb\u7edf\u3002 \u9996\u5148\u8003\u8651\u6570\u636e\u6a21\u578b\uff0c\u7cfb\u7edf\u91cc\u6d89\u53ca\u5230\u7684\u6570\u636e\u4e3a\u7528\u6237 id \u548c\u8ba2\u5355 id\uff0c\u4e24\u8005\u4e3a\u4e00\u5bf9\u591a\u7684\u5173\u7cfb\u3002\u7531\u4e8e QPS \u7684\u9ad8\u9700\u6c42\u4ee5\u53ca\u65e0\u4e8b\u52a1\u9700\u6c42\uff0c\u5e94\u8be5\u4f18\u5148\u9009\u62e9 NoSQL \u3002\u9488\u5bf9\u4e00\u5bf9\u591a\u7684\u5173\u7cfb\uff0c\u53ef\u4ee5\u8003\u8651\u5217\u5b58\u50a8\u6570\u636e\u5e93\uff0c\u6bd4\u5982 HBase \u548c Cassandra \u3002\u6bcf\u4e2a\u7528\u6237\u5bf9\u5e94\u4e00\u884c\u6570\u636e\uff0c\u5927\u7ea6\u8fd9\u4e2a\u6837\u5b50\uff1auid(\u4e3b\u952e) | &#8220;orderid1, orderid2&#8230;&#8230;&#8221; \u3002\u5176\u6b21\u662f\u7f13\u5b58\u5c42\u7684\u8bbe\u8ba1\uff0c\u53ef\u4ee5\u4f7f\u7528 redis \u6216 memcached \u5bf9\u8bf7\u6c42\u7ed3\u679c\u8fdb\u884c\u7f13\u5b58\uff0c\u4f7f\u7528 LFU \u7b56\u7565\uff0c\u7f13\u5b58 20%\u7684\u6570\u636e(\u6839\u636e 28 \u539f\u5219)\uff0c\u5f53\u7136\u4e00\u5f00\u59cb\u8fd9\u5c0f\u6570\u636e\u91cf\uff0c\u5168\u7f13\u5b58\u4e5f\u6ca1\u5173\u7cfb\u3002<br \/>3. \u6269\u5c55\u6027\u3002\u9ad8 QPS \u4ee5\u53ca\u7cfb\u7edf\u6301\u7eed\u589e\u957f\u51b3\u5b9a\u4e86\u5fc5\u987b\u8003\u8651\u53ef\u6269\u5c55\u3002\u6269\u5c55\u4e3b\u8981\u662f\u4e24\u70b9\uff1ai). \u5206\u8868\u5206\u5e93\u5206\u7247\uff1b ii). \u8bf7\u6c42\u7684\u8d1f\u8f7d\u5747\u8861\u3002\u5bf9\u4e8e i\uff0c\u53ef\u4ee5\u8003\u8651\u6309\u7167 userid \u5bf9\u6570\u636e\u8fdb\u884c hash \u5206\u7247\uff0c\u8303\u56f4 hash \u548c\u4e00\u81f4\u6027 hash \u90fd\u53ef\u4ee5\u6ee1\u8db3\u8981\u6c42\uff0c\u4e00\u81f4\u6027 hash \u66f4\u4e07\u91d1\u6cb9\u4e00\u4e9b\u3002\u53ef\u4ee5\u8003\u8651\u76f4\u63a5\u505a 100 \u4e2a\u5206\u533a\uff0c\u524d\u671f\u53ef\u4ee5\u5c06\u6bcf 10 \u4e2a\u5206\u533a\u7269\u7406\u4e0a\u653e\u5728\u4e00\u8d77\uff0c\u540e\u671f\u9700\u6c42\u4e0a\u6765\u4e86\u518d\u8fc1\u79fb\u3002\u5bf9\u4e8e ii\uff0c\u4e0a\u9762\u63d0\u5230\u7684 4 \u5c42\u4e24\u4e24\u4e4b\u95f4\u90fd\u53ef\u4ee5\u6dfb\u52a0\u8d1f\u8f7d\u5747\u8861\uff0c\u76ee\u7684\u662f\u907f\u514d\u51fa\u73b0\u70ed\u70b9\uff0c\u4ee5\u53ca\u4fdd\u969c\u6bcf\u5c42\u529f\u80fd\u9ad8\u53ef\u7528\u3002<br \/>4. \u5bb9\u9519\u3002\u4e00\u662f\u7f13\u5b58\u5c42\u9700\u8981\u4f7f\u7528\u526f\u672c\uff0c\u4e3b\u8981\u7528\u6765\u5206\u62c5\u8bfb\u8bf7\u6c42\uff0c\u9632\u6b62\u6570\u636e\u5e93\u51fb\u7a7f\u3002\u4e8c\u662f\u5206\u533a\u7684\u6570\u636e\u5e93\u9700\u8981\u526f\u672c\uff0c\u4e3b\u8981\u662f\u4fdd\u5b58\u6570\u636e\uff0c\u4e5f\u80fd\u5206\u62c5\u8bfb\u8bf7\u6c42\u3002\u526f\u672c\u65b9\u6848\u4e00\u822c\u662f\u5355 master \u591a slavor\uff0c\u4fdd\u8bc1\u6700\u7ec8\u4e00\u81f4\u6027\u3002<br \/>\u5927\u81f4\u60f3\u5230\u8fd9\u4e48\u591a\uff0c\u6b22\u8fce\u5927\u4f6c\u4eec\u6279\u8bc4\u6307\u6b63\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647729\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hanhan13 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8c8c\u4f3c\u5fd8\u4e86\u5e94\u7528\u5c42\u7684\u8bbe\u8ba1\u3002\u5224\u65ad valid \u7684\u8bdd\uff0c\u6700\u7b80\u5355\u7c97\u66b4\u7684\u65b9\u6848\u662f\u76f4\u63a5\u5728\u5185\u5b58\u91cc\u904d\u5386 value\uff0c\u5047\u8bbe\u5e73\u5747\u6bcf\u4eba\u6709 1 \u4e07\u4e2a\u8ba2\u5355\u53f7\uff0c\u76f4\u63a5\u904d\u5386\u901f\u5ea6\u5df2\u7ecf\u8db3\u591f\u5feb\u4e86\u3002\u5982\u679c orderid \u6709\u89c4\u5f8b\u7684\u8bdd\uff0c\u6bd4\u5982\u6709\u65f6\u95f4\u987a\u5e8f\uff0c\u5c31\u53ef\u4ee5\u4e8c\u5206\u67e5\u627e\uff0c\u5e94\u8be5\u80fd\u5728\u5fae\u79d2\u7ea7\u641e\u5b9a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647730\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : woodensail <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yuk1no \u6211\u4e0a\u9762\u63d0\u4e86\u53ea\u6709\u53d1\u751f\u78b0\u649e\u624d\u9700\u8981\u53bb\u67e5\u8868\u3002\u4f60\u9700\u8981\u9996\u5148\u6821\u9a8c\u662f\u5426\u5728\u78b0\u649e\u8bb0\u5f55\u4e2d\uff0c\u5982\u679c\u5728\u5c31\u76f4\u63a5\u67e5\u8868\uff0c\u5982\u679c\u4e0d\u5728\uff0c\u5c31\u7528\u5e03\u9686\u8fc7\u6ee4\u5668\u53bb\u5224\u65ad\u3002<br \/>\u7136\u540e\u4e0a\u9762\u6211\u4e5f\u5217\u4e86\u4e0d\u540c\u53c2\u6570\u4e0b\u7684\u8fc7\u6ee4\u5668\u78b0\u649e\u6982\u7387\uff0c\u5df2\u7ecf\u5c0f\u5230\u53ef\u4ee5\u5ffd\u7565\u4e86\uff0c\u5bf9\u6027\u80fd\u5f71\u54cd\u51e0\u4e4e\u4e3a 0                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647731\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : p2pCoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yuk1no \u672c\u5730 map \u901f\u5ea6\u6bd4\u5199\u5165 nosql \u5feb\u5f88\u591a<br \/>\u56db\u5341\u6838\u673a\u5668\uff0c\u5f00 400 \u4e2a\u7ebf\u7a0b\u4ece hdfs \u62c9\u53bb 70 \u4ebf\u884c\u7684\u6570\u636e\u7684\uff0c\u5904\u7406\u5b57\u7b26\u4e32\uff0c\u5b58\u6210 long double \u7684 key value<br \/>\u4e0d\u8d85\u8fc7\u5341\u5206\u949f\uff0c\u5982\u679c\u662f\u5206\u533a\u589e\u91cf\uff0c\u5c31\u66f4\u5feb\u4e86<br \/>spark \u5206\u5e03\u5f0f \u5f00 100 \u4e2a executor \u5199\u5230 redis\uff0c\u4e0e\u5355\u673a\u7684\u672c\u5730 map \u5199\u5165\u76f8\u6bd4\uff0c\u901f\u5ea6\u8ddd\u79bb\u5dee\u8ddd\u4e5f\u5f88\u5927\uff0c\u8981\u662f hbase\uff0c\u5c31\u66f4\u6162\u4e86<br \/>\u8bfb\u7684\u901f\u5ea6\uff0c\u672c\u5730 map \u4e5f\u5feb\u7684\u591a<\/p>\n<p>\u6709\u6761\u4ef6\u7684\u8bdd\uff0c\u5efa\u8bae\u627e\u51e0\u53f0\u5927\u673a\u5668\u81ea\u5df1\u6298\u817e\uff0c\u505a benchamark                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647732\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : p2pCoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hanhan13 \u65b9\u5411\u6709\u70b9\u9519\u4e86\uff0c\u8fd9\u5176\u5b9e\u5e76\u4e0d\u662f\u4e2a\u5728\u7ebf\u7684\u670d\u52a1<br \/>\u4e00\u6b21\u67e5\u8be2\u5343\u4e07\u5bf9\u6570\u636e\uff0c\u8fd9\u5176\u5b9e\u662f\u4e2a\u6279\u5904\u7406\u7684\u63a5\u53e3<br \/>\u8f93\u5165\u548c\u8f93\u51fa\u90fd\u4e0d\u53ef\u80fd\u76f4\u63a5\u7528 rpc \u901a\u4fe1\u4f20\u8f93                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647733\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xy2020 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528\u6237\u548c\u8ba2\u5355\u662f\u4e00\u5bf9\u591a\uff0c\u4f46\u8ba2\u5355\u5bf9\u7528\u6237\u53ef\u4e0d\u662f\u4e00\u5bf9\u4e00\uff1a\u9700\u8981\u8003\u8651\u65b0\u4e1a\u52a1\u6a21\u5f0f\u7684\u9700\u8981\uff0c\u4f8b\u5982\u4ee3\u4ed8\u4e1a\u52a1\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647734\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tolerance <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ea\u662f\u786e\u8ba4\u6709\u6ca1\u6709\uff0c\u4e0a bloom filter                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647735\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : MinQ <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yuk1no \u6839\u636e\u8ba2\u5355\u751f\u6210\u65f6\u95f4\u505a\u5207\u5206\uff0c\u5176\u5b9e Hive SQL \u5728\u96c6\u7fa4\u73af\u5883\u4e0b\u901f\u5ea6\u4e0d\u6162\uff0c\u5927\u91cf\u6570\u636e\u8fd4\u56de\u6765\u5927\u6982\u9700\u8981\u51e0\u5206\u949f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1647736\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : MinQ <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yuk1no \u51b7\u70ed\u6570\u636e\u5224\u65ad\u5728\u66f4\u65b0\u7684\u65f6\u5019\u5904\u7406\uff0c\u65b0\u6570\u636e\u540c\u6b65\u8fdb es \u548c hive\uff0ces \u518d\u53bb\u9664\u8001\u6570\u636e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u9053\u9762\u8bd5\u9898\u7ed9\u6211\u6574\u61f5\u4e86\uff0c\u6c42\u6307\u5bfc \u8cc7\u6df1&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\/99077"}],"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=99077"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/99077\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=99077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=99077"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=99077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}