{"id":274945,"date":"2021-01-12T08:24:33","date_gmt":"2021-01-12T00:24:33","guid":{"rendered":"http:\/\/4563.org\/?p=274945"},"modified":"2021-01-12T08:24:33","modified_gmt":"2021-01-12T00:24:33","slug":"%e4%bd%bf%e7%94%a8-java-mysqlredis-%e5%ae%9e%e7%8e%b0%e4%b8%80%e4%b8%aa%e7%ae%80%e6%98%93%e7%9a%84%e7%b1%bb%e4%bc%bc%e9%9a%8f%e6%9c%ba%e7%9a%84%e6%95%b0%e6%8d%ae%e8%8e%b7%e5%8f%96%e7%ae%97%e6%b3%95","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=274945","title":{"rendered":"\u4f7f\u7528 Java +mysql+redis \u5b9e\u73b0\u4e00\u4e2a\u7b80\u6613\u7684\u7c7b\u4f3c\u968f\u673a\u7684\u6570\u636e\u83b7\u53d6\u7b97\u6cd5\uff0c\u6709\u54ea\u4e9b\u6bd4\u8f83\u597d\u7684\u65b9\u6848\uff1f\u76ee\u524d\u6211\u90fd\u6709\u70b9\u6000\u7591\u9700\u6c42\u662f\u4e0d\u662f\u6709\u95ee\u9898\u4e86\u3002"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4f7f\u7528 Java +mysql+redis \u5b9e\u73b0\u4e00\u4e2a\u7b80\u6613\u7684\u7c7b\u4f3c\u968f\u673a\u7684\u6570\u636e\u83b7\u53d6\u7b97\u6cd5\uff0c\u6709\u54ea\u4e9b\u6bd4\u8f83\u597d\u7684\u65b9\u6848\uff1f\u76ee\u524d\u6211\u90fd\u6709\u70b9\u6000\u7591\u9700\u6c42\u662f\u4e0d\u662f\u6709\u95ee\u9898\u4e86\u3002               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<h1>\u8bf4\u660e<\/h1>\n<p> <\/p>\n<p>\u2003\u2003\u516c\u53f8\u7684\u5c0f\u9879\u76ee\uff0c\u6ca1\u6709\u6253\u7b97\u4f7f\u7528\u641c\u7d22\u5f15\u64ce\u6216\u5927\u6570\u636e\u76f8\u5173\u7684\u6280\u672f\u3002<\/p>\n<h1>\u9996\u5148\u8bf4\u4e00\u4e0b\u4ea7\u54c1\u7684\u9700\u6c42\uff1a<\/h1>\n<p> <\/p>\n<p>\u2003\u2003\u76ee\u524d\u6709\u4e2a\u89c6\u9891\u5217\u8868\u67e5\u8be2\uff0c\u9700\u5b9e\u73b0\u6bcf\u6b21\u542f\u52a8 app \u83b7\u53d6\u7684\u7b2c\u4e00\u9875\u6570\u636e\u4e0d\u540c\u5373\u53ef\uff08\u5982\u679c\u4e0d\u505a\u5904\u7406\uff0c\u4f7f\u7528 mysql \u6bcf\u6b21\u83b7\u53d6\u6570\u636e\u7684\u987a\u5e8f\u90fd\u662f\u4e00\u5b9a\u7684\uff0c\u5219\u6bcf\u4e2a\u7528\u6237\u6bcf\u6b21\u542f\u52a8 app \u83b7\u53d6\u7684\u7b2c\u4e00\u9875\u6570\u636e\u90fd\u662f\u4e00\u6837\u7684\uff09\uff1b\u8fd8\u9700\u8981\u4fdd\u8bc1\u5728\u7528\u6237\u6ca1\u6709\u83b7\u53d6\u5b8c\u6240\u6709\u7684\u89c6\u9891\u524d\u4e0d\u518d\u83b7\u53d6\u4e4b\u524d\u5df2\u7ecf\u83b7\u53d6\u8fc7\u7684\u89c6\u9891\u3002\u5373\u4ee5\u6bcf\u4e2a\u7528\u6237\u4e3a\u5355\u4f4d\uff0c\u770b\u8fc7\u7684\u89c6\u9891\u4e0d\u80fd\u518d\u88ab\u67e5\u51fa\u6765\uff0c\u9664\u975e\u6570\u636e\u5e93\u7684\u6570\u636e\u90fd\u88ab\u8fd9\u4e2a\u7528\u6237\u83b7\u53d6\u8fc7\u4e00\u904d\u3002\u4ea7\u54c1\u4e0d\u5141\u8bb8\u6709\u91cd\u590d\u7684\u89c6\u9891\u5728\u7528\u6237\u6ca1\u6709\u770b\u5b8c\u6240\u6709\u89c6\u9891\u524d\u518d\u88ab\u67e5\u8be2\u51fa\u6765\uff0c\u65e0\u8bba\u6570\u636e\u91cf\u662f\u5927\u8fd8\u662f\u5c0f\u3002<\/p>\n<h1>\u4e3e\u4f8b\u8bf4\u660e<\/h1>\n<p> <\/p>\n<h2>\u5047\u8bbe<\/h2>\n<p>\u200b \u6570\u636e\u5e93\u603b\u6570\u636e\uff1a10 \u6761<br \/> \u200b id \u4e3a\u81ea\u589e\uff1a1-10<br \/> \u200b \u6bcf\u9875\u67e5\u8be2\uff1a4 \u6761<br \/> \u200b \u9ed8\u8ba4\u6392\u5e8f\u4e3a id \u987a\u5e8f\u81ea\u589e<\/p>\n<h2>\u5f53\u524d\u65b9\u6848<\/h2>\n<ul>\n<li>\u542f\u52a8 app \u67e5\u8be2\u7b2c\u4e00\u9875\u6570\u636e\u7684 id\uff1a1 2 3 4<\/li>\n<li>redis \u8bb0\u5f55\u5f53\u524d\u7528\u6237\u67e5\u8be2\u7684\u6700\u540e\u4e00\u6761\u6570\u636e\u7684 id\uff1auserId:4 \uff08\u6700\u540e\u4e00\u6761\u8bb0\u5f55 id \uff09<\/li>\n<li>\u91cd\u542f app \u67e5\u8be2\u7b2c\u4e00\u9875\u6570\u636e\u7684 id: \u6b64\u65f6\u5c31\u9650\u5236\u6570\u636e id &gt; 4 \u5373 5,6,7,8<\/li>\n<li>redis \u8bb0\u5f55\u5f53\u524d\u7528\u6237\u67e5\u8be2\u7684\u6700\u540e\u4e00\u6761\u6570\u636e\u7684 id\uff1auserId:8<\/li>\n<li>\u91cd\u542f app \u67e5\u8be2\u7b2c\u4e00\u9875\u6570\u636e\u7684 id: \u6b64\u65f6\u5c31\u9650\u5236\u6570\u636e id &gt; 8 \u5373 8,9,10 \u8fd8\u5dee\u4e00\u6761\u624d\u6ee1\u8db3\u4e00\u9875\uff0c\u56e0\u6b64\u4ece 1 \u5f00\u59cb\u53d6\uff0c\u6700\u7ec8\u8fd4\u56de\u7684\u6570\u636e\u4e3a 8,9,10,1<\/li>\n<li>redis \u8bb0\u5f55\u5f53\u524d\u7528\u6237\u67e5\u8be2\u7684\u6700\u540e\u4e00\u6761\u6570\u636e\u7684 id\uff1auserId:1<\/li>\n<li>&#8230;<\/li>\n<\/ul>\n<blockquote>\n<p>\u5982\u679c\u4fdd\u8bc1\u6bcf\u6b21\u8fd4\u56de\u7684\u6570\u636e id \u662f\u987a\u5e8f\u81ea\u589e\u7684\u90a3\u4e48\u662f\u6ca1\u95ee\u9898\u7684\uff0c\u5982\u679c\u662f\u5012\u5e8f\u81ea\u589e\uff0c\u4e5f\u6ca1\u95ee\u9898\uff0c\u6bcf\u6b21\u91cd\u542f app \u53d6\u6570\u636e\u7684\u65f6\u5019 id&gt;? \u53d8\u4e3a id&lt;? \u5373\u53ef\u3002<\/p>\n<\/blockquote>\n<h2>\u9047\u5230\u7684\u95ee\u9898<\/h2>\n<blockquote>\n<p>\u6709\u4e00\u4e2a\u7279\u6b8a\u60c5\u51b5\uff0c\u7ba1\u7406\u5458\u53ef\u4ee5\u8bbe\u7f6e\u7cbe\u9009\u89c6\u9891\uff0c\u53ef\u4ee5\u628a\u4e00\u4e9b\u89c6\u9891\u8fdb\u884c\u7f6e\u9876\uff0c\u90a3\u4e48\u83b7\u53d6\u7684\u6570\u636e\u5c31\u4e0d\u662f\u987a\u5e8f\u6216\u5012\u5e8f\u81ea\u589e\u7684\u4e86\uff0c\u987a\u5e8f\u5c31\u4f1a\u4e71\u3002<\/p>\n<p>\u800c\u4e14\u8fd8\u5b58\u5728\u589e\u5220\u64cd\u4f5c\u3002<\/p>\n<\/blockquote>\n<ul>\n<li>\u987a\u5e8f id \u4e3a\uff1a1 2 3 4 5 6 7 8 9 10<\/li>\n<li>\u540e\u53f0\u8bbe\u7f6e\u7cbe\u9009\u540e\u7684\u987a\u5e8f\u53d8\u4e3a\uff1a7 1 9 2 3 5 4 10 6 8<\/li>\n<li> \u5982\u679c\u518d\u6309\u7167\u5f53\u524d\u65b9\u6848\uff0c\u5c31\u4f1a\u51fa\u73b0\u95ee\u9898\uff1a\n<ul>\n<li>\u542f\u52a8 app \u67e5\u8be2\u7b2c\u4e00\u9875\u6570\u636e\u7684 id\uff1a7 1 9 2<\/li>\n<li>redis \u8bb0\u5f55\u5f53\u524d\u7528\u6237\u67e5\u8be2\u7684\u6700\u540e\u4e00\u6761\u6570\u636e\u7684 id\uff1auserId:2<\/li>\n<li> \u91cd\u542f app \u67e5\u8be2\u7b2c\u4e00\u9875\u6570\u636e\u7684 id\uff1a\u6b64\u65f6\u5c31\u9650\u5236\u6570\u636e id &gt; 4\n<ul>\n<li>\n<pre><code>  \u90a3\u4e48\u6570\u636e\u5e93\u7684\u7b5b\u9009\u540e\u7684\u6392\u5e8f\u53ca\u6570\u636e\u7ed3\u679c\u4e3a\uff1a7 9 5 10 6 8 <\/code><\/pre>\n<\/li>\n<li>\n<pre><code>  \u8fd4\u56de\u7684\u6570\u636e\u5c31\u53d8\u6210\u4e86\uff1a7 9 5 10 <\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>redis \u8bb0\u5f55\u5f53\u524d\u7528\u6237\u67e5\u8be2\u7684\u6700\u540e\u4e00\u6761\u6570\u636e\u7684 id\uff1auserId\uff1a10<\/li>\n<li> \u91cd\u542f app \u67e5\u8be2\u7b2c\u4e00\u9875\u6570\u636e id\uff1a\u6b64\u65f6\u5c31\u9650\u5236\u6570\u636e id &gt; 10\n<ul>\n<li>\n<pre><code>  \u90a3\u4e48\u6570\u636e\u5e93\u7684\u7b5b\u9009\u540e\u7684\u6392\u5e8f\u53ca\u6570\u636e\u7ed3\u679c\u4e3a\uff1a7 1 9 2 \uff08\u56e0\u4e3a&gt;10 \u7684\u6570\u636e\u6ca1\u6709\uff0c\u5c31\u4ece\u5934\u5f00\u59cb\u53d6\uff09 <\/code><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li>redis \u8bb0\u5f55\u5f53\u524d\u7528\u6237\u67e5\u8be2\u7684\u6700\u540e\u4e00\u6761\u6570\u636e\u7684 id\uff1auserId:2<\/li>\n<li>&#8230;<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<blockquote>\n<p>\u95ee\u9898\u4e5f\u5c31\u51fa\u73b0\u4e86\uff0c\u7b2c\u4e8c\u6b21\u542f\u52a8 app \u67e5\u8be2\u7684\u7b2c\u4e00\u9875\u6570\u636e id7 \u548c 9 \u8fd9\u4e24\u6761\u6570\u636e\u5c31\u548c\u4e0a\u4e00\u6b21\u542f\u52a8 app \u67e5\u8be2\u7684\u6570\u636e\u91cd\u590d\u4e86\uff1b\u5e76\u4e14 3 4 6 8 \u8fd9\u4e9b\u6570\u636e\u6c38\u8fdc\u4e0d\u4f1a\u88ab\u67e5\u8be2\u51fa\u6765\u3002\u95ee\u9898\u5c31\u662f\u8fd9\u6837\uff0c\u672a\u5b9e\u73b0\u4ea7\u54c1\u9700\u6c42\u3002 \uff08\u6570\u636e\u6ca1\u6709\u5168\u90e8\u67e5\u8be2\u8fc7\u4e00\u904d\uff0c\u8ddd\u4e0a\u4e00\u6b21\u67e5\u8be2\u5c31\u51fa\u73b0\u4e86\u91cd\u590d\u6570\u636e\uff09<\/p>\n<p>\u8fd9\u79cd\u60c5\u51b5\u548c\u6570\u636e\u91cf\u7684\u5927\u5c0f\u6ca1\u6709\u8f83\u5927\u5173\u7cfb\uff08\u5982\u679c\u628a\u81ea\u589e\u7684\u6700\u5927\u7684\u4e00\u4e2a id \u63a8\u8350\u5230\u4e86\u7b2c\u4e00\u9875\u7684\u6700\u540e\u4e00\u6761\uff0c\u90a3\u4e48\u5c31\u6c38\u8fdc\u53ea\u80fd\u67e5\u5230\u524d\u56db\u6761\u6570\u636e\uff09\u3002<\/p>\n<p><strong>\u8fd8\u9700\u8981\u8003\u8651\u7ba1\u7406\u5458\u8bbe\u7f6e\u7cbe\u9009\u6216\u8005\u8fdb\u884c\u589e\u5220\u540e\u7684\u6570\u636e\u7684\u5b9e\u65f6\u6027\u95ee\u9898\u3002\u8bbe\u7f6e\u7cbe\u9009\u548c\u589e\u5220\u64cd\u4f5c\u5982\u679c\u9891\u7e41\u6709\u54ea\u4e9b\u5f71\u54cd\u3002<\/strong><\/p>\n<\/blockquote>\n<h2>\u4ea7\u54c1\u63d0\u4f9b\u7684\u4e00\u4e2a\u65b9\u6848<\/h2>\n<blockquote>\n<p>\u5c06\u6bcf\u4e2a\u7528\u6237\u770b\u8fc7\u7684\u89c6\u9891\u8fdb\u884c\u8bb0\u5f55\uff0c\u7136\u540e\u5728\u67e5\u8be2\u7684\u65f6\u5019\u8fdb\u884c\u5254\u9664\uff0c\u5982\u679c\u6570\u636e\u4e0d\u591f\u4e00\u9875\u5c31\u4ece\u5934\u5f00\u59cb\u83b7\u53d6\u4e00\u6b21\uff1b\u8fd9\u79cd\u65b9\u5f0f\u5c31\u5fc5\u4e0d\u4f1a\u51fa\u73b0\u672a\u770b\u5b8c\u5c31\u91cd\u590d\u7684\u95ee\u9898\uff0c\u4f46\u662f\u6709\u4e25\u91cd\u7684\u6027\u80fd\u95ee\u9898\u3002<\/p>\n<\/blockquote>\n<ul>\n<li>\u987a\u5e8f id \u4e3a\uff1a1 2 3 4 5 6 7 8 9 10<\/li>\n<li>\u7b2c\u4e00\u6b21\u6570\u636e id\uff1a1 2 3 4<\/li>\n<li>redis \u8bb0\u5f55\u5f53\u524d\u7528\u6237\u5df2\u770b\u6570\u636e id\uff1auserid:1,2,3,4<\/li>\n<li>\u7b2c\u4e8c\u6b21\u6570\u636e id: not in(1,2,3,4) \u67e5\u51fa 5,6,7,8<\/li>\n<li>redis \u8bb0\u5f55\u5f53\u524d\u7528\u6237\u5df2\u770b\u6570\u636e id\uff1auserid:1,2,3,4\uff0c5,6,7,8<\/li>\n<li>\u7b2c\u4e09\u6b21\u6570\u636e id\uff1anot in(1,2,3,4\uff0c5,6,7,8) \u67e5\u51fa 9 10 1 2 \uff08\u6570\u636e\u4e0d\u591f\u4ece\u5934\u5f00\u59cb\u83b7\u53d6\uff09<\/li>\n<li>&#8230;<\/li>\n<\/ul>\n<blockquote>\n<p>\u903b\u8f91\u662f\u6ca1\u95ee\u9898\u7684\uff0c\u4f46\u662f\u6570\u636e\u91cf\u5c11\u8fd8\u597d\uff0c\u5982\u679c\u6570\u636e\u91cf\u5f88\u5927\u90a3\u4e48\u6027\u80fd\u5f71\u54cd\u5f88\u4e25\u91cd\u3002<\/p>\n<p><strong>\u5c0f\u58f0 bb\uff0c\u4ea7\u54c1\u544a\u8bc9\u6211\uff0c\u540c\u65f6\u6ee1\u8db3\u9700\u6c42\u548c\u6027\u80fd\u4e0d\u5c31\u662f\u5f00\u53d1\u5e94\u8be5\u5e72\u7684\u4e8b\u561b\uff0c\u6211\u5f88\u60f3\u8bf4\u60f3\u8981\u6027\u80fd\u548c\u9700\u6c42\u540c\u65f6\u6ee1\u8db3\u4e5f\u5f97\u770b\u9700\u6c42\u662f\u5426\u5408\u7406\u5427\u3002<\/strong><\/p>\n<p>\u5982\u679c\u6709 10w \u7528\u6237\u5e76\u4e14\u6709 10w \u6570\u636e\uff0c\u5728\u6700\u6781\u7aef\u7684\u60c5\u51b5\u4e0b\uff0c\u5047\u8bbe\u8fd9 10w \u7528\u6237\u6709 99999 \u6761\u6570\u636e\u90fd\u770b\u8fc7\u4e86\uff0c\u90a3\u4e48 redis \u5c31\u4f1a\u5b58\u50a8 10w*99999 \u7684\u6570\u636e\u91cf\uff0c\u5e76\u4e14\u5728\u67e5\u8be2 mysql \u7684\u65f6\u5019\u8bed\u53e5\u5c31\u53d8\u6210 not in(99999 \u4e2a id)\uff0c\u60f3\u60f3\u5c31\u6050\u6016\uff0c\u5982\u679c\u6570\u636e\u91cf\u66f4\u5927\u5462\uff1f<\/p>\n<p>\u4f46\u4ea7\u54c1\u8ba4\u4e3a\u4e0d\u8981\u8003\u8651\u8fd9\u4e48\u591a\u6211\u4eec\u7cfb\u7edf\u6700\u591a\u53ea\u6709\u51e0\u5343\u6761\u6570\u636e\uff0c\u7528\u6237\u91cf\u53ef\u80fd\u4f1a\u5f88\u591a\uff0c\u4f46\u5373\u4f7f\u8fd9\u6837\u6570\u636e\u91cf\u4e5f\u6bd4\u8f83\u5927 10w*\u51e0\u5343 \uff0c\u5e76\u4e14\u4e5f\u6ca1\u6709\u8fd9\u6837\u8bbe\u8ba1\u7cfb\u7edf\u7684\uff0c\u4e0d\u5408\u7406\u3002<\/p>\n<\/blockquote>\n<p> <\/p>\n<p>\u2003\u2003\u4e0d\u5c40\u9650\u4e8e\u76ee\u524d\u5df2\u6709\u7684\u8fd9\u4e9b\u65b9\u6848\u6216\u6280\u672f\u6808\uff08\u4f7f\u7528\u9664 java+mysql+redis \u4ee5\u5916\u7684\u6280\u672f\u4e5f\u53ef\uff09\uff0c\u53ea\u8981\u80fd\u5b9e\u73b0\u8fd9\u4e2a\u9700\u6c42\u7684\u76ee\u7684\u5c31\u53ef\u4ee5\uff1a\u4ee5\u7528\u6237\u4e3a\u5355\u4f4d\uff0c\u6570\u636e\u5728\u6ca1\u6709\u5168\u90e8\u67e5\u8be2\u8fc7\u4e00\u6b21\u7684\u60c5\u51b5\u4e0b\uff0c\u4e0d\u80fd\u51fa\u73b0\u91cd\u590d\u6570\u636e\u3002\u671f\u95f4\u9700\u8003\u8651\u7ba1\u7406\u5458\u53ef\u4ee5\u5728\u4efb\u610f\u65f6\u523b\uff0c\u6216\u5f88\u9891\u7e41\u7684\u8fdb\u884c\u7cbe\u9009\u548c\u589e\u5220\u64cd\u4f5c\u3002<\/p>\n<p>\u2003\u2003\u5404\u4f4d\u6709\u6ca1\u6709\u4ec0\u4e48\u597d\u7684\u60f3\u6cd5\uff0c\u4ee5\u53ca\u4f7f\u7528 java+mysql+redis \u7684\u6280\u672f\u6808\u80fd\u5426\u5b9e\u73b0\uff0c\u82e5\u4e0d\u80fd\u5b9e\u73b0\uff0c\u662f\u5426\u6709\u5176\u4ed6\u5b9e\u73b0\u65b9\u5f0f\uff1f<\/p>\n<p>\u2003\u2003\u518d\u63d0\u4e00\u53e5\uff0c\u8fd9\u4e2a\u4ea7\u54c1\u5b9e\u9645\u4e0a\u662f\u4e2a Android \u5f00\u53d1\u3002<\/p>\n<p>\u2003\u2003\u5e2e\u5fd9\u51fa\u51fa\u4e3b\u610f\u5427\uff0c\u5148\u8c22\u8c22\u5404\u4f4d\u4e86\uff0c\u6700\u8fd1\u5df2\u7ecf\u88ab\u6298\u78e8\u7684\u7126\u5934\u70c2\u989d\u4e86\uff01<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>51<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4911928\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : awanganddong <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5c06\u89c6\u9891\u5217\u8868\u6574\u4e2a\u52a0\u8f7d\u5230 redis \u5185\u5b58\u4e2d\uff0c<br \/>\u7136\u540e\u7528\u6237\u5df2\u6d4f\u89c8\u8bb0\u5f55\u4e5f\u653e\u5165\u5185\u5b58\u4e2d\uff0c\u6c42\u8fd9\u4e24\u8005\u4e4b\u95f4\u7684\u5dee\u96c6\u3002<br \/>\u7136\u540e\u5bf9\u5dee\u96c6\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<p>\u8fd9\u91cc\u8fb9\u65f6\u95f4\u4e0e\u7a7a\u95f4\u590d\u6742\u5ea6\u6ca1\u8003\u8651\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911929\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zxCoder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u95ee\u9898\u63cf\u8ff0\u6ca1\u770b\u61c2<\/p>\n<p>\u76f4\u63a5\u6309\u4f60\u539f\u6765\u7684\u65b9\u6848\u7136\u540e\u5b58\u4e0b\u6807\u4e0d\u884c\u5417<\/p>\n<p>1 2 3 4 5 6 7 8 9 10<br \/>7 1 9 2 3 5 4 10 6 8                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911930\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ylrshui <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7b28\u65b9\u6cd5\uff1a\u4e3a\u6bcf\u4e2a\u7528\u6237\u7ef4\u62a4\u4e00\u4e2a\u672a\u67e5\u8be2\u5217\u8868                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911931\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : MoYi123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7528 pg \u5c1d\u8bd5\u8fc7\u7c7b\u4f3c\u7684\u529f\u80fd\uff0c\u7528 hll \u5b58\u7528\u6237\u770b\u8fc7\u7684\u89c6\u9891\uff0c\u548c\u4f60\u7684\u9700\u6c42\u5e94\u8be5\u5dee\u4e0d\u591a https:\/\/github.com\/mmooyyii\/mmooyyii\/blob\/master\/docs\/database\/tiplist1.md                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911932\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lpts007 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0a\u6b21\u5728 V \u7ad9\u770b\u5230\u7684\uff0c\u7528\u6237 id \u54c8\u5e0c\u540e mod \u89c6\u9891\u6570\u91cf\uff0c\u6bcf\u6b21\u987a\u7740\u53d6\uff0c\u8bb0\u5f55\u4e0b\u6bcf\u4e2a\u7528\u6237\u5f53\u524d\u503c\u3002\u5b8c\u4e8b\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911933\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zieglar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             redis \u7684 sdiff \u547d\u4ee4\uff0c\u6bd4\u8f83 set \u8fd4\u56de\u5dee\u5f02\u503c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911934\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : renmu123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u63d0\u4f9b\u4e00\u4e2a\u975e\u6280\u672f\u7684\u65b9\u6cd5\u3002<br \/>\u9047\u5230\u8fd9\u79cd\u4e8b\u5c31\u76f4\u63a5\u603c\u56de\u53bb\uff0c\u5c31\u8bf4\u4ee5\u73b0\u5728\u6280\u672f\u6c34\u5e73\u505a\u4e0d\u5230\u8fd9\u4ef6\u4e8b\uff0c\u5982\u679c\u786c\u8981\u505a\u53ef\u80fd\u4f1a\u4ea7\u751f\u6027\u80fd\u95ee\u9898\u3002\u5982\u679c\u4ea7\u54c1\u8fd8\u5728\u5f3a\u786c\uff0c\u5c31\u628a\u4e24\u4eba\u7684\u804a\u5929\u8bb0\u5f55\u90fd\u6574\u7406\u597d\u4fdd\u5b58\u5230\u9879\u76ee\u8f6f\u4ef6\u4e2d\uff08\u4ee5\u9632\u4e4b\u540e\u51fa\u73b0\u95ee\u9898\u5012\u6253\u4e00\u8019\uff09\uff0c\u7136\u540e\u516c\u5f00\u827e\u7279\u4f60\u7684\u8001\u5927\u548c\u4ed6\u4ee5\u53ca\u4ed6\u7684\u8001\u5927\u8bf4\u660e\u5176\u4e2d\u95ee\u9898\uff0c\u5982\u679c\u89c9\u5f97\u6ca1\u95ee\u9898\uff0c\u90a3\u4f60\u5c31\u6309\u4ed6\u8bf4\u7684\u505a\u3002\u8fd9\u6837\u57fa\u672c\u80fd\u4fdd\u8bc1\u4e4b\u540e\u5c31\u7b97\u51fa\u95ee\u9898\u4f60\u4e5f\u4e0d\u7528\u80cc\u9505\uff0c\u5982\u679c\u4f60\u7684\u8001\u5927\u591f\u7ed9\u529b\u4f1a\u76f4\u63a5\u5e2e\u4f60\u603c\u56de\u53bb\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911935\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @renmu123 \u591a\u8c22\uff0c\u4e5f\u662f\u633a\u6709\u7528\u7684\u4e00\u4e2a\u529e\u6cd5\uff0c\u6240\u6709\u7c7b\u4f3c\u7684\u4e8b\u90fd\u53ef\u4ee5\u8fd9\u4e48\u5904\u7406\u7684\uff0c\u505a\u53ef\u4ee5\uff0c\u51fa\u4e86\u95ee\u9898\u6211\u4e0d\u8d1f\u8d23\uff0c\u800c\u4e14\u6211\u4e4b\u524d\u4e5f\u660e\u786e\u8bf4\u8fc7\u4f1a\u51fa\u95ee\u9898\u3002\u9047\u5230\u8fd9\u79cd\u4e8b\u662f\u9700\u8981\u4fdd\u5b58\u4e00\u4e9b\u8bc1\u636e\uff0c\u5c3d\u91cf\u8ba9\u81ea\u5df1\u5c11\u62c5\u8d23\u3002\u5982\u679c\u9047\u5230\u901a\u60c5\u8fbe\u7406\u6216\u8005\u61c2\u70b9\u6280\u672f\u7684\u4e0a\u7ea7\u53ef\u80fd\u6ca1\u95ee\u9898\u3002<br \/>\u5982\u679c\u9047\u5230\u4e0d\u61c2\u6280\u672f\u6216\u8005\u4e5f\u4e0d\u901a\u60c5\u7684\u4e0a\u7ea7\uff0c\u7136\u540e\u4ea7\u54c1\u6216\u4e0a\u7ea7\u7ed9\u4f60\u6765\u4e00\u53e5\uff1a\u201c\u8fd9\u4e0d\u5c31\u662f\u4f60\u8be5\u505a\u7684\u4e8b\u5417\uff1f\u505a\u4e0d\u4e86\u4e24\u5168\u5176\u7f8e\uff0c\u90a3\u5c31\u662f\u4f60\u6280\u672f\u6709\u95ee\u9898\u3002\u201d \u8fd9\u5c31\u628a\u6211\u6574\u8499\u4e86\u554a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911936\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @MoYi123 \u8c22\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911937\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @MoYi123 \u662f\u633a\u7c7b\u4f3c\u7684\uff0c\u5b66\u4e60\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911938\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yzbythesea <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u5728\u624b\u673a\u7aef\u5904\u7406\u3002App \u7f13\u5b58\u5ba2\u6237\u7684\u89c6\u9891\u5217\u8868\u7136\u540e\u5728\u672c\u5730\u4fdd\u5b58\u4e00\u4e2a bloom filter \u8bb0\u5f55\u5ba2\u6237\u770b\u8fc7\u7684\u89c6\u9891\u3002\u5230\u65f6\u5019\u76f4\u63a5\u9009\u62e9\u4e0d\u5728 bloom filter \u91cc\u7684\u89c6\u9891 ID \u7136\u540e\u5411\u540e\u53f0\u53d1\u9001\u8bf7\u6c42\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911939\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @awanganddong \u6570\u636e\u5168\u90fd\u52a0\u8f7d\u5230 redis\uff0c\u5982\u679c\u53ea\u662f\u8bb0\u5f55 id \u7684\u8bdd\uff0c\u90a3\u4e48\u5728\u7528 Sql \u8fdb\u884c\u67e5\u8be2\u7684\u65f6\u5019\u53ef\u80fd\u4e0d\u592a\u65b9\u4fbf\u7684\uff0c\u800c\u4e14\u6570\u636e\u8fd8\u4f1a\u5b58\u5728\u9891\u7e41\u7684\u589e\u5220\u64cd\u4f5c\uff0c\u5e94\u8be5\u8fd8\u662f\u5f97\u4ee5 mysql \u4e3a\u6838\u5fc3\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911940\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yzbythesea <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53e6\u5916\u5c31\u662f\u589e\u52a0 redis \u53f0\u6570\uff0c\u53cd\u6b63\u4f60\u8fd9\u4e2a\u662f\u53ef\u4ee5\u5f88\u8f7b\u677e\u5730\u6a2a\u5411\u6269\u5c55\u7684\u3002\u6211\u89c9\u5f97\u94b1\u5230\u4f4d\uff0c\u4ea7\u54c1\u8bf4\u5f97\u8fd9\u4e2a\u65b9\u6848\u662f\u63a8\u8350\u505a\u6cd5\uff0c\u4e5f\u6ca1\u6709\u4efb\u4f55\u6027\u80fd\u62c5\u5fe7\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911941\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bf4\u4e00\u4e0b\u548c\u53e6\u4e00\u4e2a\u540c\u884c\u8fdb\u884c\u8ba8\u8bba\u540e\u7684\u4e00\u4e2a\u5927\u81f4\u53ef\u884c\u65b9\u6848\u5427\uff0c\u4f7f\u7528\u6700\u7b28\u7684\u529e\u6cd5\uff0c\u5355\u72ec\u4f7f\u7528\u4e00\u5f20\u8868\u8bb0\u5f55\u7528\u6237\u89c2\u770b\u8fc7\u7684\u89c6\u9891\uff08\u5c31\u7c7b\u4f3c\u4e00\u4e2a\u89c2\u770b\u8bb0\u5f55\u7684\u529f\u80fd\uff09\uff1b\u5efa\u7acb\u597d\u7d22\u5f15\uff0c\u5373\u4f7f\u6570\u636e\u91cf\u5f88\u5927\u901f\u5ea6\u4e5f\u4e0d\u4f1a\u592a\u6162\uff1b<br \/>\u4e3b\u8981\u95ee\u9898\u5c31\u662f\u5728\u7528\u6237\u770b\u5b8c\u6240\u6709\u89c6\u9891\u540e\u9700\u8981\u6e05\u9664\u4e4b\u524d\u5df2\u770b\u7684\u6570\u636e\u91cd\u65b0\u8bb0\u5f55\uff0c\u5728\u5220\u9664\u7684\u65f6\u5019\u9700\u8981\u91cd\u5efa\u7d22\u5f15\uff0c\u4e3a\u4e86\u4e0d\u5f71\u54cd\u7528\u6237\u6b63\u5e38\u4f7f\u7528\uff0c\u53ef\u4ee5\u4f7f\u7528\u961f\u5217\u6216\u8005 redis \u53d1\u5e03\u8ba2\u9605\u6765\u8fdb\u884c\u5f02\u6b65\u7684\u5220\u9664\uff0c\u8fd9\u6837\u6570\u636e\u5c31\u5b58\u5728\u5ef6\u8fdf\uff0c\u5c31\u53ef\u80fd\u51fa\u73b0\u6211\u4e00\u8fb9\u5728\u63d2\u5165\u4e00\u8fb9\u5728\u5220\u9664\u7684\u60c5\u51b5\uff0c\u67e5\u8be2\u4e5f\u5b58\u5728\u95ee\u9898\uff08\u672c\u5e94\u8be5\u4ece\u5934\u5f00\u59cb\u67e5\uff0c\u4f46\u6b64\u65f6\u8fd8\u6ca1\u6709\u5220\u9664\u4e4b\u524d\u7684\u89c2\u770b\u8bb0\u5f55\uff0c\u56e0\u6b64\u5b9e\u9645\u67e5\u8be2\u7684\u65f6\u5019\u8fd8\u4f1a\u5254\u9664\u4e4b\u524d\u5df2\u89c2\u770b\u7684\uff09\u3002<br \/>\u89e3\u51b3\u8fd9\u4e2a\u7684\u529e\u6cd5\u5c31\u662f\u5728\u5f80\u961f\u5217\u63d2\u5165\u5220\u9664\u4efb\u52a1\u7684\u65f6\u5019\u540c\u65f6\u8bb0\u5f55\u9700\u8981\u5220\u9664\u7684\u5386\u53f2\u89c2\u770b\u8bb0\u5f55\u7684\u6700\u5927 id\uff0c\u5728\u5220\u9664\u7684\u65f6\u5019\u5c31\u901a\u8fc7 userid=? and historyId &lt;= ?\uff0c\u5982\u679c\u6570\u636e\u91cf\u5927\u53ef\u4ee5\u8fdb\u4e00\u6b65\u4f18\u5316\uff0c\u8fdb\u884c\u5206\u6279\u5220\u9664\u3002<br \/>\u8fd8\u6709\u4e2a\u95ee\u9898\u5c31\u662f\u7ba1\u7406\u5458\u5982\u679c\u4fee\u6539\u4e86\u7cbe\u9009\u89c6\u9891\u7684\u6392\u5e8f\uff0c\u662f\u5426\u9700\u8981\u7528\u6237\u5b9e\u65f6\u5c55\u793a\u6700\u65b0\u7684\u6392\u5217\u987a\u5e8f\uff0c\u5373\u662f\u5426\u4e5f\u8981\u6e05\u7a7a\u89c2\u770b\u8bb0\u5f55\u7684\u95ee\u9898\u6216\u8005\u5176\u4ed6\u7684\u5904\u7406\u65b9\u5f0f\uff08\u4f8b\u5982\uff0c\u53ea\u6e05\u9664\u6240\u6709\u7528\u6237\u5386\u53f2\u8bb0\u5f55\u4e2d\u7ba1\u7406\u5458\u65b0\u8bbe\u7f6e\u7cbe\u9009\u7684\u89c6\u9891 id\uff0c\u8ba9\u8fd9\u4e9b\u89c6\u9891\u53ef\u4ee5\u88ab\u7528\u6237\u518d\u6b21\u67e5\u8be2\uff0c\u6b64\u65f6\u5c31\u4e0d\u8003\u8651\u91cd\u590d\u95ee\u9898\uff0c\u56e0\u4e3a\u8bbe\u7f6e\u7cbe\u9009\u5c31\u662f\u4e3a\u4e86\u589e\u52a0\u66dd\u5149\u91cf\uff09\u3002\u5982\u679c\u4e0d\u8003\u8651\u8fd9\u4e00\u70b9\u7684\u8bdd\u5c31\u4e0d\u7528\u7ba1\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911942\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : rrfeng <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5148\u5b9e\u73b0\uff1a\u6839\u636e\u4e0a\u6b21\u8bbf\u95ee\u7684 lastid \u5206\u9875<\/p>\n<p>\u518d\u5b9e\u73b0\uff1a\u7cbe\u9009\u7684 lastid<\/p>\n<p>\u62fc\u5728\u4e00\u8d77\u5373\u53ef\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911943\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zieglar \u8c22\u8c22\uff0c\u548c\u4e00\u7684\u65b9\u6cd5\u7c7b\u4f3c \u9700\u8981\u6570\u636e\u5728 redis \u624d\u597d\u64cd\u4f5c\uff0c\u56e0\u6b64\u7b5b\u9009\u51fa id \u540e\u4f7f\u7528 sql \u64cd\u4f5c\u5b58\u5728\u6027\u80fd\u95ee\u9898\uff0c\u5e94\u8be5\u4ee5 msyql \u4e3a\u6838\u5fc3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911944\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @rrfeng \u8c22\u8c22\uff0c\u6700\u5f00\u59cb\u5c31\u662f\u8fd9\u4e2a\uff0c\u4e3b\u8981\u95ee\u9898\u5c31\u5728\u4e8e\u8fd9\u4e2a\u6570\u636e\u7684\u987a\u5e8f\u4f1a\u53d8\uff0c\u5982\u679c\u987a\u5e8f\u4e0d\u53d8\u5c31\u6ca1\u95ee\u9898 \u53ef\u4ee5\u770b\u770b 14 \u7684\u65b9\u6848                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911945\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u4e00\u4e00\u56de\u590d\u4e86\uff0c\u611f\u8c22\u6240\u6709\u56de\u590d\u7684\u670b\u53cb\uff0c\u597d\u7684\u65b9\u6848\u6211\u4f1a\u5b66\u4e60\u4e00\u4e0b\u7684\uff0c\u8c22\u8c22\u5566\uff01 ^^                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911946\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @rrfeng \u4e0d\u8fc7\u7ef4\u62a4\u4e24\u4e2a lastid \u8fd9\u4e2a\u60f3\u6cd5\u633a\u4e0d\u9519\u7684\uff0c\u662f\u4e00\u4e2a\u597d\u7684\u60f3\u6cd5\uff0c\u8c22\u8c22\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911947\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ylrshui \u7b28\u65b9\u6cd5\u6709\u65f6\u53cd\u800c\u662f\u6700\u6709\u6548\u7684\u65b9\u6cd5\uff0c\u53ea\u8981\u4f18\u5316\u7684\u597d\u4e5f\u80fd\u6210\u4e3a\u597d\u7684\u65b9\u6cd5\uff0c\u54c8\u54c8\u54c8\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911948\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yzbythesea \u8fd9\u79cd\u65b9\u5f0f\u7528 sql \u67e5\u8be2\u7684\u65f6\u5019\u4f1a\u7528\u5230 in(id1,id2,ids&#8230;)\uff0c\u8fd9\u6837\u7684\u8bdd\u4e0d\u8d70\u7d22\u5f15\u7684\uff0c\u6216\u8005\u6709\u4ec0\u4e48\u65b9\u6cd5\u53ef\u4ee5\u66ff\u4ee3 in \u4e48\uff1f\u800c\u4e14\u8fd9\u79cd\u64cd\u4f5c\u4e00\u822c\u90fd\u4e0d\u4f1a\u5728 app \u7aef\u505a\u5904\u7406\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911949\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @CandyMuj \u8fd8\u6709\u4e00\u70b9\uff0c\u8bb0\u5f55\u5386\u53f2\u8bb0\u5f55\u7684\u65f6\u5019\u662f\u6bcf\u6b21\u67e5\u8be2\u90fd\u8bb0\u5f55\u89c6\u9891 id\uff0c\u4f46\u662f\u67e5\u8be2\u7531\u4e8e\u662f\u5206\u9875\u7684\uff0c\u5728\u67e5\u8be2\u7684\u65f6\u5019\u9700\u8981\u52a0\u4e00\u4e2a\u9650\u5236 historyId &lt;= \u7b2c\u4e00\u9875\u67e5\u8be2\u65f6\u7684\u6700\u5927\u5386\u53f2\u8bb0\u5f55 id,\u4e0d\u7136\u5c31\u4f1a\u51fa\u73b0\u4e0b\u9762\u7684\u95ee\u9898<br \/> \u6709\u6570\u636e id\uff1a1 2 3 4 5 6 7 8 9 10<br \/> \u9996\u6b21\u67e5\u8be2\u4e0d\u5254\u9664\u6570\u636e<br \/> \u7b2c\u4e00\u9875\uff1alimit 0,2 =&gt; 1 2 3 4<br \/> \u8bb0\u5f55\u770b\u8fc7\u7684\uff1a1 2 3 4<br \/> \u7b2c\u4e8c\u9875\u67e5\u8be2\uff1a<br \/> \u6b64\u65f6\u5c31\u5254\u9664 1234\uff1a5 6 7 8 9 10<br \/> \u67e5\u8be2\uff1alimit 2,2 =&gt; 7 8<\/p>\n<p> \u5c31\u4f1a\u5bfc\u81f4\u6709\u4e9b\u6570\u636e\u662f\u88ab\u76f4\u63a5\u8df3\u8fc7\u4e86                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911950\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @CandyMuj \u8fd8\u6709\u4e00\u70b9\uff0c\u8bb0\u5f55\u5386\u53f2\u8bb0\u5f55\u7684\u65f6\u5019\u662f\u6bcf\u6b21\u67e5\u8be2\u90fd\u8bb0\u5f55\u89c6\u9891 id\uff0c\u4f46\u662f\u67e5\u8be2\u7531\u4e8e\u662f\u5206\u9875\u7684\uff0c\u5728\u67e5\u8be2\u7684\u65f6\u5019\u9700\u8981\u52a0\u4e00\u4e2a\u9650\u5236 historyId &lt;= \u7b2c\u4e00\u9875\u67e5\u8be2\u65f6\u7684\u6700\u5927\u5386\u53f2\u8bb0\u5f55 id,\u4e0d\u7136\u5c31\u4f1a\u51fa\u73b0\u4e0b\u9762\u7684\u95ee\u9898<br \/> \u6709\u6570\u636e id\uff1a1 2 3 4 5 6 7 8 9 10<br \/> \u9996\u6b21\u67e5\u8be2\u4e0d\u5254\u9664\u6570\u636e<br \/> \u7b2c\u4e00\u9875\uff1alimit 0,2 =&gt; 1 2 <br \/> \u8bb0\u5f55\u770b\u8fc7\u7684\uff1a1 2<br \/> \u7b2c\u4e8c\u9875\u67e5\u8be2\uff1a<br \/> \u6b64\u65f6\u5c31\u5254\u9664 1234\uff1a3 4 5 6 7 8 9 10<br \/> \u67e5\u8be2\uff1alimit 2,2 =&gt; 5 6<\/p>\n<p> \u5c31\u4f1a\u5bfc\u81f4\u6709\u4e9b\u6570\u636e\u662f\u88ab\u76f4\u63a5\u8df3\u8fc7\u4e86                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911951\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zieglar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @CandyMuj \u5176\u5b9e\u90fd\u4f7f\u7528 redis \u64cd\u4f5c\u662f\u53ef\u884c\u7684\uff0c\u9996\u5148\u7ef4\u62a4\u597d redis \u91cc\u5bf9\u5e94\u7684\u5f71\u7247\u5217\u8868\uff0c\u5728\u6392\u5e8f\u3001\u65b0\u589e\u3001\u4fee\u6539\u4ee5\u540e\u90fd\u540c\u6b65\u5230\u8fd9\u4e2a\u5217\u8868\u91cc\uff0c\u7136\u540e\u6bcf\u4e2a\u7528\u6237\u4e24\u4e2a\u5217\u8868\uff0c\u4e00\u4e2a\u662f\u5df2\u770b\uff0c\u4e00\u4e2a\u662f\u672a\u770b\uff0c\u521d\u59cb\u6570\u636e\u65f6\u5f71\u7247\u5217\u8868\u540c\u6b65\u5230\u672a\u770b\uff0c\u7136\u540e\u7528 spop \u6765\u83b7\u53d6\u672a\u770b\u5217\u8868\u6570\u636e\u8f93\u51fa\u4e3a A \u5217\u8868\uff0c\u7136\u540e\u628a\u770b A \u5217\u8868\u6570\u636e\u540c\u6b65\u5230\u5df2\u770b\u5217\u8868\u91cc\uff0c\u540e\u9762\u7684\u64cd\u4f5c\u662f\u5f53\u5f71\u7247\u5217\u8868\u53d1\u751f\u53d8\u5316\u65f6\uff0c\u5f71\u7247\u5217\u8868\u548c\u5df2\u770b\u8fdb\u884c sdiff\uff0c\u628a\u5dee\u5f02\u503c\u8986\u76d6\u5230\u672a\u770b\u53bb\uff0c\u8fd9\u6837\u6bcf\u6b21\u4ece\u672a\u770b\u62ff\u5230\u7684\u6570\u636e\u7b26\u5408\u5f71\u7247\u5217\u8868\u7684\u6700\u65b0\u6392\u5e8f\uff0c\u4e14\u6839\u636e A \u5217\u8868\u6570\u636e\u4e5f\u53ef\u4ee5\u5bf9\u4ece\u6570\u636e\u5e93\u7684\u8bb0\u5f55\u8fdb\u884c\u6392\u5e8f\uff0c\u5e76\u4e0d\u89c9\u5f97\u8fd9\u6837\u6839\u636e ID \u6765\u641c\u7d22 mysql \u7684\u6570\u636e\u4f1a\u65e9\u5c42\u4ec0\u4e48\u6027\u80fd\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911952\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : YouLMAO <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6807\u9898\u5199\u968f\u673a\uff0c\u5185\u6587\u6ca1\u6709\uff0c\u9a97\u5b50                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911953\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xyjincan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5934\u4e00\u6b21\u89c1\u8fd9\u4e48\u8be6\u7ec6\u7684\u8bf4\u660e\u5e16\u5b50\uff0c\u7ba1\u7406\u5458\u64cd\u4f5c\u4fe1\u606f\u76f4\u63a5\u7ef4\u62a4\u5728\u5217\u8868\u6570\u636e\u5e93\uff0c\u7528\u6237\u5df2\u8bfb\u6570\u636e\u5355\u72ec\u5efa\u8868\uff0c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911954\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hma <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @CandyMuj #17 \u53ef\u4ee5\u628a\u7cbe\u9009\u5217\u8868\u72ec\u7acb\u51fa\u6765\u3002\u518d\u8bb0\u5f55\u7cbe\u9009\u7684\u5df2\u9605\u5217\u8868\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911955\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yzbythesea <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @CandyMuj \u76f4\u63a5\u7528 redis \u5b58\u7528\u6237\u770b\u4e0d\u8fc7\u6ca1\u6709\uff1f App \u7aef\u8fd8\u771f\u6709\u7c7b\u4f3c\u505a\u6cd5\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911956\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lldld <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd8\u662f\u9700\u8981\u5bf9\u6bcf\u4e2a\u7528\u6237\u5b58\u50a8\u5176\u770b\u8fc7\u7684\u89c6\u9891, \u4f46\u662f\u6bcf\u4e2a id \u90fd\u8bb0\u4e0d\u5408\u9002.<\/p>\n<p>\u5927\u90e8\u5206\u60c5\u51b5\u4e0b, \u7ed9\u7528\u6237\u5c55\u793a\u7684\u89c6\u9891\u662f\u6309 id \u6392\u5e8f\u7684, \u5c11\u90e8\u5206\u662f\u968f\u673a\u7684(\u7cbe\u9009).<\/p>\n<p>\u8bb0\u5f55\u7684 id \u4e5f\u5206\u4e24\u79cd\u5f62\u5f0f, \u6bd4\u5982 [1, 30], [40, 48], {51, 72, 99} \u8868\u793a\u770b\u8fc7 1~30, 40~48, \u4ee5\u53ca 51, 72, 99.<\/p>\n<p>\u90a3\u4e48\u5f53\u4e0b\u8981\u63a8\u8350\u7ed9\u7528\u6237\u7684\u89c6\u9891, \u5e94\u8be5\u662f\u4f18\u5148\u63a8\u8350\u7cbe\u9009, \u7136\u540e\u5c31\u662f\u4ee5\u7f29\u77ed\u4e0a\u9762\u7684\u8bb0\u5f55\u4e3a\u539f\u5219.<\/p>\n<p>\u6bd4\u5982\u4eca\u5929\u7684\u7cbe\u9009\u662f {200, 210, 22}, \u7136\u540e\u9996\u9875\u9700\u8981 5 \u4e2a\u89c6\u9891, \u90a3\u4e48\u518d\u8865\u4e0a 49, 50 \u6bd4\u8f83\u597d.<br \/>sql \u5c31\u662f select id in [200, 210, 22, 49, 50]<\/p>\n<p>\u8fd9\u6837\u65b0\u7684\u8bb0\u5f55\u53d8\u6210 [1, 30], [40, 51], {72, 99, 200, 210}                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911957\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @YouLMAO \u6211\u8bf4\u4e86\u8fd9\u662f\u4e00\u4e2a\u7c7b\u4f3c\u968f\u673a\u7684\u65b9\u6848\uff0c\u56e0\u4e3a\u76f4\u63a5\u91c7\u53d6\u968f\u673a\u7684\u8bdd\uff0c\u4f1a\u51fa\u73b0\u91cd\u590d\u7684\u6570\u636e\uff0c\u4e0d\u6ee1\u8db3\u9700\u6c42\u3002\u5982\u679c\u60f3\u5b9e\u73b0\u968f\u673a+\u4e0d\u91cd\u590d \u4f60\u53ef\u4ee5\u5728\u53d6\u6570\u636e\u7684\u65f6\u5019\u8fdb\u884c\u968f\u673a\u83b7\u53d6\u5e76\u8e22\u9664\u5df2\u770b\u89c6\u9891\uff0c\u5982\u679c\u6570\u636e\u4e0d\u8db3\u4e00\u9875\u5c31\u4e00\u6b21\u67e5\u8be2\u591a\u9875\uff0c\u67e5\u8be2\u591a\u9875\u9700\u8981\u6ce8\u610f\u4e00\u4e2a\u95ee\u9898\uff0c\u770b\u7b2c 23                                                             <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911958\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yzbythesea #28 \u6211\u6ca1\u6709\u8fd9\u6837\u5904\u7406\u8fc7                                                             <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911959\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @zieglar #24 \u8fd9\u6837\u786e\u5b9e\u4e5f\u53ef\u4ee5\uff0c\u8c22\u8c22\u4f60\u7684\u601d\u8def\u3002<br \/>\u5982\u679c\u628a\u6570\u636e\u5168\u90e8\u7ef4\u62a4\u5230 Redis\uff0c\u4e2a\u4eba\u4e0d\u592a\u559c\u6b22\u8fd9\u6837\u7684\u5904\u7406\u65b9\u5f0f\u3002<br \/>\u5904\u7406\u65b9\u5f0f\u633a\u4e0d\u9519\u7684\uff0c\u5982\u679c\u540e\u7eed\u6709\u5176\u4ed6\u9700\u6c42\u53ef\u4ee5\u7528\u5230\u8fd9\u4e2a\u601d\u8def\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911960\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yzbythesea #28 \u5173\u4e8e\u7528\u6237\u4e00\u822c\u5c31\u662f\u5b58\u4e2a token\uff0c\u7f13\u5b58\u4e00\u4e9b\u7528\u6237\u6570\u636e\uff0c\u76f4\u63a5\u7528 Redis \u5f53\u7528\u6237\u8868\u5c31\u6ca1\u73a9\u8fc7\u4e86                                                             <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911961\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hma \u540e\u7eed\u4f1a\u8003\u8651\u8fd9\u65b9\u9762\u7684\u4f18\u5316\uff0c\u8c22\u8c22\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911962\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @xyjincan #26 \u6700\u5f00\u59cb\u5c31\u662f\u6253\u7b97\u7684\u8fd9\u4e2a\u65b9\u6848\uff0c\u53ef\u80fd\u6211\u5f53\u65f6\u6280\u672f\u6b20\u7f3a\u6216\u8005\u6ca1\u60f3\u5230\u5982\u4f55\u4f18\u5316\u6027\u80fd\uff0c\u7136\u540e\u5c31\u4e0d\u6253\u7b97\u91c7\u53d6\u8fd9\u4e2a\u65b9\u6848\u3002\u73b0\u5728\u6709\u4e86\u6027\u80fd\u4f18\u5316\u65b9\u6848\u4ee5\u53ca\u6574\u4e2a\u67e5\u8be2\u903b\u8f91\u7684\u7ec6\u8282\u5904\u7406\u65b9\u6cd5\uff0c\u5c31\u53ef\u4ee5\u7528\u5566\u3002<\/p>\n<p>\u95ee\u9898\u4e0d\u63cf\u8ff0\u6e05\u695a\uff0c\u6211\u5149\u89e3\u91ca\u5c31\u8981\u89e3\u91ca\u534a\u5929\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911963\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lldld \u611f\u8c22\uff0c\u597d\u7684\u60f3\u6cd5\uff0c\u5b66\u4e60\u5230\u4e86\uff01 ^^                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911964\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lldld #29 \u6682\u65f6\u5148\u8bb0\u5f55\u6240\u6709\u5427\uff0c\u5148\u51fa\u4e00\u4e2a\u53ef\u4ee5\u7528\u7684\uff0c\u7136\u540e\u518d\u4f18\u5316\u5427\uff0c\u8fd9\u79cd\u4e0d\u8bb0\u5f55\u5168\u90e8 id \u7684\u60f3\u6cd5\u5f88\u68d2\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911965\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @YouLMAO #25 \u5e76\u4e14\uff0c\u6211\u8fd9\u662f\u4e00\u7bc7\u6c42\u52a9\u5e16\uff0c\u800c\u4e0d\u662f\u6559\u7a0b\u5e16\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911966\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zxyroy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u7a81\u7136\u6709\u4e2a\u60f3\u6cd5\uff0c\u65e2\u7136\u6ca1\u6709\u8981\u6c42\u6bcf\u4e2a\u7528\u6237\u987a\u5e8f\u4e0d\u80fd\u4e00\u6837\uff0c\u4e0d\u5982\u76f4\u63a5\u751f\u6210\u4e00\u4e2a\u4e71\u5e8f\u5217\u8868\uff0c\u6bcf\u4e2a\u7528\u6237\u90fd\u6309\u8fd9\u4e2a\u4e71\u5e8f\u5217\u8868\u8fd4\u56de\uff0c\u65b0\u89c6\u9891\u5c31\u6512 10 \u4e2a\u518d\u4e71\u5e8f\u8ffd\u52a0\u5230\u6700\u540e\u3002\u6bcf\u5f53\u6709\u7528\u6237 load \u5b8c\u5176\u4e2d\u4e00\u4e2a\u5217\u8868\u5c31\u518d\u521b\u5efa\u4e00\u4e2a\u3002\u6bcf\u4e2a\u7528\u6237\u4e00\u5b9a\u8981 load \u5b8c\u4e00\u4e2a\u5217\u8868\u624d\u80fd\u8fdb\u5165\u4e0b\u4e00\u4e2a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911967\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kkkkkrua <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7ed9\u4e2a sort \u5217\uff0c\u4e13\u95e8\u7528\u6765\u6392\u5e8f\uff0c\u597d\u50cf\u5c31\u53ef\u4ee5\u89e3\u51b3\u4f60 id \u4e71\u5e8f\u7684\u95ee\u9898\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911968\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : qingluo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             redis \u6709\u4e00\u4e2a hyberloglog \u7684\u6570\u636e\u7ed3\u6784 \u53ef\u4ee5\u505a\u505a\u53c2\u8003                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911969\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Nillouise <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ca1\u8be6\u7ec6\u770b\u9898\u76ee\uff0c\u4f46\u6211\u8003\u8651\u8fc7\u7c7b\u4f3c\u7684\u95ee\u9898\uff0c\u5373\u4fe1\u606f\u6d41\u63a8\u8350\uff0c\u56e0\u4e3a\u4fe1\u606f\u7684\u5185\u5bb9\u662f\u5b9e\u65f6\u66f4\u65b0\u7684\uff0c\u6240\u4ee5\u4ec0\u4e48\u751f\u6210\u56fa\u5b9a\u5e8f\u5217\uff0c\u5176\u5b9e\u4e0d\u662f\u4e2a\u597d\u529e\u6cd5\uff0c\u65e0\u6cd5\u5904\u7406\u8fd9\u79cd\u60c5\u51b5\uff0c\u4e5f\u65e0\u6cd5\u5904\u7406\u4e0d\u540c\u4fe1\u606f\u6709\u6743\u503c\u7684\u60c5\u51b5\u3002<\/p>\n<p>\u7f51\u4e0a\u6211\u770b\u5230\u6709\u6587\u7ae0\u8bf4\uff0c\u8bb0\u5f55\u6700\u591a\u7528\u6237\u770b\u8fc7\u7684 10000 \u4e2a\u4fe1\u606f\uff0c\u7136\u540e\u76f4\u63a5\u8fc7\u6ee4\u8fd9 10000 \u4e2a\u4fe1\u606f\u5373\u53ef\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911970\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : pushback <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             order by RAND() <br \/>MySQL \u65e0\u6240\u4e0d\u80fd                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911971\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : simonlu9 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u81ea\u5df1\u7528 redis \u6709\u5e8f\u96c6\u5408\u5b58\u5427\uff0c\u4f18\u5148\u63a8\u8350\u90a3\u4e9b\u5c31\u628a\u6743\u91cd\u63d0\u9ad8\u4e00\u70b9\uff0c\u6211\u662f\u7528 es \u505a\u7684\uff0c\u53ef\u4ee5\u6ee1\u8db3\u5f88\u591a\u9700\u6c42                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911972\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : thinkmore <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u6709\u4e00\u4e2a\u60f3\u6cd5\u3002\u628a\u6240\u6709\u6570\u636e\u5206\u914d\u5230\u4e00\u4e2a\u73af\u4e2d\u3002<\/p>\n<p>\u7136\u540e\u7ed9\u6bcf\u4e2a\u7528\u6237\u968f\u673a\u5206\u914d\u4e00\u4e2a\u5728\u73af\u4e2d\u7684\u8d77\u59cb\u70b9\u3002<\/p>\n<p>\u5f53\u6709\u7cbe\u54c1\u89c6\u9891\u65f6\uff0c\u5c31\u5c06\u8fd9\u4e9b\u6392\u5e8f\u597d\u7684\u91cd\u65b0\u6784\u6210\u73af\u5373\u53ef<\/p>\n<p>@CandyMuj                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911973\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : OldCarMan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u77e5\u9053\uff0c\u4f60\u8bf4\u7684\u4e0d\u91cd\u590d\u662f\u4ec0\u4e48\u6837\u7684\u65f6\u95f4\u9891\u7387\uff0c\u5982\u679c\u662f\u6bcf\u4e00\u5929\u4fdd\u8bc1\u4e0d\u91cd\u590d\uff08\u6216\u8005\u9694\u591a\u957f\u65f6\u95f4\u4fdd\u8bc1\u4e0d\u91cd\u590d\uff09\u5e76\u4e14\u53ea\u9760 mysql \u5b9e\u73b0\u7684\u8bdd\uff0c\u52a0\u4e00\u4e2a\u7528\u6237\u6d4f\u89c8\u8bb0\u5f55\u8868\uff0c\u7136\u540e\u6bcf\u6b21\u67e5\u8be2\u52a0\u4e0a\u4e00\u4e2a not in \u4e4b\u7c7b\u7684\uff0c\u6700\u540e\u52a0\u4e2a\u5b9a\u65f6\u4efb\u52a1\uff0c\u5b9a\u65f6\u5220\u9664\u8be5\u9891\u7387\u5185\u4ea7\u751f\u7684\u8fd9\u4e9b\u8bb0\u5f55\u6570\u636e\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911974\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : auh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f9d\u8d56 mysql \u662f\u6ca1\u529e\u6cd5\u5b9e\u73b0\u8fd9\u79cd\u4e71\u5e8f\u64cd\u4f5c\u7684\uff0c\u5fc5\u7136\u5e26\u6765 msyql \u7684\u538b\u529b\u3002<br \/>\u89c6\u9891\u8bb0\u5f55\u5fc5\u987b load \u5230 redis \u3002<\/p>\n<p>\u5206\u9875\uff0c\u8fd9\u79cd\u5206\u9875\uff0c\u672c\u8d28\u4e0a\u4e0d\u662f\u5206\u9875\u3002\u800c\u662f\u5355\u7eaf\u7684\u4e0b\u4e00\u6279\u3002<br \/>\u6bcf\u9875 10 \u4e2a\u3002\u5c31\u8bfb\u53d6 redis \u96c6\u5408\u5b58\u50a8\u7684 Vid10 \u4e2a\u3002<\/p>\n<p>\u5982\u679c\u89c6\u9891\u6ca1\u6709\u65f6\u6548\u6027\uff0c\u76f4\u63a5\u987a\u5e8f\u8bfb\u53d6 redis \u5217\u8868\u5c31\u884c\u3002\u53ea\u4e3a\u6bcf\u4e2a\u7528\u6237\u8bb0\u5f55\u4e00\u4e2a\u6e38\u6807\uff0c\u56e0\u4e3a\u5bf9\u7528\u6237\u6765\u8bf4\uff0c\u7528\u6237\u611f\u77e5\u4e0d\u5230\u968f\u673a\u6027\u3002\u517c\u5bb9\u7ade\u9009\u5217\u8868\u4e5f\u5f88\u7b80\u5355\u3002\u5355\u72ec\u5904\u7406\u7cbe\u9009\u5217\u8868\u903b\u8f91\u3002\u5408\u5e76\u4e24\u4e2a\u7ed3\u679c\u96c6\uff0c\u4fdd\u8bc1\u4e00\u9875\u603b\u5171 10 \u4e2a\u5c31\u884c\u4e86\u3002<\/p>\n<p>\u5982\u679c\u89c6\u9891\u5177\u5907\u7279\u6b8a\u5c5e\u6027\u3002\u4e0d\u4ec5\u662f\u65f6\u6548\u6027\u3002\u53ef\u80fd\u5c31\u9700\u8981\uff0c\u4e3a\u6bcf\u4e2a\u7528\u6237\u8bb0\u5f55\u5df2\u8bfb\u5217\u8868\u4e86\u3002<br \/>\u8fd9\u4e2a\u65f6\u5019\uff0c\u4f18\u5316\u7684\u8bdd\uff0c\u5982\u679c\u53ef\u4ee5\uff0c\u5bf9\u89c6\u9891\u5217\u8868\u8fdb\u884c\u5206\u7247\uff0c\u7528\u6237\u8bfb\u5b8c\u4e00\u7247\u4e4b\u540e\uff0c\u4e0d\u9700\u8981\u518d\u5173\u5fc3\u4e4b\u524d\u7684\u7247\u4e86\u3002\u5df2\u8bfb\u5217\u8868\u5c31\u5f88\u5c0f\u4e86\u3002<br \/>\u5982\u679c\u5206\u7247\u4e0d\u4e86\uff0c\u76f8\u5f53\u4e8e\u7528\u6237\u9762\u5411\u7684\u662f\u6574\u5f20\u89c6\u9891\u8868\u7684\u968f\u673a\u3002\u8fd9\u79cd\u5fc5\u987b\u5b8c\u6574\u8bb0\u5f55\u3002\u4f46\u662f\uff0c\u73b0\u5728\u53ef\u4ee5\u8003\u8651\u9488\u5bf9\u7528\u6237\u5206\u7ec4\u3002\u4e0d\u540c\u7ec4\u7fa4\u7684\u7528\u6237\u5171\u4eab\u4e00\u4e2a\u5df2\u8bfb\u5217\u8868\u3002\u6bcf\u4e2a\u7528\u6237\u53ea\u6301\u6709\u6e38\u6807\u3002\u5185\u5b58\u5c31\u53c8\u5c11\u4e86\u3002<\/p>\n<p>ok \u3002\u4e0d\u5e9f\u8bdd\u4e86\u3002\u5177\u4f53\u60c5\u51b5\uff0c\u5177\u4f53\u5206\u6790\u3002\u56e0\u4e3a\u4f60\u9047\u5230\u7684\u53ef\u80fd\u6bd4\u4f60\u63cf\u8ff0\u7684\u590d\u6742\u7684\u591a\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911975\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fkname <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1.\u5efa\u8bae\u5ba2\u6237\u7aef\u505a\u968f\u673a\u64cd\u4f5c\uff0c\u8fd9\u6837\u53ef\u4ee5\u5927\u5927\u51cf\u5c11\u670d\u52a1\u7aef\u7684\u8ba1\u7b97<br \/>2.\u5982\u679c\u7528\u65b0\u8868\u5b58\u50a8\u5df2\u8bfb\u8bb0\u5f55\uff0c\u53ef\u4ee5\u505a\u903b\u8f91\u5220\u9664\uff0c\u8fd9\u6837\u4e0d\u4f1a\u6709\u91cd\u5efa\u7d22\u5f15\u7684\u95ee\u9898\u3002\u5f53\u7136\u63d2\u5165\u65f6\u9700\u8981\u4fee\u6539\u4e3a insertOrUpdate \u65b9\u5f0f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911976\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @fkname #48 \u611f\u8c22\uff0c\u662f\u4e2a\u5f88\u597d\u7684\u529e\u6cd5\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911977\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @auh \u8c22\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4911978\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : CandyMuj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @auh #47 \u4e07\u5206\u611f\u6fc0\uff0c\u6211\u8fd8\u4e00\u76f4\u5728\u5206\u9875\u8fd9\u91cc\u9762\u7422\u78e8\u3002\u3002\u3002 \u5b9e\u9645\u4e0a\u8fd9\u91cc\u5c31\u662f\u5206\u6279\u6b21\u62ff\u6570\u636e\uff0c\u90fd\u4e0d\u5e94\u8be5\u53eb\u505a\u5206\u9875\u4e86\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 Java +mysql+re&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\/274945"}],"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=274945"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/274945\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=274945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=274945"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=274945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}