Jump to content

XML/Database... which would be more appropriate?


Letterbomb05

Recommended Posts

Hi,

 

Before I start, this isn't strictly about the code itself so if this thread is in the wrong place, I'd be much appreciative if a moderator could move it.

 

I've just been thinking about what would be more server-efficient (use less bandwidth etc) for use in a website when it comes to systems that I would usually use PHP to retrieve the info from a database, for example a news system. Usually I would have the users view the page and each time the page loads the information would be retrieved from the database...

 

Now I'm not entirely clued up on how server intensive it would be to have these sort of systems where the information is constantly being retrieved from the database over and over for thousands of users, but I was thinking about if an XML system would work better for server-efficiency.

 

Let's take the news system idea for example, I'd have an XML file looking something like this...

<title>This is my news title!</title>
<body>The main news!</body>
<poster>This is who posted the news!</poster>

 

Okay so you get the idea, PHP retrieves info from the file rather than the DB... I'm not sure if this would actually be worth it, hence why I'm doing the research ;)

 

Thanks for any replies, much appreciated!

- Aaron.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.