我有一个非常大的字典清单(~100 K):
[{'sequence': 'read the rest of this note', 'score': 0.22612378001213074, 'token': 3805, 'token_str': 'note'}, {'sequence': 'read the rest of this page', 'score'
我试图返回给定列有一个子字符串的所有记录,该子字符串至少匹配一个非常大的令牌集的一个令牌。我搜索的列数量也相当大。做这件事最好的方法是什么?我知道最基本的方法是: (col1 LIKE '%token1%' OR col1 LIKE '%token2%' OR...OR
col2 LIKE '%token1%' OR col1 LIKE '%token2%' OR...