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
:confused: DB Performance question
Old 08-06-2004, 10:30 AM :confused: DB Performance question
Junior Talker

Posts: 2
Trades: 0
Hi,

I'm building a website, and I want it to be the most dynamically it can be.
I want that the whole pages will be in the DB, and the PHP files will
contain only an SQL query that will fetch the page content from the DB.

Is it common to design the site this way?
Is it harm the performance?
Is there any way to cache the field that contains the page content in order to improve performance?
cuinl is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-06-2004, 10:43 AM
Unknown.

Posts: 1,693
Trades: 0
The General Idea of using MySQL is so you can collect data that you want to change often..or changes for each user..

So you only need to select the information that will be listed in the database...

Although I think waht your saying is you want to contain all the code for the page in the database...right??

Well I think it would be easier to just include all the code into the php files and then just select stuff needed form the database..

-James
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 08-06-2004, 11:19 AM
Junior Talker

Posts: 2
Trades: 0
I want to place all page content including php code in the DB, so I'll be able to edit the page layout+code through sql queries, without having to upload files.

However, If the price of this implementation is bad performance, I will concede this idea
cuinl is offline
Reply With Quote
View Public Profile
 
Old 08-06-2004, 11:33 AM
Unknown.

Posts: 1,693
Trades: 0
I dont think it should really affect the load time much...

The SQL Queries usually complete almost instantly..

-James

Last edited by Dark-Skys99; 08-06-2004 at 11:35 AM..
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 08-06-2004, 02:47 PM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
cuinl,

James is right in that a great number of sites are developed on the internet in this manner and the performance hit of using a database is neglible against latency and propogation times. Most hosts either co-locate their web and database servers together in the same datacenter or even on the same machine.

It's actually a greatly efficient way to develop.
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Reply     « Reply to :confused: DB Performance question
 

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.24285 seconds with 12 queries