Академический Документы
Профессиональный Документы
Культура Документы
States
Element (pathID,
Did,Ordinal)
XParent Approach
Data (PathID, Did, Ordinal, Value)
Querying XML Data
Select the names of all members whose ages
are greater than 20.
Xpath: /DBGroup/member[Age>20]/Name
Edge Query
It includes 6
selections and
3 equi joins
Querying XML Data
Monet Query
It includes 1
selections and
4 joins
Xparent Query
It includes 3
selections and
5 equi joins
Querying XML Data
XRel Query
It includes 4
selections and
7 joins
Performance Studies
The following queries are executed on the
database for performance studies
Query 1: /PLAY/ACT
Query 2: /PLAY/ACT/SCENE/SPEECH/LINE/STAGEDIA
Query 3: //SCENE/TITLE
Query 4: //ACT/TITLE
Query 5: /PLAY/ACT [2]
Query 6: (/PLAY/ACT [2])/TITLE
Query 7: /PLAY/ACT/SCENE/SPEECH[SPEAKER=CURIO]
Query 8: /PLAY/ACT/SCENE/[//SPEAKER=Steward]/TITLE
Performance Studies
Performance Studies
Conclusion
XRel and XParent outperforms Edge as
shown by the graphs.
XRel and XParent outperforms Edge in
complex queries.
Edge performs better when using simple
queries.
Label-paths help in reducing querying time.
Drawbacks
The amount of CPU cycles consumed by
each query is not provided.
Both XRel and XParent uses more number
of joins than Monet and Edge.
XRel and XParent queries are slightly
complicated compared to Edge and Monet.
References
Path Materialization Revisited: An Efficient Storage
Model for XML Data. Haifeng Jiang, Hongjun Lu, Wei
Wang, Jeffrey Xu Yu; Thirteenth Australasian Database
Conference (ADC2002), 2002.
Storing and Querying XML Data using an RDBMS.
Daniela Florescu, Donald Kossmann, Bulletin of the
Technical Committee on Data Engineering, 22(3):27-34,
September 1999.