oracle - 带有“不包含”的 Oracle 文本非常慢
问题描述
我有一张包含数百万条记录的表格,Oracle Text 完美无缺。
select * from table1 where contains(col1, 'some text') > 0
但如果我添加not
它会变得非常慢。
select * from table1 where contains(col1, 'some text') > 0 and (not contains(col1, 'some text') > 0)
或者
select * from table1 where contains(col1, 'some text') > 0 and (
contains(col1, 'some text') = 0)
第一个直接查询在几分之一秒内执行,第二个需要几分钟。
有什么解决办法吗?
解决方案
推荐阅读
- node.js - 在 Microsoft Bot 框架 (node.js) 中处理网关超时
- node.js - 处理对 React JS 应用程序的 Post 请求
- c# - 如何从 Oracle PL/SQL 获取结果集?
- cookies - 网站上嵌入视频的 YouTube 和 GDPR 合规性
- sqlite - 时间格式和转换 SQLite DB
- php - 提交重定向到另一个页面后不使用 PHP
- sas - 使用 PROC FREQ 内存不足
- perforce - 知道搁置的变更列表的内容最后一次修改的时间
- android - 用于中文(allwinner arm cpu)构建的 AOSP
- php - 如何将大量内容从多维数组存储到 mysql 数据库中?