exist-db 컬렉션에서 XML 파일을 업데이트하고 있으며 문서에 대체하거나 삽입해야하는지 결정하기 위해 if 및 id가 있는지 확인해야합니다. .exist-db에있는 특성에 대한 색인을 만드는 방법
파일이 커질수록 쿼리 실행 시간이 현저하게 악화되고 파일에 대한 인덱스를 추가하기로 결정했습니다.
<!-- Range indexes -->
<create qname="title" type="xs:string"/>
<create qname="author" type="xs:string"/>
<create qname="year" type="xs:integer"/>
<!-- "old" context-dependant configuration using the path attribute: -->
<create path="//booktitle" type="xs:string"/>
은 내가 XML의 속성 ID의 인덱스를 추가 할 :
나는 그것이이 예에 도시 된 바와 같이 나는 나의 존재-dB의 conf.xml에서 그렇게해야 이해 다음과 같은 :
<server>
<formal>
<lastimage>
<harvested>
<coverages>
<coverage active="true" id="EUDEM">
...
</coverage>
</coverages>
</harvested>
</lastimage>
</formal>
</server>
나는
<create qname="id" type="xs:string"/>
를 추가하는 것만으로는 충분하다고 생각하지 않습니다.
이 속성에 대해 exist-db에 추가하고 색인을 생성하는 올바른 방법은 무엇입니까?