XML_Indexing and DB_Dataobject
| From: | Olivier Guilyardi | Date: | Tue, 05 Oct 2004 21:32:33 +0000 |
| Subject: | XML_Indexing and DB_Dataobject | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-33662@lists.php.net to get a copy of this message | ||
Hi,
I've posted a proposal for XML_Indexing, a new package for indexing
local XML files, so that one can fastly seek and retrieve a specific
portion of these files.
One of my main ideas behind this package is related to dataobjects,
which offer _real_ database abstraction : dataobjects indeed are SQL-free.
This gave me the idea of using an XML container instead of a SQL server
as the dataobjet underlying layer. When one calls $do->find(), or
$do->orderBy(), there is no need to know if it issues SQL or not.
A container of any kind, be it an XML or CSV file, is required, that's it.
In this regard XML_Indexing is, to me, a very important step :
it makes XML native databases possible (RDB). No need to load the entire XML
file anymore, thus sacrifying speed. As SQL databases, XML files now
gets index-aware.
Some may argue that, in PHP5, SQLite already provides a handy and
optimized way to store data locally. That's true, but the data is stored
in binary files, and for some, as me, it is a much more elegant and
portable solution to produce and read XML. Of course, SQLite makes it
easy to port an sql-server based application to a local-storage based
one, by letting SQL statements in place, but that is another question.
What do you think about XML native databases management with PHP ?
Do you believe XML_Indexing integration with DB_Dataobject is a good idea ?
--
og