Python3WebSpider / ScrapyRedisBloomFilter

Scrapy Redis Bloom Filter
173 stars 52 forks source link

当BLOOMFILTER_BIT设置为30时, 起不到去重效果。 #2

Open Friday21 opened 5 years ago

Friday21 commented 5 years ago

当BLOOMFILTER_BIT设置为30时, 起不到去重效果。

> fp = '75d6587d87b3f4f3aa574b33dbd69ceeb9eafe7b'
> bf = BloomFilter(server, 'ldy4', 30, 6)
> bf.exists(fp)
0
> bf.insert(fp)
> bf.exists(fp)
0

当BLOOMFILTER_BIT 设置为22时没有问题, 不知道是什么原因

aesdhj commented 5 years ago

当BLOOMFILTER_BIT设置为30时, 起不到去重效果。

> fp = '75d6587d87b3f4f3aa574b33dbd69ceeb9eafe7b'
> bf = BloomFilter(server, 'ldy4', 30, 6)
> bf.exists(fp)
0
> bf.insert(fp)
> bf.exists(fp)
0

当BLOOMFILTER_BIT 设置为22时没有问题, 不知道是什么原因

我也在看这本书,为这本书建了一个QQ群805370297,方便大家讨论