XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 22nd, 2002, 10:53 AM
kehret's Avatar
kehret kehret is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Taos, New Mexico
Posts: 4 kehret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to kehret
Question XML vs. MySQL for data extraction

I'm going to be starting on a larger-sized project pulling data from several MySQL databases. And I'm just getting up to speed on XML and XSL. Is there really that significant a performance increase in pulling data from an XML file (using XSL and Sablotron) versus a direct connection to a database (using PHP)?

I do want to make some of the data available to several other sites, and accessibilty for multiple devices will be an issue - so I'm leaning in the direction of XML. Nonetheless, I want to make sure it wouldn't be overkill - and create a possible performance issue...

Reply With Quote
  #2  
Old August 29th, 2002, 03:52 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
The speed issue it going to be largely determined by how you use the data. If you find yourself with an 8MB XML file that you only need 3 nodes from, I'm betting MySQL would give you faster access to that data.

XML isn't really interchangeable with an RDBMS, but there are situations where it is as good or better. It all depends on your requirements, though.

Reply With Quote
  #3  
Old August 29th, 2002, 10:00 AM
kehret's Avatar
kehret kehret is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Taos, New Mexico
Posts: 4 kehret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to kehret
thanks so much for replying. I've been struggling a bit with how the whole XML thing fits (or could fit) into my future projects. And since we do quite a bit of database development, I wasn't sure if I should just stick with what we've got...

Reply With Quote
  #4  
Old September 1st, 2002, 03:17 AM
Paulblo Paulblo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: San Jose, CA
Posts: 57 Paulblo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 13 m 14 sec
Reputation Power: 8
XML Tip

The power of XML is not in hand coding the XML documents and selecting node values with XSL.

A XML "file" is usually created from a database, cached and then available for smaller queries. You never would want to have a XML file that is too large because it will be a resource hog.

XML is Extensible but not all that fast yet.... Good luck.
__________________
Thank you,

Paul B Hepworth

Questions & Answers http://www.lds.org

Reply With Quote
  #5  
Old September 9th, 2002, 09:43 AM
kehret's Avatar
kehret kehret is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Taos, New Mexico
Posts: 4 kehret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to kehret
Thanks Paulblo - I was thinking that might be the way to go (db to XML file). Then whenever anyone made changes to the databases, new xml files would be created to replace to previous ones...

Sorry for the delay on this - on vacation last week.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XML vs. MySQL for data extraction


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway