Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 09-01-2009, 09:06 PM   #1 (permalink)
Alpha Geek
 
sachin_kothari's Avatar
 
Join Date: Dec 2004
Location: Pune
Posts: 569
Lightbulb XML Database for Blogs


I am planning to develop a web app for Blogging in PHP. I would like to know if it would be feasible to store all the the data in XML database or MySQL database in terms of speed and effeciency.

I tried googling for it but could not find anything informative and rest was too confusing.

Also, if possible, please suggest me an XML database.
Thanks.
sachin_kothari is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 09-01-2009, 09:23 PM   #2 (permalink)
हॉर्न ओके प्लीज़
 
victor_rambo's Avatar
 
Join Date: Sep 2007
Posts: 1,493
Default Re: XML Database for Blogs

I have worked with MySQL but not with XML.
Can you tell me how an XML DB will differ from a MySQL DB?
Will it be a XML file?
__________________
विक्टर रॅंबो - चाणकया प्रभावित व्यक्ति

गीक होना माँगता
victor_rambo is offline  
Old 09-01-2009, 09:31 PM   #3 (permalink)
Alpha Geek
 
sachin_kothari's Avatar
 
Join Date: Dec 2004
Location: Pune
Posts: 569
Default Re: XML Database for Blogs

this will be my first experience with xml db. but i am assume that the database will be sort of xml files. i want to explore them since its a new thing for me.
sachin_kothari is offline  
Old 09-01-2009, 09:38 PM   #4 (permalink)
हॉर्न ओके प्लीज़
 
victor_rambo's Avatar
 
Join Date: Sep 2007
Posts: 1,493
Default Re: XML Database for Blogs

Why don't you install some XML DB enegines and benchmark it against MySQL on your localhost? I will try this too?
__________________
विक्टर रॅंबो - चाणकया प्रभावित व्यक्ति

गीक होना माँगता
victor_rambo is offline  
Old 09-01-2009, 09:45 PM   #5 (permalink)
Alpha Geek
 
sachin_kothari's Avatar
 
Join Date: Dec 2004
Location: Pune
Posts: 569
Default Re: XML Database for Blogs

Do you know any XML DB that i should test? Please suggest them here.
sachin_kothari is offline  
Old 09-01-2009, 10:54 PM   #6 (permalink)
हॉर्न ओके प्लीज़
 
victor_rambo's Avatar
 
Join Date: Sep 2007
Posts: 1,493
Default Re: XML Database for Blogs

^Hmmm...have absolutely no experience with XML DB engines!
__________________
विक्टर रॅंबो - चाणकया प्रभावित व्यक्ति

गीक होना माँगता
victor_rambo is offline  
Old 09-01-2009, 11:30 PM   #7 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: XML Database for Blogs

A large XML file would be inefficient to extract data from. Like say a 10 MB XML file where you would need to access only a few nodes, MySQL does a better job or would have almost no difference at all.

But its good to create small XML files as cache, for small requests from a DB, updating the same when the DB is modified. Smaller, per-page XML files would be more efficient but do make sure they are generated from a DB.

Try Apache's Xindice and/or myXMLDB (Provides inter-op with MySQL).
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 10-01-2009, 05:24 PM   #8 (permalink)
हॉर्न ओके प्लीज़
 
victor_rambo's Avatar
 
Join Date: Sep 2007
Posts: 1,493
Default Re: XML Database for Blogs

^ Even I thought so. Everytime we need to query the database, the whole XML file has to be loaded into the RAM. This will instantly occupy a large chunk of memory alloted to your scripts.

And just a observation, I googled and found many XML DB enegines, but hardly any popular open-source package uses XML DB! May be because of its drawbacks or may be because its in its infancy.

Also, XML format, I think, was invented to store and exchange data is an easy format. Not sure if it was created for acting as a database.

I may be wrong, but from my best comprehension, I think that XML file will bloat the application by making its too redundant. I may be wrong because I have no experience, but I am thinking on the directions provided by QuertyManiac
__________________
विक्टर रॅंबो - चाणकया प्रभावित व्यक्ति

गीक होना माँगता
victor_rambo is offline  
Old 10-01-2009, 07:29 PM   #9 (permalink)
Alpha Geek
 
sachin_kothari's Avatar
 
Join Date: Dec 2004
Location: Pune
Posts: 569
Default Re: XML Database for Blogs

Even i did a few searches on google and came up with a list of xml databases. Apache Xindice, Sedna, Ozone as well as some more xml databases.

Don't know which is more better, but have downloaded Sedna. Will test it and post my comments here.

About the performance, if it degrades with increase in file size then it is obviously of no use. And since the base application here is Blogging, and storing the blogs in database will obviously increase the size of the database.

If not XML, any other suggestion how to go about it?
sachin_kothari is offline  
Old 10-01-2009, 07:48 PM   #10 (permalink)
Commander in Chief
 
QwertyManiac's Avatar
 
Join Date: Jul 2005
Posts: 6,658
Default Re: XML Database for Blogs

Using MySQL is just fine! It has excellent support for PHP as well. Here's a starter and a reference.
__________________
Harsh J
www.harshj.com
QwertyManiac is offline  
Old 10-01-2009, 08:32 PM   #11 (permalink)
Alpha Geek
 
sachin_kothari's Avatar
 
Join Date: Dec 2004
Location: Pune
Posts: 569
Default Re: XML Database for Blogs

i have been using mysql for a long time now. was just wondering if xml or something else could work or not. but after lots of looking here and there even i feel that only mysql is the solution. tried sedna, but it seems just too complex.

anyways thanks victor and harsh for all the help. i will be going ahead with mysql as my database and might use xml for caching purpose.
sachin_kothari is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
NanoScan for websites/blogs. anandk Random News 21 27-07-2007 09:45 PM
80 Percent of the Blogs Are Dangerous Third Eye Technology News 2 26-04-2007 01:42 PM
how 2 search 4 blogs tgpraveen QnA (read only) 2 30-05-2005 01:00 AM

 
Latest Threads
- by gforz
- by soumya
- by Sujeet
- by icebags
- by Charan

Advertisement




All times are GMT +5.5. The time now is 03:05 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2