473,396 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

MySQL? XML? XML and MySQL? SQLite?!

Hi,

I've been using PHP for a while now and I'm beginning to migrate to
PHP5. So far, I'm impressed.

I need to develop an admin application to enable users to update a
website that is built on a MySQL database. In most cases, I'd simply
develop an application to manipulate the database but as the website is
updated fairly infrequently, I am considering a number of further
options instead to alleviate server load.

I am considering retaining the MySQL database for structure and building
scripts to generate XML from the data that can be processed and
transformed server-side (XSLT). Another option is SQLite. And yet
another approach is to generate static HTML pages from the database when
it needs to be updated or published.

Based on knowledge and past experience, what would everyone recommend? I
would welcome any feedback to help me in my decisions.

Thanks in advance.

Matt
Jul 17 '05 #1
6 1890
Matthew Bates wrote:
Hi,

I've been using PHP for a while now and I'm beginning to migrate to
PHP5. So far, I'm impressed.

I need to develop an admin application to enable users to update a
website that is built on a MySQL database. In most cases, I'd simply
develop an application to manipulate the database but as the website is
updated fairly infrequently, I am considering a number of further
options instead to alleviate server load.


So, let's see if I've got this right. You've got a process which doesn't
happen often (so by definition can't produce a lot of load), and because it
doesn't happen often you want to do a lot of work and add a lot of
complication to it.

hmmm.

C.

Jul 17 '05 #2
>>I need to develop an admin application to enable users to update a
website that is built on a MySQL database. In most cases, I'd simply
develop an application to manipulate the database but as the website is
updated fairly infrequently, I am considering a number of further
options instead to alleviate server load.


So, let's see if I've got this right. You've got a process which doesn't
happen often (so by definition can't produce a lot of load), and because it
doesn't happen often you want to do a lot of work and add a lot of
complication to it.


Sorry, I don't think my original post was that clear.

The website is visited often and when I refer to server load I mean the
processing that is needed to access/query the database each time to
display the pages.

The actual updates to the content are made infrequently so I was
therefore considering the options in publishing the content.

Matt
Jul 17 '05 #3
"Matthew Bates" <ma********@hotmail.com> wrote in message
news:tG*************@text.news.blueyonder.co.uk...
I need to develop an admin application to enable users to update a
website that is built on a MySQL database. In most cases, I'd simply
develop an application to manipulate the database but as the website is
updated fairly infrequently, I am considering a number of further
options instead to alleviate server load.


So, let's see if I've got this right. You've got a process which doesn't
happen often (so by definition can't produce a lot of load), and because it doesn't happen often you want to do a lot of work and add a lot of
complication to it.


Sorry, I don't think my original post was that clear.

The website is visited often and when I refer to server load I mean the
processing that is needed to access/query the database each time to
display the pages.

The actual updates to the content are made infrequently so I was
therefore considering the options in publishing the content.


Maybe something like jpcache (http://www.jpcache.com/)?
Jul 17 '05 #4
"Matthew Bates" <ma********@hotmail.com> wrote in message
news:2i*****************@text.news.blueyonder.co.u k...
Hi,

I've been using PHP for a while now and I'm beginning to migrate to
PHP5. So far, I'm impressed.

I need to develop an admin application to enable users to update a
website that is built on a MySQL database. In most cases, I'd simply
develop an application to manipulate the database but as the website is
updated fairly infrequently, I am considering a number of further
options instead to alleviate server load.

I am considering retaining the MySQL database for structure and building
scripts to generate XML from the data that can be processed and
transformed server-side (XSLT). Another option is SQLite. And yet
another approach is to generate static HTML pages from the database when
it needs to be updated or published.

Based on knowledge and past experience, what would everyone recommend? I
would welcome any feedback to help me in my decisions.

Thanks in advance.

Matt


We've gone though something like this. Honestly, I like the simplicity of
using mySQL and generating the pages dynamically. We did end up caching the
output for a few hours at a time some custom built code, was really simple
actually.

HTH,
Joe
Jul 17 '05 #5
Joe Webster wrote:
"Matthew Bates" <ma********@hotmail.com> wrote in message
news:2i*****************@text.news.blueyonder.co.u k...
Hi,

I've been using PHP for a while now and I'm beginning to migrate to
PHP5. So far, I'm impressed.

I need to develop an admin application to enable users to update a
website that is built on a MySQL database. In most cases, I'd simply
develop an application to manipulate the database but as the website is
updated fairly infrequently, I am considering a number of further
options instead to alleviate server load.

I am considering retaining the MySQL database for structure and building
scripts to generate XML from the data that can be processed and
transformed server-side (XSLT). Another option is SQLite. And yet
another approach is to generate static HTML pages from the database when
it needs to be updated or published.

Based on knowledge and past experience, what would everyone recommend? I
would welcome any feedback to help me in my decisions.

Thanks in advance.

Matt

We've gone though something like this. Honestly, I like the simplicity of
using mySQL and generating the pages dynamically. We did end up caching the
output for a few hours at a time some custom built code, was really simple
actually.

HTH,
Joe


I agree with you. MySQL and PHP work so well together that making
dynamic pages is so simple. However it seems inefficient to keep
accessing a database when content does not change that often. The
caching seems a good idea and as you said it is easily implemented.

Does anyone have any thoughts on an XML approach? Is an XSL
transformation quicker/more efficient than a MySQL query that generates
the same page?

I'm willing to consider any ideas :).

Thanks,
Matt
Jul 17 '05 #6
Q: How should I handle database load?
Q: What caching mechanism are you suggesting?

A: Caching can be classified in to:
1. Browser cache
2. File based cache. (eg) <http://www.jpcache.com/>
3. Database query cache (eg)
<http://dev.mysql.com/doc/mysql/en/query-cache.html>
4. Shared memory cache (eg) <http://eaccelerator.net/>
5. Distributed memory object cache (eg)
<http://www.danga.com/memcached/>

Caveats:
(2) may significantly reduce database load. But, it has lot of
setbacks:
1. may create lot of cache files
2. if file locking (as in jpcache) is used that will slow down
3. swap file caching instead of locking may consume lot of space

Refer:
http://jeremy.zawodny.com/mysql/scal.../slide0119.htm
++++
@todo Explain browser cache, info on Zend Accelerator, APC, etc

Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Mike Henley | last post by:
considering the recent changes to the mysql licensing terms, which meant the php5 team had to adopt sqlite instead into the php5 and drop mysql stuff from the standard language distro (as i...
3
by: Ruby Tuesday | last post by:
E.g: less secure, not conforming with sql standard etc. Thanks
3
by: stan k. | last post by:
First of all i'm on a win32 platform using java. I also have mysql installed. My question isabout benchmarks and multiple inserts & selects SQLITE: http://www.sqlite.org/ HSQL:...
0
by: stan k. | last post by:
mysql vs sqlite vs hsql First of all i'm on a win32 platform using java. I also have mysql installed. My question isabout benchmarks and multiple inserts & selects SQLITE:...
175
by: Sai Hertz And Control Systems | last post by:
Dear all, Their was a huge rore about MySQL recently for something in java functions now theirs one more http://www.mysql.com/doc/en/News-5.0.x.html Does this concern anyone. What I...
2
by: chun ping wang | last post by:
hi, i have a simple problem of opening an existing mysql database with sqlite3. Is it possible? (I have an instinct that it is), however i don';t know the most easiest and straight forward...
2
by: Gandalf | last post by:
I'm trying to convert mysql database to sqlite. is their any free tool that does that? I can convert my mysql db to XML file through phpmyadmin, will it be easier to convert from XML to SQlite...
3
by: Jeff | last post by:
I've been writing all my utilities using PDO, and MySQL. So, I'm working on a virtual server and I'm getting a missing driver error. DSN look like this: $DSN='mysql:dbname=... PHP info does...
3
by: Daniel | last post by:
Hello, I'm developing an application that accesses both a MySQL and an SQLite database. I would like to have named parameters in my SQL and have found the following: For MySQL my named...
1
dlite922
by: dlite922 | last post by:
I'm trying to convert an SQLITE database to MySQL syntax and it seems every resource I find on google is only half complete. I want to create this thread to sum them all up in one central...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.