1.表:CREATE TABLE T(ID NUMBER(10) PRIMARY KEY, TITLE VARCHAR2(20), CONTENT CLOB);
2.插入记录略
3.语法分析器
begin ctx_ddl.CREATE_preference('t_lexer','chinese_lexer'); end;
4.多字段联合索引设置
Connected as ctxsys:
begin ctx_ddl.CREATE_preference('tmds', 'MULTI_COLUMN_DATASTORE');end;
begin ctx_ddl.set_attribute('tmds', 'columns', 'title, content');end;
5.建立索引
CREATE index qbss.t_idx on qbss.t(title) indextype is ctxsys.context parameters('datastore ctxsys.tmds lexer t_lexer');请高手指点如何优化
2.插入记录略
3.语法分析器
begin ctx_ddl.CREATE_preference('t_lexer','chinese_lexer'); end;
4.多字段联合索引设置
Connected as ctxsys:
begin ctx_ddl.CREATE_preference('tmds', 'MULTI_COLUMN_DATASTORE');end;
begin ctx_ddl.set_attribute('tmds', 'columns', 'title, content');end;
5.建立索引
CREATE index qbss.t_idx on qbss.t(title) indextype is ctxsys.context parameters('datastore ctxsys.tmds lexer t_lexer');请高手指点如何优化
解决方案 »
- 性能慢,该如何优化?谢谢!
- 继昨天的提问关于rhelAS3U3安装ORACLE9I之后,现导入数据的错误,烦扰前辈们指点一下
- 请教几个概念问题。Oracle会话(session)、连接数、并发用户连接数怎么区别?如何通过SQL查询得到?目前好像没有一个特定的答案。
- oracle 视图的查询问题,高手快来看看啊
- Oracle 10g怎么重新注册哈~
- 如何得知某个字段比如(u_id)都在哪些表中。
- 向已有表里添加新列
- $ORACLE_HOME/bin/sqlldr是什么意思?
- 刚学Oracle,有个问题想请教,怎么连上Oracle Management Server(L)?
- oracle导出错误!
- OCCI 遇到的困惑,请高手指教!!!!!
- Oracle中主键ID自增长
2,如果经常更新和修改可以设置lob segment;参考lob developer guide
select * from t where contains(title,'测试')>0 and title='aTitle';
上面2条SQL语句在查询有10万条以上结果集时花的时间相差很大,后面的慢多了,但必须要给定限制条件,如何解决是好?
select * from t where contains(title,'测试')>0 and title='aTitle';
改为
select * from t where title='aTitle' and contains(title,'测试')>0;
估计会比你第一条的还要快上很多.