Python whoosh 如何优化加速
資深大佬 : lixuda 0
第一次使用 whoosh 数据量 300 万条,索引后 1.5G 文件
根据文档查询,时间经常需要 7 秒以上,问问大神如何加速优化下?感谢
ix = open_dir("indexdir") with ix.searcher() as searcher: myquery = Term("subject", "关键词") results = searcher.search(myquery,limit=10) for result1 in results: print(dict(result1))
大佬有話說 (20)