Saturday, 16 August 2014

Which is faster:Read data from an XML file or from a MySQL table?



I have an XML file which has 2 informations:

1)Watch world cup on Youtube

2)Go for a drink at Bedroom club

Which the order of the tags are:

"Watch" and "Go" tags are parent tags,"world cup on" and "for a drink at" are children tags and "Youtube" and "Bedroom club" are children tags of the previous ones.

And i also got a database which has the same informations in that structure:

1st row:act_style(Watch/Go)

2nd row:act_desc (world cup on/for a drink at)

3rd row:act_page (Youtube/Bedroom club)

So my question is which of these informations does PHP get faster or does it gets them in the same time?


No comments:

Post a Comment