Download Master`s Thesis
Transcript
42 CHAPTER 4. CHOOSING A DATABASE PRODUCT one still has to edit configuration files by hand. The availability of XMLdbGUI as a comfortable user interface seems to be the crucial factor for the usability of Xindice. 4.3.3 Database features Xindice is currently supporting XPath, XUpdate and additionally SiXDML, a simplified non-standard query language. The XPath implementation is taken from the Apache Xalan project, which is said to be fully W3C compliant. But this W3C specification does not cover XPath queries across collections and recursive queries of sub collections, which are currently not supported by Xindice. Database indexes are important to speed up queries. Therefore Xindice offers manual indexes, which means, that for each element one wants to be included in the index, one has to add an entry in the Xindice configuration file. The note in the Xindice FAQ [34], that the database does not process big sized documents made us to do a simple test. We took the sample phonebook files that come with Tamino (they are stepwise sized from 1000 entries up to 8000 entries, which matches 470KB to 3,7MB), tried to insert them into the database and then run some queries. Using Xindice out of the box, with the default maximum main memory setting of 64MB, resulted in memory exceptions and wrong or empty query results. This malfunction could be eliminated by increasing this memory limit to 256MB. Though we then got correct query results, we noticed that inserting more big sized documents into the database dramatically decreased query speed. The problem with big sized documents originates from the storage and indexing technique used by Xindice [36]. Documents are stored as a whole into the database and each time a part of the document needs to be read or written it must be completely loaded into the memory. Furthermore indexes do not store positional information of tags in documents, but are solely used to find candidate documents for queries and updates. 4.3.4 API’s Xindice supports the XML:DB API for Java and a language independent XML-RPC API, which takes the place of the CORBA API of version 1.0. Server side XSLT processing is currently not available.