Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Speed: Database vs Include
Old 02-14-2010, 02:04 PM Speed: Database vs Include
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
Hey all.

I am working on a new layout now that I am trying to have setup so that once its done I can leave it with others have now have to have them bug me for changes all the time.

I am debating two scenarios right now:
  1. Save page content in database
  2. Let the users edit the page content through a backend and then have the script automatically update a PHP file.

The advantage I see to number two is that it doesn't need to query the database everytime that someone loads the page. I see this as a sort of cacheing.

Thoughts? I have never built this type of website before so I am not sure whats the best way of building myself out of the process.

Thanks
__________________
DVD Movie Release Database:
Please login or register to view this content. Registration is FREE
Truly is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-14-2010, 03:41 PM Re: Speed: Database vs Include
lynxus's Avatar
Awesomeo-Maximo

Posts: 1,618
Location: UK
Trades: 1
Maybe put it all in a DB.
Then have a script that runs every hour ( or manually ) that builds the PHP files?

But tbh, unless its a REALLLLY busy site, SQL should be happy.
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE


lynxus is offline
Reply With Quote
View Public Profile Visit lynxus's homepage!
 
Old 02-15-2010, 04:56 PM Re: Speed: Database vs Include
Experienced Talker

Posts: 41
Name: Adam B
Trades: 0
Quote:
Page generated in 0.07508 seconds with 14 queries
Are query speeds really giving you problems? If not I'd pay more attention to the client side stuff. Images, CSS, JavaScript, etc. If you really want to look into caching (your second method isn't caching) there's many solutions out there:

http://blog.digitalstruct.com/2008/0...ng-techniques/
adam89 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Speed: Database vs Include
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19810 seconds with 12 queries