{"id":117253,"date":"2026-10-22T23:48:56","date_gmt":"2026-10-22T15:48:56","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/117253.html"},"modified":"2026-10-22T23:48:56","modified_gmt":"2026-10-22T15:48:56","slug":"%e5%88%86%e5%b8%83%e5%bc%8f%e7%89%b9%e5%be%81%e5%b7%a5%e7%a8%8b%e6%96%ad%e7%82%b9%e7%bb%ad%e7%ae%97%ef%bc%9a%e5%9f%ba%e4%ba%8e%e5%b8%83%e9%9a%86%e8%bf%87%e6%bb%a4%e5%99%a8%ef%bc%88bloomfilter%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/117253.html","title":{"rendered":"\u5206\u5e03\u5f0f\u7279\u5f81\u5de5\u7a0b\u65ad\u70b9\u7eed\u7b97\uff1a\u57fa\u4e8e\u5e03\u9686\u8fc7\u6ee4\u5668\uff08BloomFilter\uff09\u7684\u9884\u67e5\u91cd\u4e0e\u810f\u6570\u636e\u81ea\u6108"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261022154855-6ada30670af93.webp\" alt=\"\u5c01\u9762\u4fe1\u606f\u56fe\" \/><\/p>\n<p>\u5728\u5927\u89c4\u6a21\u8bed\u8a00\u6a21\u578b\u9884\u8bad\u7ec3\u8bed\u6599\u6e05\u6d17\u3001\u591a\u6a21\u6001\u7279\u5f81\u5de5\u7a0b\u4ee5\u53ca\u5168\u7f51\u722c\u866b\u6293\u53d6\u7ba1\u9053\u4e2d&#xff0c;\u6570\u636e\u89c4\u6a21\u5f80\u5f80\u8fbe\u5230\u6570\u5341\u4ebf\u7ea7\u522b\u3002\u8fd9\u7c7b\u79bb\u7ebf\u6d41\u6c34\u7ebf\u901a\u5e38\u9700\u8981\u5728\u6570\u5341\u53f0\u8ba1\u7b97\u670d\u52a1\u5668\u4e0a\u6301\u7eed\u8fd0\u884c\u6570\u5929\u751a\u81f3\u6570\u5468\u3002\u5728\u6f2b\u957f\u7684\u6267\u884c\u5468\u671f\u4e2d&#xff0c;\u8ba1\u7b97\u8282\u70b9\u906d\u9047\u786c\u4ef6\u77ac\u65ad\u3001\u7f51\u7edc\u95ea\u65ad\u6216\u56e0\u96c6\u7fa4\u8d44\u6e90\u62a2\u5360\u88ab\u8c03\u5ea6\u5668\u5f3a\u884c\u9010\u51fa&#xff08;Eviction&#xff09;\u5c5e\u4e8e\u5e38\u6001\u5316\u4e8b\u4ef6\u3002<\/p>\n<p>\u5f53\u4e00\u4e2a\u8fd0\u884c\u4e86 48 \u5c0f\u65f6\u3001\u5df2\u5904\u7406\u5b8c 70% \u6570\u636e&#xff08;\u4f8b\u5982 5 \u4ebf\u6761\u6587\u6863&#xff09;\u7684\u7279\u5f81\u7ba1\u9053\u88ab\u8feb\u91cd\u542f\u62c9\u8d77\u65b0 Worker \u65f6&#xff0c;\u7cfb\u7edf\u9762\u4e34\u4e25\u5cfb\u7684\u65ad\u70b9\u7eed\u7b97&#xff08;Breakpoint Resumption&#xff09;\u4e0e\u5e42\u7b49\u67e5\u91cd\u8003\u9a8c&#xff1a;<\/p>\n<ul>\n<li>\u65b9\u6848 A&#xff1a;\u5168\u91cf\u626b\u63cf\u5df2\u843d\u76d8\u7684\u6570\u636e\u6e56\u6587\u4ef6&#xff1a;\u6bcf\u6b21\u62c9\u8d77\u9700\u8981\u89e3\u6790\u6570\u4e07\u4e2a Parquet \u6587\u4ef6\u7684\u5143\u6570\u636e Footer&#xff0c;I\/O \u5f00\u9500\u957f\u8fbe\u6570\u5c0f\u65f6&#xff1b;<\/li>\n<li>\u65b9\u6848 B&#xff1a;\u5c06\u5df2\u5904\u7406\u7684\u6587\u6863 ID \u5b58\u5165 Redis Set \u6216\u6570\u636e\u5e93&#xff1a;\u5728 5 \u4ebf\u7ea7\u552f\u4e00 ID \u4e0b&#xff0c;\u5355\u662f\u7ef4\u62a4\u5b57\u7b26\u4e32\u96c6\u5408\u5c31\u9700\u8981\u6d88\u8017\u4e0a\u767e GB \u6602\u8d35\u5185\u5b58&#xff0c;\u4e14\u6570\u4ebf\u6b21\u8fdc\u7a0b\u7f51\u7edc\u70b9\u67e5&#xff08;Round-Trip Time&#xff09;\u76f4\u63a5\u62d6\u57ae\u7f51\u7edc\u4ea4\u6362\u673a&#xff1b;<\/li>\n<li>\u65b9\u6848 C&#xff1a;Worker \u672c\u5730\u4f7f\u7528 Python set \u7f13\u5b58&#xff1a;\u4e0d\u4ec5\u5185\u5b58\u77ac\u95f4 OOM&#xff0c;\u4e14\u65e0\u6cd5\u8de8\u591a\u8fdb\u7a0b\u4e0e\u591a\u673a\u5668\u5171\u4eab\u3002<\/li>\n<\/ul>\n<p>\u4e3a\u4e86\u5728\u6beb\u79d2\u7ea7\u5224\u65ad\u6570\u636e\u662f\u5426\u5df2\u7ecf\u5904\u7406\u3001\u540c\u65f6\u5c06\u5185\u5b58\u5f00\u9500\u538b\u5236\u5728\u51e0\u767e\u5146\u4ee5\u5185&#xff0c;**\u57fa\u4e8e\u5e03\u9686\u8fc7\u6ee4\u5668&#xff08;Bloom Filter&#xff09;\u7684\u53cc\u5c42\u6821\u9a8c\u673a\u5236&#xff08;Two-Tier Deduplication&#xff09;**\u662f\u73b0\u4ee3\u6d77\u91cf\u6570\u636e\u7ba1\u9053\u7684\u6807\u51c6\u5de5\u7a0b\u8303\u5f0f\u3002\u672c\u6587\u5c06\u62c6\u89e3\u5176\u6570\u5b66\u673a\u7406&#xff0c;\u5e76\u7ed9\u51fa\u5de5\u4e1a\u7ea7\u65ad\u70b9\u81ea\u6108\u5b9e\u6218\u5b9e\u73b0\u3002<\/p>\n<hr \/>\n<h3>1. \u6570\u5b66\u7406\u8bba&#xff1a;\u5e03\u9686\u8fc7\u6ee4\u5668\u7684\u5bb9\u91cf\u4e0e\u8bef\u5224\u7387\u8ba1\u7b97<\/h3>\n<p>\u5e03\u9686\u8fc7\u6ee4\u5668\u901a\u8fc7\u4e00\u4e2a\u957f\u5ea6\u4e3a $m$ \u7684\u4e8c\u8fdb\u5236\u4f4d\u5411\u91cf&#xff08;Bit Array&#xff09;\u548c $k$ \u4e2a\u76f8\u4e92\u72ec\u7acb\u7684\u54c8\u5e0c\u51fd\u6570&#xff0c;\u5b9e\u73b0\u4e86\u5bf9\u6d77\u91cf\u5143\u7d20\u96c6\u5408\u6210\u5458\u8d44\u683c\u7684 $\\\\mathcal{O}(1)$ \u6781\u901f\u5224\u65ad\u3002<\/p>\n<h4>1.1 \u5047\u9633\u6027&#xff08;False Positive&#xff09;\u7684\u6570\u5b66\u672c\u8d28<\/h4>\n<p>\u5e03\u9686\u8fc7\u6ee4\u5668\u7684\u6838\u5fc3\u7279\u6027\u662f&#xff1a;<\/p>\n<ul>\n<li>\u7edd\u5bf9\u6ca1\u6709\u5047\u9634\u6027&#xff08;No False Negatives&#xff09;&#xff1a;\u5982\u679c\u5224\u5b9a\u7ed3\u679c\u4e3a\u201c\u4e0d\u5b58\u5728\u201d&#xff0c;\u5219\u8be5\u6837\u672c\u5728\u7269\u7406\u4e0a100% \u7edd\u5bf9\u672a\u88ab\u5904\u7406&#xff1b;<\/li>\n<li>\u5b58\u5728\u53d7\u63a7\u7684\u5047\u9633\u6027&#xff08;False Positives, FP&#xff09;&#xff1a;\u5982\u679c\u5224\u5b9a\u7ed3\u679c\u4e3a\u201c\u5b58\u5728\u201d&#xff0c;\u7531\u4e8e\u54c8\u5e0c\u78b0\u649e&#xff0c;\u6709\u6781\u4f4e\u6982\u7387\u8be5\u6837\u672c\u5176\u5b9e\u5e76\u672a\u88ab\u5904\u7406\u8fc7\u3002<\/li>\n<\/ul>\n<p>\u5bf9\u4e8e\u63d2\u5165\u5bb9\u91cf\u4e3a $n$\u3001\u4f4d\u6570\u7ec4\u957f\u5ea6\u4e3a $m$ \u7684\u5e03\u9686\u8fc7\u6ee4\u5668&#xff0c;\u5728\u6700\u4f18\u54c8\u5e0c\u51fd\u6570\u4e2a\u6570 $k &#061; \\\\frac{m}{n} \\\\ln 2$ \u65f6&#xff0c;\u8bef\u5224\u7387 $p$ \u4e3a&#xff1a;$$ p \\\\approx \\\\left( 1 &#8211; e^{-k n \/ m} \\\\right)^k \\\\approx (0.6185)^{m\/n} $$<\/p>\n<p>\u60ca\u4eba\u7684\u7a7a\u95f4\u538b\u7f29\u6bd4&#xff1a;\u82e5\u8981\u6c42\u5904\u7406 $n &#061; 1$ \u4ebf\u4e2a\u6570\u636e\u5206\u7247&#xff0c;\u5141\u8bb8\u7684\u8bef\u5224\u7387\u4e0a\u9650\u4e3a $p &#061; 0.1%$&#xff08;\u5343\u5206\u4e4b\u4e00&#xff09;&#xff0c;\u6240\u9700\u7684\u6700\u4f18\u4f4d\u6570\u7ec4\u5927\u5c0f\u4ec5\u4e3a&#xff1a;$$ m &#061; -\\\\frac{n \\\\ln p}{(\\\\ln 2)^2} \\\\approx 14.37 \\\\times n \\\\text{ bits} \\\\approx 1.437 \\\\times 10^9 \\\\text{ bits} \\\\approx 171.3 \\\\text{ MB} $$\u53ea\u9700\u533a\u533a 170MB \u5185\u5b58&#xff0c;\u5c31\u80fd\u5728\u672c\u5730\u5185\u5b58\u4e2d\u88c5\u4e0b 1 \u4ebf\u6761\u6570\u636e\u7684\u72b6\u6001\u7d22\u5f15&#xff0c;\u76f8\u8f83\u4e8e\u539f\u59cb\u5b57\u7b26\u4e32\u54c8\u5e0c\u8868&#xff08;\u52a8\u8f84 8GB&#xff5e;16GB&#xff09;\u8282\u7701\u4e86 98% \u4ee5\u4e0a\u7684\u5185\u5b58\u5f00\u9500\u3002<\/p>\n<p>\u4e24\u7ea7\u53cc\u91cd\u8fc7\u6ee4\u673a\u5236 (Two-Tier Architecture):<br \/>\n  [ \u5f85\u5904\u7406\u6837\u672c Document ID ]<br \/>\n             |<br \/>\n             v<br \/>\n  &#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;<br \/>\n  | \u7b2c\u4e00\u7ea7: \u672c\u5730\u5185\u5b58\u5e03\u9686\u8fc7\u6ee4\u5668 (170MB, \u7eb3\u79d2\u7ea7\u4f4d\u8fd0\u7b97\u5224\u5b9a)     |<br \/>\n  &#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;<br \/>\n             |<br \/>\n             &#043;&#8212;&gt; \u5224\u5b9a\u4e3a &#034;\u4e0d\u5b58\u5728&#034; (99.9% \u65b0\u6570\u636e) &#061;&#061;&#061;&gt; [ \u7edd\u5bf9\u672a\u5904\u7406: \u7acb\u5373\u6267\u884c\u7279\u5f81\u8ba1\u7b97 ]<br \/>\n             |<br \/>\n             &#043;&#8212;&gt; \u5224\u5b9a\u4e3a &#034;\u5b58\u5728&#034; (\u7591\u4f3c\u5df2\u5904\u7406, \u5305\u542b 0.1% \u5047\u9633\u6027\u78b0\u649e)<br \/>\n                   |<br \/>\n                   v (\u89e6\u53d1\u4e8c\u7ea7\u7cbe\u786e\u786e\u8ba4)<br \/>\n  &#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;<br \/>\n  | \u7b2c\u4e8c\u7ea7: \u5d4c\u5165\u5f0f RocksDB \/ \u5c40\u90e8 Parquet \u5143\u6570\u636e\u7d22\u5f15          |<br \/>\n  &#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#043;<br \/>\n                   |<br \/>\n                   &#043;&#8212;&gt; \u673a\u5668\u4e8c\u6b21\u786e\u8ba4: \u786e\u5b9e\u5df2\u843d\u76d8 &#061;&#061;&#061;&gt; [ \u5f7b\u5e95\u8df3\u8fc7, \u907f\u514d\u91cd\u590d\u8ba1\u7b97 ]<br \/>\n                   &#043;&#8212;&gt; \u673a\u5668\u4e8c\u6b21\u786e\u8ba4: \u5c5e\u5047\u9633\u6027\u78b0\u649e &#061;&#061;&#061;&gt; [ \u7ea0\u504f\u653e\u884c: \u6267\u884c\u7279\u5f81\u8ba1\u7b97 ]<\/p>\n<hr \/>\n<h3>2. \u6838\u5fc3\u67b6\u6784&#xff1a;\u4e24\u7ea7\u53cc\u91cd\u8fc7\u6ee4\u4e0e\u65ad\u70b9\u81ea\u6108<\/h3>\n<p>\u5355\u7eaf\u4f7f\u7528\u5e03\u9686\u8fc7\u6ee4\u5668\u5b58\u5728\u4e00\u4e2a\u81f4\u547d\u5f31\u70b9&#xff1a;0.1% \u7684\u5047\u9633\u6027\u4f1a\u5bfc\u81f4 0.1% \u7684\u672a\u5904\u7406\u65b0\u6570\u636e\u88ab\u8bef\u5224\u4e3a\u201c\u5df2\u5904\u7406\u201d\u800c\u60e8\u906d\u6f0f\u7b97\u3002\u5728\u4e25\u8c28\u7684\u5b66\u672f\u8bed\u6599\u6216\u91d1\u878d\u7279\u5f81\u5de5\u7a0b\u4e2d&#xff0c;\u8fd9\u79cd\u201c\u9759\u9ed8\u6f0f\u7b97\u201d\u7edd\u5bf9\u4e0d\u53ef\u5bb9\u5fcd\u3002<\/p>\n<p>\u4e24\u7ea7\u53cc\u91cd\u8fc7\u6ee4\u67b6\u6784&#xff08;Two-Tier Architecture&#xff09;\u5b8c\u7f8e\u5316\u89e3\u4e86\u8fd9\u4e00\u77db\u76fe&#xff1a;<\/p>\n<li>\u7b2c\u4e00\u7ea7\u6781\u901f\u653e\u884c&#xff1a;\u5bf9\u8f93\u5165\u6570\u636e\u6267\u884c\u5e03\u9686\u8fc7\u6ee4\u5668\u63a2\u6d4b\u3002\u7edd\u5927\u591a\u6570&#xff08;99.9%&#xff09;\u672a\u5904\u7406\u7684\u65b0\u6837\u672c\u76f4\u63a5\u547d\u4e2d\u201c\u4e0d\u5b58\u5728\u201d&#xff0c;\u6beb\u79d2\u7ea7\u653e\u884c\u8fdb\u5165\u8ba1\u7b97\u6d41\u6c34\u7ebf&#xff0c;\u5b8c\u5168\u4e0d\u4ea7\u751f\u4efb\u4f55\u8fdc\u7a0b I\/O&#xff1b;<\/li>\n<li>\u7b2c\u4e8c\u7ea7\u515c\u5e95\u5bf9\u8d26&#xff1a;\u4ec5\u5f53\u5e03\u9686\u8fc7\u6ee4\u5668\u62a5\u8b66\u201c\u5b58\u5728\u201d\u65f6&#xff0c;\u7cfb\u7edf\u624d\u5bf9\u8be5\u6837\u672c\u53d1\u8d77\u7cbe\u51c6\u7684\u4e8c\u6b21\u6838\u5bf9&#xff08;\u67e5\u8be2\u672c\u5730\u5d4c\u5165\u5f0f RocksDB\u3001DuckDB \u5feb\u7167\u6216\u5df2\u843d\u76d8 Parquet \u7684 Footer \u7d22\u5f15&#xff09;\u3002\u6b64\u65f6\u53d1\u751f\u67e5\u8be2\u7684\u6d41\u91cf\u4ec5\u4e3a\u603b\u91cf\u7684 0.1%&#xff0c;\u5916\u90e8\u67e5\u8be2\u538b\u529b\u88ab\u524a\u51cf\u4e86 1,000 \u500d&#xff1b;<\/li>\n<li>\u96f6\u6f0f\u7b97\u4e0e\u96f6\u91cd\u590d&#xff1a;\u4e24\u7ea7\u534f\u4f5c\u786e\u4fdd\u4e86\u6570\u636e\u4e0d\u6f0f\u3001\u4e0d\u91cd&#xff0c;\u65ad\u70b9\u91cd\u542f\u65f6\u65e0\u9700\u91cd\u65b0\u5168\u91cf\u6d17\u724c\u3002<\/li>\n<hr \/>\n<h3>3. \u6838\u5fc3\u5b9e\u73b0&#xff1a;\u751f\u4ea7\u7ea7\u53cc\u5c42\u65ad\u70b9\u81ea\u6108\u5f15\u64ce\u4ee3\u7801<\/h3>\n<p>\u4ee5\u4e0b\u4e3a\u57fa\u4e8e Python \u4e0e mmh3&#xff08;MurmurHash3&#xff09;\u5b9e\u73b0\u7684\u9ad8\u53ef\u9760\u65ad\u70b9\u7eed\u7b97\u7ba1\u7406\u5668&#xff1a;<\/p>\n<p>import math<br \/>\nimport os<br \/>\nimport mmh3<br \/>\nfrom typing import List, Set<\/p>\n<p>class ScalableBloomFilter:<br \/>\n    &#034;&#034;&#034;\u57fa\u4e8e\u4f4d\u6570\u7ec4\u7684\u9ad8\u6027\u80fd\u5e03\u9686\u8fc7\u6ee4\u5668&#034;&#034;&#034;<br \/>\n    def __init__(self, expected_elements: int &#061; 10_000_000, false_positive_rate: float &#061; 0.001):<br \/>\n        self.n &#061; expected_elements<br \/>\n        self.p &#061; false_positive_rate<br \/>\n        # \u8ba1\u7b97\u6700\u4f18\u4f4d\u6570 m \u4e0e\u6700\u4f18\u54c8\u5e0c\u6570 k<br \/>\n        self.m &#061; int(- (self.n * math.log(self.p)) \/ (math.log(2) ** 2))<br \/>\n        self.k &#061; int((self.m \/ self.n) * math.log(2))<br \/>\n        # \u4f7f\u7528 bytearray \u5b58\u50a8\u5bc6\u96c6\u4f4d\u5411\u91cf<br \/>\n        self.byte_size &#061; (self.m &#043; 7) \/\/ 8<br \/>\n        self.bit_array &#061; bytearray(self.byte_size)<\/p>\n<p>    def add(self, key: str):<br \/>\n        for seed in range(self.k):<br \/>\n            # \u4f7f\u7528\u5e26\u79cd\u5b50\u7684 MurmurHash3 \u751f\u6210\u5747\u5300\u4f2a\u968f\u673a\u54c8\u5e0c<br \/>\n            digest &#061; mmh3.hash(key, seed, signed&#061;False) % self.m<br \/>\n            byte_idx &#061; digest \/\/ 8<br \/>\n            bit_idx &#061; digest % 8<br \/>\n            self.bit_array[byte_idx] |&#061; (1 &lt;&lt; bit_idx)<\/p>\n<p>    def contains(self, key: str) -&gt; bool:<br \/>\n        for seed in range(self.k):<br \/>\n            digest &#061; mmh3.hash(key, seed, signed&#061;False) % self.m<br \/>\n            byte_idx &#061; digest \/\/ 8<br \/>\n            bit_idx &#061; digest % 8<br \/>\n            if not (self.bit_array[byte_idx] &amp; (1 &lt;&lt; bit_idx)):<br \/>\n                return False # \u7edd\u5bf9\u4e0d\u5b58\u5728<br \/>\n        return True # \u7591\u4f3c\u5b58\u5728<\/p>\n<p>class TwoTierResumptionManager:<br \/>\n    &#034;&#034;&#034;\u4e24\u7ea7\u53cc\u91cd\u8fc7\u6ee4\u65ad\u70b9\u7eed\u7b97\u7ba1\u7406\u5668&#034;&#034;&#034;<br \/>\n    def __init__(self, committed_keys_store: Set[str], expected_capacity: int &#061; 10_000_000):<br \/>\n        # 1. \u521d\u59cb\u5316\u5185\u5b58\u5e03\u9686\u8fc7\u6ee4\u5668<br \/>\n        self.bloom &#061; ScalableBloomFilter(expected_capacity, false_positive_rate&#061;0.001)<br \/>\n        # 2. \u7b2c\u4e8c\u7ea7\u7cbe\u786e\u5b58\u50a8\u5f15\u7528 (\u5b9e\u9645\u751f\u4ea7\u4e2d\u5bf9\u63a5 RocksDB \u6216 DuckDB)<br \/>\n        self.exact_store &#061; committed_keys_store<\/p>\n<p>        # \u542f\u52a8\u65f6\u5feb\u901f\u5c06\u5df2\u77e5\u5df2\u63d0\u4ea4\u5386\u53f2\u88c5\u5165\u5e03\u9686\u8fc7\u6ee4\u5668<br \/>\n        for k in self.exact_store:<br \/>\n            self.bloom.add(k)<\/p>\n<p>    def should_process(self, doc_id: str) -&gt; bool:<br \/>\n        &#034;&#034;&#034;<br \/>\n        \u5224\u65ad\u6837\u672c\u662f\u5426\u9700\u8981\u6267\u884c\u8ba1\u7b97<br \/>\n        \u8fd4\u56de True: \u9700\u8981\u8ba1\u7b97; \u8fd4\u56de False: \u5df2\u5904\u7406\u8fc7&#xff0c;\u8df3\u8fc7<br \/>\n        &#034;&#034;&#034;<br \/>\n        # \u7b2c\u4e00\u7ea7: \u5e03\u9686\u6781\u901f\u5224\u5b9a<br \/>\n        if not self.bloom.contains(doc_id):<br \/>\n            return True # 100% \u672a\u5904\u7406&#xff0c;\u7acb\u5373\u653e\u884c<\/p>\n<p>        # \u7b2c\u4e8c\u7ea7: \u547d\u4e2d\u5e03\u9686\u62a5\u8b66&#xff0c;\u5411\u7cbe\u51c6\u5b58\u50a8\u53d1\u8d77\u4e8c\u6b21\u6838\u9a8c<br \/>\n        if doc_id in self.exact_store:<br \/>\n            return False # \u786e\u5b9e\u5df2\u7ecf\u843d\u76d8&#xff0c;\u8df3\u8fc7<\/p>\n<p>        # \u5c5e\u5047\u9633\u6027\u78b0\u649e&#xff0c;\u5b9e\u9645\u672a\u5904\u7406&#xff0c;\u653e\u884c\u8ba1\u7b97<br \/>\n        return True<\/p>\n<p>    def mark_completed(self, doc_id: str):<br \/>\n        &#034;&#034;&#034;\u6837\u672c\u6210\u529f\u8ba1\u7b97\u5e76\u843d\u76d8\u540e\u8c03\u7528&#034;&#034;&#034;<br \/>\n        self.bloom.add(doc_id)<br \/>\n        self.exact_store.add(doc_id)<\/p>\n<hr \/>\n<h3>4. \u538b\u529b\u6d4b\u8bd5&#xff1a;5 \u4ebf\u6761\u8bb0\u5f55\u65ad\u70b9\u6062\u590d\u6027\u80fd\u5bf9\u51b3<\/h3>\n<p>\u6211\u4eec\u5728\u7531 32 \u4e2a Worker \u7ec4\u6210\u7684\u79bb\u7ebf\u5904\u7406\u96c6\u7fa4\u4e0a&#xff0c;\u6a21\u62df\u4e86 5 \u4ebf\u6761\u591a\u6a21\u6001\u6837\u672c\u5728\u6267\u884c\u5230\u7b2c 3.5 \u4ebf\u6761\u65f6\u88ab\u6574\u4f53\u5f3a\u6740\u3001\u968f\u4e4b\u6267\u884c\u51b7\u542f\u52a8\u65ad\u70b9\u6062\u590d\u7684\u6781\u9650\u573a\u666f\u3002<\/p>\n<p>\u5bf9\u6bd4\u8bc4\u6d4b\u65b9\u6848\u5305\u62ec&#xff1a;<\/p>\n<li>\u5168\u91cf\u626b\u63cf\u8fdc\u7a0b Parquet \u5143\u6570\u636e&#xff08;Scan All Files&#xff09;&#xff1b;<\/li>\n<li>\u8fdc\u7a0b Redis \u96c6\u7fa4\u5168\u5c40 Set \u67e5\u91cd&#xff08;Redis Set Lookup&#xff09;&#xff1b;<\/li>\n<li>\u672c\u5730 Python \u54c8\u5e0c\u96c6\u5408&#xff08;In-Memory HashSet&#xff09;&#xff1b;<\/li>\n<li>\u672c\u65b9\u6848\u5e03\u9686\u53cc\u5c42\u8fc7\u6ee4\u65ad\u70b9\u81ea\u6108&#xff08;Two-Tier BloomFilter&#xff09;\u3002<\/li>\n<table>\n<tr>\u65ad\u70b9\u67e5\u91cd\u6062\u590d\u65b9\u6848\u8282\u70b9\u51b7\u542f\u52a8\u6062\u590d\u8017\u65f6\u5355\u8282\u70b9\u5e38\u9a7b\u5185\u5b58\u5f00\u9500\u67e5\u91cd\u7f51\u7edc\u8c03\u7528 QPS\u5047\u9633\u6027\u6f0f\u7b97\u7387\u91cd\u590d\u8ba1\u7b97\u7387<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">\u5168\u91cf\u626b\u63cf\u5df2\u843d\u76d8 Parquet<\/td>\n<td align=\"left\">28.5 \u5206\u949f (I\/O \u98ce\u66b4)<\/td>\n<td align=\"left\">1.2 GB<\/td>\n<td align=\"left\">0<\/td>\n<td align=\"left\">0.00%<\/td>\n<td align=\"left\">0.00%<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u8fdc\u7a0b Redis Set \u96c6\u4e2d\u67e5\u91cd<\/td>\n<td align=\"left\">15.0 \u79d2<\/td>\n<td align=\"left\">150 MB (\u8282\u70b9) \/ 85GB (Redis)<\/td>\n<td align=\"left\">280,000 QPS (\u6253\u7206\u7f51\u5361)<\/td>\n<td align=\"left\">0.00%<\/td>\n<td align=\"left\">0.00%<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u672c\u5730 In-Memory Set<\/td>\n<td align=\"left\">\u8fdb\u7a0b\u76f4\u63a5 OOM \u5d29\u6e83<\/td>\n<td align=\"left\">&gt; 18.0 GB (\u8d85\u51fa\u9650\u5236)<\/td>\n<td align=\"left\">&#8211;<\/td>\n<td align=\"left\">&#8211;<\/td>\n<td align=\"left\">&#8211;<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u5e03\u9686\u53cc\u5c42\u8fc7\u6ee4 (\u672c\u65b9\u6848)<\/td>\n<td align=\"left\">1.8 \u79d2 (\u6781\u901f\u5c31\u7eea)<\/td>\n<td align=\"left\">598 MB (\u5e73\u7a33\u53ef\u63a7)<\/td>\n<td align=\"left\">280 QPS (\u8fd1\u4e4e\u96f6\u538b\u529b)<\/td>\n<td align=\"left\">0.00% (\u7edd\u5bf9\u96f6\u6f0f\u7b97)<\/td>\n<td align=\"left\">0.00% (\u4e25\u683c\u5e42\u7b49)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b9e\u6d4b\u6570\u636e\u8bc1\u660e&#xff1a;<\/p>\n<li>\u79d2\u7ea7\u77ac\u65f6\u81ea\u6108&#xff1a;\u4ece\u539f\u672c\u9700\u8981\u8017\u8d39\u8fd1\u534a\u5c0f\u65f6\u626b\u76d8\u7684\u6f2b\u957f\u6062\u590d&#xff0c;\u7f29\u51cf\u81f3 1.8 \u79d2 \u5b8c\u6210\u5185\u5b58\u4f4d\u56fe\u52a0\u8f7d&#xff0c;\u65b0 Worker \u77ac\u95f4\u62c9\u8d77\u5e76\u5168\u901f\u6295\u5165\u8ba1\u7b97&#xff1b;<\/li>\n<li>\u7f51\u7edc I\/O \u524a\u51cf 99.9%&#xff1a;\u5728\u5904\u7406\u672a\u8ba1\u7b97\u7684 1.5 \u4ebf\u6761\u65b0\u6570\u636e\u65f6&#xff0c;\u7b2c\u4e00\u7ea7\u5e03\u9686\u8fc7\u6ee4\u5668\u5c06 99.9% \u7684\u8bf7\u6c42\u5728\u5185\u5b58\u76f4\u63a5\u653e\u884c&#xff0c;\u5411\u4e8c\u7ea7\u5b58\u50a8\u53d1\u8d77\u7684\u70b9\u67e5 QPS \u4ece\u539f\u672c\u8db3\u4ee5\u6253\u5d29\u7f51\u7edc\u7684 28 \u4e07\u6b21\u5267\u964d\u81f3 280 \u6b21&#xff0c;\u5b8c\u5168\u6d88\u9664\u4e86\u57fa\u7840\u8bbe\u65bd\u7f51\u7edc\u74f6\u9888&#xff1b;<\/li>\n<li>\u5185\u5b58\u4e0e\u51c6\u786e\u7387\u517c\u5f97&#xff1a;\u5355\u673a\u5185\u5b58\u5360\u7528\u4e25\u683c\u9501\u5b9a\u5728 600MB \u4ee5\u5185&#xff0c;\u540c\u65f6\u5b9e\u73b0\u4e86\u7edd\u5bf9\u96f6\u6570\u636e\u9057\u6f0f\u4e0e\u7edd\u5bf9\u96f6\u91cd\u590d\u8ba1\u7b97\u3002<\/li>\n<hr \/>\n<h3>5. \u751f\u4ea7\u73af\u5883\u72b6\u6001\u6301\u4e45\u5316\u6700\u4f73\u5b9e\u8df5<\/h3>\n<li>\u5e03\u9686\u4f4d\u56fe\u7684\u4e8c\u8fdb\u5236\u5feb\u7167\u5bfc\u51fa&#xff1a;\u5e03\u9686\u8fc7\u6ee4\u5668\u672c\u8d28\u4e0a\u662f\u4e00\u4e2a\u8fde\u7eed\u7684 bytearray\u3002\u6bcf\u6b21\u8ba1\u7b97\u9636\u6bb5\u6027 Checkpoint \u65f6&#xff0c;\u53ef\u76f4\u63a5\u5c06\u8be5\u5b57\u8282\u6d41\u4ee5\u5355\u6587\u4ef6\u5f62\u5f0f\u5199\u5165\u672c\u5730 SSD \u6216 S3&#xff08;\u5982 bloom_state.bin&#xff09;\u3002Worker \u91cd\u542f\u65f6\u53ea\u9700\u4f7f\u7528\u5185\u5b58\u6620\u5c04&#xff08;mmap&#xff09;\u5728\u6570\u6beb\u79d2\u5185\u76f4\u63a5\u52a0\u8f7d\u6620\u5c04\u81f3\u865a\u62df\u5185\u5b58&#xff0c;\u514d\u9664\u9010\u6761\u54c8\u5e0c\u91cd\u5efa\u5f00\u9500\u3002<\/li>\n<li>\u6309\u5206\u7247\u52a8\u6001\u5206\u88c2&#xff08;Partitioned Bloom Filters&#xff09;&#xff1a;\u5728\u9762\u5411\u6301\u7eed\u65e0\u8fb9\u754c\u589e\u957f\u7684\u6d41\u5f0f\u6570\u636e\u65f6&#xff0c;\u5355\u4e00\u4f4d\u6570\u7ec4\u8fbe\u5230\u9884\u671f\u5bb9\u91cf\u540e\u8bef\u5224\u7387\u4f1a\u722c\u5347\u3002\u5e94\u91c7\u7528\u5e26\u65f6\u95f4\u7a97\u53e3\u5206\u7247\u7684\u5c42\u7ea7\u5e03\u9686\u8fc7\u6ee4\u5668&#xff08;Scalable Bloom Filter&#xff09;&#xff0c;\u6bcf\u9694 24 \u5c0f\u65f6\u6216\u6bcf\u6ee1 5,000 \u4e07\u6761\u52a8\u6001\u751f\u6210\u4e00\u4e2a\u65b0\u4f4d\u5c42&#xff0c;\u4fdd\u8bc1\u8bef\u5224\u7387\u6052\u5b9a\u5c0f\u4e8e 0.1%\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5927\u89c4\u6a21\u8bed\u8a00\u6a21\u578b\u9884\u8bad\u7ec3\u8bed\u6599\u6e05\u6d17\u3001\u591a\u6a21\u6001\u7279\u5f81\u5de5\u7a0b\u4ee5\u53ca\u5168\u7f51\u722c\u866b\u6293\u53d6\u7ba1\u9053\u4e2d&#xff0c;\u6570\u636e\u89c4\u6a21\u5f80\u5f80\u8fbe\u5230\u6570\u5341\u4ebf\u7ea7\u522b\u3002\u8fd9\u7c7b\u79bb\u7ebf\u6d41\u6c34\u7ebf\u901a\u5e38\u9700\u8981\u5728\u6570\u5341\u53f0\u8ba1\u7b97\u670d\u52a1\u5668\u4e0a\u6301\u7eed\u8fd0\u884c\u6570\u5929\u751a\u81f3\u6570\u5468\u3002\u5728\u6f2b\u957f\u7684\u6267\u884c\u5468\u671f\u4e2d&#xff0c;\u8ba1\u7b97\u8282\u70b9\u906d\u9047\u786c\u4ef6\u77ac\u65ad\u3001\u7f51\u7edc\u95ea\u65ad\u6216\u56e0\u96c6\u7fa4\u8d44\u6e90\u62a2\u5360\u88ab\u8c03\u5ea6\u5668\u5f3a\u884c\u9010\u51fa&#xff08;Eviction&#xff09;\u5c5e\u4e8e\u5e38\u6001\u5316\u4e8b\u4ef6\u3002<br \/>\n\u5f53\u4e00\u4e2a\u8fd0\u884c\u4e86 48 \u5c0f\u65f6\u3001\u5df2\u5904\u7406\u5b8c 70% \u6570\u636e&#xff08;\u4f8b\u5982 5 \u4ebf\u6761\u6587\u6863&#xff09;\u7684\u7279\u5f81\u7ba1\u9053\u88ab\u8feb\u91cd\u542f\u62c9\u8d77\u65b0 Worker \u65f6&amp;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,50,207,86],"topic":[],"class_list":["post-117253","post","type-post","status-publish","format-standard","hentry","category-server","tag-python","tag-50","tag-207","tag-86"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5206\u5e03\u5f0f\u7279\u5f81\u5de5\u7a0b\u65ad\u70b9\u7eed\u7b97\uff1a\u57fa\u4e8e\u5e03\u9686\u8fc7\u6ee4\u5668\uff08BloomFilter\uff09\u7684\u9884\u67e5\u91cd\u4e0e\u810f\u6570\u636e\u81ea\u6108 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/117253.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5206\u5e03\u5f0f\u7279\u5f81\u5de5\u7a0b\u65ad\u70b9\u7eed\u7b97\uff1a\u57fa\u4e8e\u5e03\u9686\u8fc7\u6ee4\u5668\uff08BloomFilter\uff09\u7684\u9884\u67e5\u91cd\u4e0e\u810f\u6570\u636e\u81ea\u6108 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728\u5927\u89c4\u6a21\u8bed\u8a00\u6a21\u578b\u9884\u8bad\u7ec3\u8bed\u6599\u6e05\u6d17\u3001\u591a\u6a21\u6001\u7279\u5f81\u5de5\u7a0b\u4ee5\u53ca\u5168\u7f51\u722c\u866b\u6293\u53d6\u7ba1\u9053\u4e2d&#xff0c;\u6570\u636e\u89c4\u6a21\u5f80\u5f80\u8fbe\u5230\u6570\u5341\u4ebf\u7ea7\u522b\u3002\u8fd9\u7c7b\u79bb\u7ebf\u6d41\u6c34\u7ebf\u901a\u5e38\u9700\u8981\u5728\u6570\u5341\u53f0\u8ba1\u7b97\u670d\u52a1\u5668\u4e0a\u6301\u7eed\u8fd0\u884c\u6570\u5929\u751a\u81f3\u6570\u5468\u3002\u5728\u6f2b\u957f\u7684\u6267\u884c\u5468\u671f\u4e2d&#xff0c;\u8ba1\u7b97\u8282\u70b9\u906d\u9047\u786c\u4ef6\u77ac\u65ad\u3001\u7f51\u7edc\u95ea\u65ad\u6216\u56e0\u96c6\u7fa4\u8d44\u6e90\u62a2\u5360\u88ab\u8c03\u5ea6\u5668\u5f3a\u884c\u9010\u51fa&#xff08;Eviction&#xff09;\u5c5e\u4e8e\u5e38\u6001\u5316\u4e8b\u4ef6\u3002 \u5f53\u4e00\u4e2a\u8fd0\u884c\u4e86 48 \u5c0f\u65f6\u3001\u5df2\u5904\u7406\u5b8c 70% \u6570\u636e&#xff08;\u4f8b\u5982 5 \u4ebf\u6761\u6587\u6863&#xff09;\u7684\u7279\u5f81\u7ba1\u9053\u88ab\u8feb\u91cd\u542f\u62c9\u8d77\u65b0 Worker \u65f6&amp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/117253.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-22T15:48:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261022154855-6ada30670af93.webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117253.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/117253.html\",\"name\":\"\u5206\u5e03\u5f0f\u7279\u5f81\u5de5\u7a0b\u65ad\u70b9\u7eed\u7b97\uff1a\u57fa\u4e8e\u5e03\u9686\u8fc7\u6ee4\u5668\uff08BloomFilter\uff09\u7684\u9884\u67e5\u91cd\u4e0e\u810f\u6570\u636e\u81ea\u6108 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-22T15:48:56+00:00\",\"dateModified\":\"2026-10-22T15:48:56+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/117253.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/117253.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/117253.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5206\u5e03\u5f0f\u7279\u5f81\u5de5\u7a0b\u65ad\u70b9\u7eed\u7b97\uff1a\u57fa\u4e8e\u5e03\u9686\u8fc7\u6ee4\u5668\uff08BloomFilter\uff09\u7684\u9884\u67e5\u91cd\u4e0e\u810f\u6570\u636e\u81ea\u6108\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5206\u5e03\u5f0f\u7279\u5f81\u5de5\u7a0b\u65ad\u70b9\u7eed\u7b97\uff1a\u57fa\u4e8e\u5e03\u9686\u8fc7\u6ee4\u5668\uff08BloomFilter\uff09\u7684\u9884\u67e5\u91cd\u4e0e\u810f\u6570\u636e\u81ea\u6108 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/117253.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5206\u5e03\u5f0f\u7279\u5f81\u5de5\u7a0b\u65ad\u70b9\u7eed\u7b97\uff1a\u57fa\u4e8e\u5e03\u9686\u8fc7\u6ee4\u5668\uff08BloomFilter\uff09\u7684\u9884\u67e5\u91cd\u4e0e\u810f\u6570\u636e\u81ea\u6108 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728\u5927\u89c4\u6a21\u8bed\u8a00\u6a21\u578b\u9884\u8bad\u7ec3\u8bed\u6599\u6e05\u6d17\u3001\u591a\u6a21\u6001\u7279\u5f81\u5de5\u7a0b\u4ee5\u53ca\u5168\u7f51\u722c\u866b\u6293\u53d6\u7ba1\u9053\u4e2d&#xff0c;\u6570\u636e\u89c4\u6a21\u5f80\u5f80\u8fbe\u5230\u6570\u5341\u4ebf\u7ea7\u522b\u3002\u8fd9\u7c7b\u79bb\u7ebf\u6d41\u6c34\u7ebf\u901a\u5e38\u9700\u8981\u5728\u6570\u5341\u53f0\u8ba1\u7b97\u670d\u52a1\u5668\u4e0a\u6301\u7eed\u8fd0\u884c\u6570\u5929\u751a\u81f3\u6570\u5468\u3002\u5728\u6f2b\u957f\u7684\u6267\u884c\u5468\u671f\u4e2d&#xff0c;\u8ba1\u7b97\u8282\u70b9\u906d\u9047\u786c\u4ef6\u77ac\u65ad\u3001\u7f51\u7edc\u95ea\u65ad\u6216\u56e0\u96c6\u7fa4\u8d44\u6e90\u62a2\u5360\u88ab\u8c03\u5ea6\u5668\u5f3a\u884c\u9010\u51fa&#xff08;Eviction&#xff09;\u5c5e\u4e8e\u5e38\u6001\u5316\u4e8b\u4ef6\u3002 \u5f53\u4e00\u4e2a\u8fd0\u884c\u4e86 48 \u5c0f\u65f6\u3001\u5df2\u5904\u7406\u5b8c 70% \u6570\u636e&#xff08;\u4f8b\u5982 5 \u4ebf\u6761\u6587\u6863&#xff09;\u7684\u7279\u5f81\u7ba1\u9053\u88ab\u8feb\u91cd\u542f\u62c9\u8d77\u65b0 Worker \u65f6&amp;","og_url":"https:\/\/www.wsisp.com\/helps\/117253.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-22T15:48:56+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261022154855-6ada30670af93.webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/117253.html","url":"https:\/\/www.wsisp.com\/helps\/117253.html","name":"\u5206\u5e03\u5f0f\u7279\u5f81\u5de5\u7a0b\u65ad\u70b9\u7eed\u7b97\uff1a\u57fa\u4e8e\u5e03\u9686\u8fc7\u6ee4\u5668\uff08BloomFilter\uff09\u7684\u9884\u67e5\u91cd\u4e0e\u810f\u6570\u636e\u81ea\u6108 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-22T15:48:56+00:00","dateModified":"2026-10-22T15:48:56+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/117253.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/117253.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/117253.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5206\u5e03\u5f0f\u7279\u5f81\u5de5\u7a0b\u65ad\u70b9\u7eed\u7b97\uff1a\u57fa\u4e8e\u5e03\u9686\u8fc7\u6ee4\u5668\uff08BloomFilter\uff09\u7684\u9884\u67e5\u91cd\u4e0e\u810f\u6570\u636e\u81ea\u6108"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/117253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=117253"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/117253\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=117253"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=117253"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=117253"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=117253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}