Problem with CTXXPATH index - Oracle Database
This is a discussion on Problem with CTXXPATH index - Oracle Database ; Hi all, i'm using Oracle 10g R2 on Windows. I created this table Code: create table PERSISTENT_COMPOSITION ( COMPOSITION_ID NUMBER(19) not null, XML_CONTENT SYS.XMLTYPE not null, ) and filled it with more or less 1.000.000 records (that si 1.000.000 xml ...
![]() |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| |||
| |||
| i'm using Oracle 10g R2 on Windows. I created this table Code: create table PERSISTENT_COMPOSITION ( COMPOSITION_ID NUMBER(19) not null, XML_CONTENT SYS.XMLTYPE not null, ) Then first of all i tested it with a simple query just like the following: Code: SELECT * FROM PERSISTENT_COMPOSITION t WHERE existsNode(t.xml_content, '/composition/archetype_details/archetype_id[value="openEHR-EHR-COMPOSITION.composition_test.v1"]') = 1; Now, in order to improve query performances, i created a CTXXPATH index as follows: Code: CREATE INDEX IDX#COMP_CTXXPATH ON PERSISTENT_COMPOSITION(XML_CONTENT) INDEXTYPE IS CTXSYS.CTXXPATH; I thought it could be a matter of namespace: in fact loaded xml documents have a xmlns set and so i changed the query as follows: Code: SELECT *
FROM persistent_composition t
WHERE existsNode(t.xml_content,
'/composition/archetype_details/archetype_id[value="openEHR-EHR-COMPOSITION.composition_test.v1"]',
'xmlns="http://this.is.an.xmlns.url.org/v1"') = 1
I really don't understand why using the IDX#COMP_CTXXPATH i get no result....can someone help me? Thank you very much P.S: i tried using ANALYZE (both on index and on table), CTX_DDL.sync_index and CTX_DDL.optimize_index but got no result.. |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
All times are GMT -4. The time now is 12:12 AM.




Linear Mode