Make Database Queries Without the Database
By Brian Goetz2005-07-14
Summary
From a development costs perspective, the XQuery approach turned out to be a significant savings. The tree-structure was ideal for building and searching the data, but not for reporting; the XML approach was well-suited for reporting (because we could leverage the power of XQuery), but would have been both more inconvenient and worse performing for implementing the entire application. Because the data set was a manageable size -- no more than a few tens of megabytes -- it was possible to convert the data from one form to another as was most convenient from a development perspective. A larger data set, one that could not be stored entirely in memory easily, would have required the entire application to be built around a database. While many good tools for dealing with persistent data are available, they all involve a lot more work than simply manipulating an in-memory data structure. If your data set is of a suitable size, you can have the best of both worlds.
Tutorial Pages:
» Borrowing a data model can simplify development and enhance performance
» No database needed
» My kingdom for a data model
» XQuery to the rescue
» Summary
» Resources
First published by IBM developerWorks
