For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > January 2007 > RE: [PHP-DB] PHP with a XML database









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-DB] PHP with a XML database
N.A.Morgan@bton.ac.uk

2007-01-26, 7:58 am

Ritesh,

Don't know of a suitable XML database to use with PHP, but I could
recommend using Oracle 10g. There are built in XML services that should
help with your project. Furthermore, PHP has a well documented Oracle
interface (OCI8) just for this. To handle the XML though, you would
probably need to get to grips with PL/SQL, Oracle's own stored procedure
and trigger language. And the best part, you could use OracleXE for
free, although it only gives you a database with up to 4GB user data, up
to 1GB of RAM and use of only one processor in a multi-processor
environment.

Regarsd,
Neil

-----Original Message-----
From: Ritesh Nadhani [mailto:riteshn@gmail.com]=20
Sent: 26 January 2007 06:43
To: php-db@lists.php.net
Subject: [PHP-DB] PHP with a XML database

Hello all

As part of my research under my professor I have to implement a web
interface to their benchmarking data.

PHP is the chosen web language but we are little worried about the
database. The benchmark data comes to us in XML format (e.g.=20
http://www.matf.bg.ac.yu/~filip/Arg...ples/FolEq1.xml)
..
We have to implement an interface to query them, get data, update etc.

We even can change schema in the form of attributes. . The data size
would be around 100 MB each XML with around 100 different XMLs.

The load would be max 5-10 users any given time, batch updates once a
month and heavy load prolly 2-3 times a month. Mission criticality is
not important, we can get it down sometimes. Which db would you suggest?

i did google research and as of now - I like eXist, Sedna (they seem to
have good PHP wrapper support) and TImber.

Any suggestions?

Ritesh

--
PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
Ritesh Nadhani

2007-01-26, 6:58 pm

Thank you.

I dont think we have the computing power for this project to use Oracle
10g. Also, the system is too big and nobody out here has actual
knowledge of Oracle but anyway I will keep it in mind.

Ritesh

N.A.Morgan@bton.ac.uk wrote:
> Ritesh,
>
> Don't know of a suitable XML database to use with PHP, but I could
> recommend using Oracle 10g. There are built in XML services that should
> help with your project. Furthermore, PHP has a well documented Oracle
> interface (OCI8) just for this. To handle the XML though, you would
> probably need to get to grips with PL/SQL, Oracle's own stored procedure
> and trigger language. And the best part, you could use OracleXE for
> free, although it only gives you a database with up to 4GB user data, up
> to 1GB of RAM and use of only one processor in a multi-processor
> environment.
>
> Regarsd,
> Neil
>
> -----Original Message-----
> From: Ritesh Nadhani [mailto:riteshn@gmail.com]
> Sent: 26 January 2007 06:43
> To: php-db@lists.php.net
> Subject: [PHP-DB] PHP with a XML database
>
> Hello all
>
> As part of my research under my professor I have to implement a web
> interface to their benchmarking data.
>
> PHP is the chosen web language but we are little worried about the
> database. The benchmark data comes to us in XML format (e.g.
> http://www.matf.bg.ac.yu/~filip/Arg...ples/FolEq1.xml)
> .
> We have to implement an interface to query them, get data, update etc.
>
> We even can change schema in the form of attributes. . The data size
> would be around 100 MB each XML with around 100 different XMLs.
>
> The load would be max 5-10 users any given time, batch updates once a
> month and heavy load prolly 2-3 times a month. Mission criticality is
> not important, we can get it down sometimes. Which db would you suggest?
>
> i did google research and as of now - I like eXist, Sedna (they seem to
> have good PHP wrapper support) and TImber.
>
> Any suggestions?
>
> Ritesh
>
> --
> PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
>

Christopher Jones

2007-01-26, 6:58 pm

What computing power would that be? XE (and even other "editions"
of Oracle DB) install fine on small PCs with Linux or Windows.
What performance you get will depend on your load. Best to benchmark
it yourself, like you would benchmark the alternatives.

On the use of PL/SQL, if you want to avoid this, you could return
the XML to PHP. It may not be the most scalable solution, but
it might satisfy your load.

Chris

Ritesh Nadhani wrote:
> Thank you.
>
> I dont think we have the computing power for this project to use Oracle
> 10g. Also, the system is too big and nobody out here has actual
> knowledge of Oracle but anyway I will keep it in mind.
>
> Ritesh
>
> N.A.Morgan@bton.ac.uk wrote:
>



--
Christopher Jones, Oracle
Email: Christopher.Jones@oracle.com Tel: +1 650 506 8630
Blog: http://blogs.oracle.com/opal/
Edward Vermillion

2007-01-26, 6:58 pm

I would imagine that parsing the XML file you get once a month and
storing the information in *some* kind of "real" database, whether
it's oracle, mysql, postgresql or whatever would give you better
performance than parsing the XML on each page request. Unless the XML
is of a trivial size of course, but I didn't get that impression from
the original post.

Just a thought...



On Jan 26, 2007, at 2:24 PM, Ritesh Nadhani wrote:

> Thank you.
>
> I dont think we have the computing power for this project to use
> Oracle 10g. Also, the system is too big and nobody out here has
> actual knowledge of Oracle but anyway I will keep it in mind.
>
> Ritesh
>
> N.A.Morgan@bton.ac.uk wrote:
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Ritesh Nadhani

2007-01-26, 6:58 pm

Writing our own parsing thing is out of question. The group has
finalised to use a proper DB rather then writing our own code.

Moreover, we believe that the code written by a good DB engine would
be much more efficient then writing our own module and we are no
database experts :)

So now its a question of which XML DB to use. After Christophers mail,
we would give Oracle a run in next ws.

Lets see....

On 1/26/07, Edward Vermillion <evermillion@doggydoo.net> wrote:
> I would imagine that parsing the XML file you get once a month and
> storing the information in *some* kind of "real" database, whether
> it's oracle, mysql, postgresql or whatever would give you better
> performance than parsing the XML on each page request. Unless the XML
> is of a trivial size of course, but I didn't get that impression from
> the original post.
>
> Just a thought...
>
>
>
> On Jan 26, 2007, at 2:24 PM, Ritesh Nadhani wrote:
>
>
>



--
Ritesh
http://www.riteshn.com
Daniel Krook

2007-01-26, 6:58 pm

Hello Ritesh,

"Ritesh Nadhani" <riteshn@gmail.com> wrote on 01/26/2007 05:48:27 PM:

> Writing our own parsing thing is out of question. The group has
> finalised to use a proper DB rather then writing our own code.
>
> Moreover, we believe that the code written by a good DB engine would
> be much more efficient then writing our own module and we are no
> database experts :)
>
> So now its a question of which XML DB to use. After
> Christophers mail,
> we would give Oracle a run in next ws.
>
> Lets see....



pureXML in DB2 v9 may be an option to explore. It treats XML as a native
data type. You could load in the benchmark data XML
and query it with SQL to get your reports.

Look for the free Express-C edition and use the new PECL extension ibm_db2
(not the odbc_* functions).


DB2 9: pureXML Guide
http://www.redbooks.ibm.com/redpiec...s/sg247315.html

DB2 XML (pureXML) wiki
http://www.ibm.com/developerworks/w...lay/db2xml/Home

DB2 Express-C
http://www.ibm.com/software/data/db...s/download.html




Daniel Krook
Content Tools Developer - SCSA, SCJP, SCWCD, ZCE
Global Production Services - Tools, ibm.com
Ritesh Nadhani

2007-01-26, 6:58 pm

I just checked: http://www.oracle.com/technology/te...mldb/index.html

Is the solution free or we have to pay license cost? I dont see any
information about that.

Christopher Jones wrote:
> What computing power would that be? XE (and even other "editions"
> of Oracle DB) install fine on small PCs with Linux or Windows.
> What performance you get will depend on your load. Best to benchmark
> it yourself, like you would benchmark the alternatives.
>
> On the use of PL/SQL, if you want to avoid this, you could return
> the XML to PHP. It may not be the most scalable solution, but
> it might satisfy your load.
>
> Chris
>
> Ritesh Nadhani wrote:
>
>

Christopher Jones

2007-01-26, 9:57 pm

Oracle XML DB support (often called "XDB") is built into the
Oracle database and therefore free once you have a DB.
And the Oracle XE database is free.

Best place to continue the discussion is on the forums
http://www.oracle.com/technology/forums/xmldb.html
and
http://www.oracle.com/technology/forums/xml.html

The people who monitor those lists are specialists.

Chris


Ritesh Nadhani wrote:[color=darkred]
> I just checked: http://www.oracle.com/technology/te...mldb/index.html
>
> Is the solution free or we have to pay license cost? I dont see any
> information about that.
>
> Christopher Jones wrote:


--
Christopher Jones, Oracle
Email: Christopher.Jones@oracle.com Tel: +1 650 506 8630
Blog: http://blogs.oracle.com/opal/
Bastien Koert

2007-01-28, 6:58 pm

I would tend to agree with this

Bastien


>From: Edward Vermillion <evermillion@doggydoo.net>
>To: Ritesh Nadhani <riteshn@gmail.com>
>CC: PHP DB <php-db@lists.php.net>
>Subject: Re: [PHP-DB] PHP with a XML database
>Date: Fri, 26 Jan 2007 15:36:33 -0600
>
>I would imagine that parsing the XML file you get once a month and storing
>the information in *some* kind of "real" database, whether it's oracle,
>mysql, postgresql or whatever would give you better performance than
>parsing the XML on each page request. Unless the XML is of a trivial size
>of course, but I didn't get that impression from the original post.
>
>Just a thought...
>
>
>
>On Jan 26, 2007, at 2:24 PM, Ritesh Nadhani wrote:
>
>
>--
>PHP Database Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>


________________________________________
_________________________
Buy, Load, Play. The new Sympatico / MSN Music Store works seamlessly with
Windows Media Player. Just Click PLAY.
http://musicstore.sympatico.msn.ca/...=SMS_Sept192006
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com