546@iquery@ALIDW>desciquery.lpx_kw_tmp00
Name Null? Type
------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------
KEYWORDS VARCHAR2(256)
COUNTRY_ID VARCHAR2(10)
COUNTRY_NAME VARCHAR2(256)
REGION_ID NUMBER
REGIN_NAME VARCHAR2(128)
PRE_REGIN_ID NUMBER
PRE_REGIN_ENAME VARCHAR2(128)
SRH_PV_THIS_5MON NUMBER
546@iquery@ALIDW>selectcount(1) from iquery.lpx_kw_tmp00;
COUNT(1)
----------
24600608
546@iquery@ALIDW>select* from iquery.lpx_kw_tmp00 where keywords = 'full iphone 4 kits';
KEYWORDS
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
COUNTRY_ID
----------
COUNTRY_NAME
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
REGION_ID REGIN_NAME PRE_REGIN_ID
------------------------------------------------------------------------------------------------------------------------------------------------------
PRE_REGIN_ENAME SRH_PV_THIS_5MON
------------------------------------------------------------------------------------------------------------------------------------------------
full iphone 4 kits
CN
China
7 Asia 2
Asia1
full iphone 4 kits
FR
France
17 Western Europe 5
Europe3
full iphone 4 kits
HK
Hong Kong
7 Asia 2
Asia2
Elapsed: 00:01:17.86
425@iquery@ALIDW>explain plan for select * fromiquery.lpx_kw_tmp00 where keywords = 'full iphone 4 kits';
Explained.
Elapsed: 00:00:01.17
425@iquery@ALIDW>select* from table(dbms_xplan.display());
PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Plan hash value:4249314168
----------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
----------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 614 | 262K| 26312 (3)| 00:07:54 |
|* 1 | TABLE ACCESS FULL| LPX_KW_TMP00 | 614 | 262K| 26312 (3)| 00:07:54 |
----------------------------------------------------------------------------------
Predicate Information(identified by operation id):
---------------------------------------------------
1 -filter(LOWER(TRIM("KEYWORDS"))='full iphone 4 kits')
Note
-----
- dynamic sampling used for this statement
17 rows selected.
--创建索引
546@iquery@ALIDW>CREATEINDEX iquery.lpx_kw_tmp00_ind ON iquery.lpx_kw_tmp00(keywords);
Index created.
Elapsed: 00:02:35.29
546@iquery@ALIDW>select* from iquery.lpx_kw_tmp00 where keywords = 'full iphone 4 kits';
KEYWORDS
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
COUNTRY_ID
----------
COUNTRY_NAME
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
REGION_ID REGIN_NAME PRE_REGIN_ID
------------------------------------------------------------------------------------------------------------------------------------------------------
PRE_REGIN_ENAME SRH_PV_THIS_5MON
------------------------------------------------------------------------------------------------------------------------------------------------
full iphone 4 kits
CN
China
7 Asia 2
Asia1
full iphone 4 kits
HK
Hong Kong
7 Asia 2
Asia2
full iphone 4 kits
FR
France
17 Western Europe 5
Europe3
Elapsed: 00:00:00.82
425@iquery@ALIDW>explainplan for select * from iquery.lpx_kw_tmp00 where keywords = 'full iphone 4kits';
Explained.
Elapsed: 00:00:00.81
425@iquery@ALIDW>select* from table(dbms_xplan.display());
PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Plan hash value:3550892647
------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 3 | 1314 | 6 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| LPX_KW_TMP00 | 3 | 1314 | 6 (0)| 00:00:01 |
|* 2 | INDEX RANGE SCAN |LPX_KW_TMP00_IND | 3 | | 3 (0)| 00:00:01 |
------------------------------------------------------------------------------------------------
Predicate Information(identified by operation id):
---------------------------------------------------
2 - access("KEYWORDS"='full iphone4 kits')
Note
-----
- dynamic sampling used for this statement
18 rows selected.
Elapsed: 00:00:00.01
--like@str+%
425@iquery@ALIDW>select* from iquery.lpx_kw_tmp00 where keywords LIKE 'full iphone 4 kits%';
KEYWORDS
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
COUNTRY_ID
----------
COUNTRY_NAME
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
REGION_ID REGIN_NAME PRE_REGIN_ID
------------------------------------------------------------------------------------------------------------------------------------------------------
PRE_REGIN_ENAME SRH_PV_THIS_5MON
------------------------------------------------------------------------------------------------------------------------------------------------
full iphone 4 kits
CN
China
7 Asia 2
Asia1
full iphone 4 kits
HK
Hong Kong
7 Asia 2
Asia2
full iphone 4 kits
FR
France
17 Western Europe 5
Europe3
Elapsed: 00:00:01.01
425@iquery@ALIDW>explainplan for select * from iquery.lpx_kw_tmp00 where keywords LIKE 'full iphone 4kits%';
Explained.
Elapsed: 00:00:00.82
425@iquery@ALIDW>select* from table(dbms_xplan.display());
PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Plan hash value:3550892647
------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 3 | 1314 | 6 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| LPX_KW_TMP00 | 3 | 1314 | 6 (0)| 00:00:01 |
|* 2 | INDEX RANGE SCAN |LPX_KW_TMP00_IND | 3 | | 3 (0)| 00:00:01 |
------------------------------------------------------------------------------------------------
Predicate Information(identified by operation id):
---------------------------------------------------
2 - access("KEYWORDS" LIKE 'fulliphone 4 kits%')
filter("KEYWORDS" LIKE 'fulliphone 4 kits%')
Note
-----
- dynamic sampling used for this statement
19 rows selected.
Elapsed: 00:00:00.01
--
--like%+@str
546@iquery@ALIDW>select* from iquery.lpx_kw_tmp00 where keywords LIKE '%full iphone 4 kits';
KEYWORDS
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
COUNTRY_ID
----------
COUNTRY_NAME
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
REGION_ID REGIN_NAME PRE_REGIN_ID
------------------------------------------------------------------------------------------------------------------------------------------------------
PRE_REGIN_ENAME SRH_PV_THIS_5MON
------------------------------------------------------------------------------------------------------------------------------------------------
full iphone 4 kits
CN
China
7 Asia 2
Asia1
full iphone 4 kits
FR
France
17 Western Europe 5
Europe3
shinning full iphone 4 kits
FR
France
17 Western Europe 5
Europe3
full iphone 4 kits
HK
Hong Kong
7 Asia 2
Asia2
shinning blue fulliphone 4 kits
FR
France
17 Western Europe 5
Europe1
shinning full iphone4 kits
FR
France
17 Western Europe 5
Europe1
purple full iphone 4kits
FR
France
17 Western Europe 5
Europe2
7 rows selected.
Elapsed: 00:01:04.91
425@iquery@ALIDW>explainplan for select * from iquery.lpx_kw_tmp00 where keywords LIKE '%full iphone 4kits';
Explained.
Elapsed: 00:00:00.02
425@iquery@ALIDW>select* from table(dbms_xplan.display());
PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Plan hash value:4249314168
----------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
----------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 614 | 262K| 26032 (2)| 00:07:49 |
|* 1 | TABLE ACCESS FULL| LPX_KW_TMP00 | 614 | 262K| 26032 (2)| 00:07:49 |
----------------------------------------------------------------------------------
Predicate Information(identified by operation id):
---------------------------------------------------
1 - filter("KEYWORDS" LIKE '%fulliphone 4 kits')
Note
-----
- dynamic sampling used for this statement
17 rows selected.
Elapsed: 00:00:00.01
546@iquery@ALIDW>desciquery.lpx_kw_tmp00
Name Null? Type
------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------
KEYWORDS VARCHAR2(256)
COUNTRY_ID VARCHAR2(10)
COUNTRY_NAME VARCHAR2(256)
REGION_ID NUMBER
REGIN_NAME VARCHAR2(128)
PRE_REGIN_ID NUMBER
PRE_REGIN_ENAME VARCHAR2(128)
SRH_PV_THIS_5MON NUMBER
546@iquery@ALIDW>selectcount(1) from iquery.lpx_kw_tmp00;
COUNT(1)
----------
24600608
546@iquery@ALIDW>select* from iquery.lpx_kw_tmp00 where keywords = 'full iphone 4 kits';
KEYWORDS
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
COUNTRY_ID
----------
COUNTRY_NAME
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
REGION_ID REGIN_NAME PRE_REGIN_ID
------------------------------------------------------------------------------------------------------------------------------------------------------
PRE_REGIN_ENAME SRH_PV_THIS_5MON
------------------------------------------------------------------------------------------------------------------------------------------------
full iphone 4 kits
CN
China
7 Asia 2
Asia1
full iphone 4 kits
FR
France
17 Western Europe 5
Europe3
full iphone 4 kits
HK
Hong Kong
7 Asia 2
Asia2
Elapsed: 00:01:17.86
425@iquery@ALIDW>explain plan for select * fromiquery.lpx_kw_tmp00 where keywords = 'full iphone 4 kits';
Explained.
Elapsed: 00:00:01.17
425@iquery@ALIDW>select* from table(dbms_xplan.display());
PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Plan hash value:4249314168
----------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
----------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 614 | 262K| 26312 (3)| 00:07:54 |
|* 1 | TABLE ACCESS FULL| LPX_KW_TMP00 | 614 | 262K| 26312 (3)| 00:07:54 |
----------------------------------------------------------------------------------
Predicate Information(identified by operation id):
---------------------------------------------------
1 -filter(LOWER(TRIM("KEYWORDS"))='full iphone 4 kits')
Note
-----
- dynamic sampling used for this statement
17 rows selected.
--创建索引
546@iquery@ALIDW>CREATEINDEX iquery.lpx_kw_tmp00_ind ON iquery.lpx_kw_tmp00(keywords);
Index created.
Elapsed: 00:02:35.29
546@iquery@ALIDW>select* from iquery.lpx_kw_tmp00 where keywords = 'full iphone 4 kits';
KEYWORDS
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
COUNTRY_ID
----------
COUNTRY_NAME
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
REGION_ID REGIN_NAME PRE_REGIN_ID
------------------------------------------------------------------------------------------------------------------------------------------------------
PRE_REGIN_ENAME SRH_PV_THIS_5MON
------------------------------------------------------------------------------------------------------------------------------------------------
full iphone 4 kits
CN
China
7 Asia 2
Asia1
full iphone 4 kits
HK
Hong Kong
7 Asia 2
Asia2
full iphone 4 kits
FR
France
17 Western Europe 5
Europe3
Elapsed: 00:00:00.82
425@iquery@ALIDW>explainplan for select * from iquery.lpx_kw_tmp00 where keywords = 'full iphone 4kits';
Explained.
Elapsed: 00:00:00.81
425@iquery@ALIDW>select* from table(dbms_xplan.display());
PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Plan hash value:3550892647
------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 3 | 1314 | 6 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| LPX_KW_TMP00 | 3 | 1314 | 6 (0)| 00:00:01 |
|* 2 | INDEX RANGE SCAN |LPX_KW_TMP00_IND | 3 | | 3 (0)| 00:00:01 |
------------------------------------------------------------------------------------------------
Predicate Information(identified by operation id):
---------------------------------------------------
2 - access("KEYWORDS"='full iphone4 kits')
Note
-----
- dynamic sampling used for this statement
18 rows selected.
Elapsed: 00:00:00.01
--like@str+%
425@iquery@ALIDW>select* from iquery.lpx_kw_tmp00 where keywords LIKE 'full iphone 4 kits%';
KEYWORDS
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
COUNTRY_ID
----------
COUNTRY_NAME
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
REGION_ID REGIN_NAME PRE_REGIN_ID
------------------------------------------------------------------------------------------------------------------------------------------------------
PRE_REGIN_ENAME SRH_PV_THIS_5MON
------------------------------------------------------------------------------------------------------------------------------------------------
full iphone 4 kits
CN
China
7 Asia 2
Asia1
full iphone 4 kits
HK
Hong Kong
7 Asia 2
Asia2
full iphone 4 kits
FR
France
17 Western Europe 5
Europe3
Elapsed: 00:00:01.01
425@iquery@ALIDW>explainplan for select * from iquery.lpx_kw_tmp00 where keywords LIKE 'full iphone 4kits%';
Explained.
Elapsed: 00:00:00.82
425@iquery@ALIDW>select* from table(dbms_xplan.display());
PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Plan hash value:3550892647
------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 3 | 1314 | 6 (0)| 00:00:01 |
| 1 | TABLE ACCESS BY INDEX ROWID| LPX_KW_TMP00 | 3 | 1314 | 6 (0)| 00:00:01 |
|* 2 | INDEX RANGE SCAN |LPX_KW_TMP00_IND | 3 | | 3 (0)| 00:00:01 |
------------------------------------------------------------------------------------------------
Predicate Information(identified by operation id):
---------------------------------------------------
2 - access("KEYWORDS" LIKE 'fulliphone 4 kits%')
filter("KEYWORDS" LIKE 'fulliphone 4 kits%')
Note
-----
- dynamic sampling used for this statement
19 rows selected.
Elapsed: 00:00:00.01
--
--like%+@str
546@iquery@ALIDW>select* from iquery.lpx_kw_tmp00 where keywords LIKE '%full iphone 4 kits';
KEYWORDS
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
COUNTRY_ID
----------
COUNTRY_NAME
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
REGION_ID REGIN_NAME PRE_REGIN_ID
------------------------------------------------------------------------------------------------------------------------------------------------------
PRE_REGIN_ENAME SRH_PV_THIS_5MON
------------------------------------------------------------------------------------------------------------------------------------------------
full iphone 4 kits
CN
China
7 Asia 2
Asia1
full iphone 4 kits
FR
France
17 Western Europe 5
Europe3
shinning full iphone 4 kits
FR
France
17 Western Europe 5
Europe3
full iphone 4 kits
HK
Hong Kong
7 Asia 2
Asia2
shinning blue fulliphone 4 kits
FR
France
17 Western Europe 5
Europe1
shinning full iphone4 kits
FR
France
17 Western Europe 5
Europe1
purple full iphone 4kits
FR
France
17 Western Europe 5
Europe2
7 rows selected.
Elapsed: 00:01:04.91
425@iquery@ALIDW>explainplan for select * from iquery.lpx_kw_tmp00 where keywords LIKE '%full iphone 4kits';
Explained.
Elapsed: 00:00:00.02
425@iquery@ALIDW>select* from table(dbms_xplan.display());
PLAN_TABLE_OUTPUT
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Plan hash value:4249314168
----------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
----------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 614 | 262K| 26032 (2)| 00:07:49 |
|* 1 | TABLE ACCESS FULL| LPX_KW_TMP00 | 614 | 262K| 26032 (2)| 00:07:49 |
----------------------------------------------------------------------------------
Predicate Information(identified by operation id):
---------------------------------------------------
1 - filter("KEYWORDS" LIKE '%fulliphone 4 kits')
Note
-----
- dynamic sampling used for this statement
17 rows selected.
Elapsed: 00:00:00.01