473,386 Members | 1,803 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,386 software developers and data experts.

php/mysql question

this is really a mysql question rather than php but as the two are used
togeter closely I hope someone will be able to advise me

basically I am wondering how the addition of many large text field to a
database effect it's speed (file size isn't a problem) for example i want to
make my site database driven so am using mysql but some pages have large
chunks of text in them, I think any my sql field canhold a max of 255 chars
so if i split the text into say 4 lots of 255 that would cover the remit for
the text say.

If a lot of these are fields are quite full, will it effect the speed the
database is acessed at or not?

hope that makes sense

Chris

--
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=

Chris Dean, Schools Outreach Project, Vega Science Trust
University of Sussex, Falmer, Brighton. East Sussex. BN1 9QJ. UK.

Tel.: +44 (0) 1273 87 72 93
Email: ka***@sussex.ac.uk
Web: www.vega.org.uk

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=
Jul 16 '05 #1
3 2321
"Chris Dean" <me@[remove this]christopher-dean.fsnet.co.uk> wrote in
news:bh**********@ames.central.susx.ac.uk:
this is really a mysql question rather than php but as the two are
used togeter closely I hope someone will be able to advise me

basically I am wondering how the addition of many large text field to
a database effect it's speed (file size isn't a problem) for example i
want to make my site database driven so am using mysql but some pages
have large chunks of text in them, I think any my sql field canhold a
max of 255 chars so if i split the text into say 4 lots of 255 that
would cover the remit for the text say.


Perhaps you should check the documentation on text fields, instead of only
using varchar fields.

--
Terry Austin
ta*****@hyperbooks.com
Jul 16 '05 #2
I was hoping someone would say that :)

I'm just playing atm and didn't check the man before posting

thanks tho

Chris

<ro*@exau.com> wrote in message news:bh*********@sparta.btinternet.com...
Max characters is 255 for 'char' / 'varchar', but if you use 'text' then you can store *ALOT* more data

"Chris Dean" <me@[remove this]christopher-dean.fsnet.co.uk> wrote in message news:bh**********@ames.central.susx.ac.uk...
this is really a mysql question rather than php but as the two are used
togeter closely I hope someone will be able to advise me

basically I am wondering how the addition of many large text field to a
database effect it's speed (file size isn't a problem) for example i want
to
make my site database driven so am using mysql but some pages have large
chunks of text in them, I think any my sql field canhold a max of 255

chars
so if i split the text into say 4 lots of 255 that would cover the remit

for
the text say.

If a lot of these are fields are quite full, will it effect the speed

the database is acessed at or not?

hope that makes sense

Chris

--
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=

Chris Dean, Schools Outreach Project, Vega Science Trust
University of Sussex, Falmer, Brighton. East Sussex. BN1 9QJ. UK.

Tel.: +44 (0) 1273 87 72 93
Email: ka***@sussex.ac.uk
Web: www.vega.org.uk

=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=


Jul 16 '05 #3
"Chris Dean" <me@[remove this]christopher-dean.fsnet.co.uk> wrote in message news:<bh**********@ames.central.susx.ac.uk>...
I was hoping someone would say that :)

I'm just playing atm and didn't check the man before posting

As I said, I've been using a big, complicated table to hold all info
(navigation, links, weblogs, articles, users) relating to a website. I
thought I'd pay more of a speed penalty, but so far things are still
zippy. I'm waiting for monkeyclaus.org to build a big audience to see
if this table slows down signifcantly once it is hit with a lot of
requests every second.

For now, as I say, for a small site like monkeyclaus.org, things are
still quite speedy.

#
# Table structure for table `mcContentBlocks`
#

CREATE TABLE mcContentBlocks (
cbId bigint(20) unsigned NOT NULL auto_increment,
cbHeadline varchar(255) NOT NULL default '',
cbMainContent mediumtext NOT NULL,
cbDateCreated varchar(255) NOT NULL default '',
cbWhichType varchar(255) NOT NULL default '',
cbUserName varchar(255) NOT NULL default '',
cbPassword varchar(255) NOT NULL default '',
cbIsLoggedIn char(1) NOT NULL default '',
cbDatesModified mediumtext NOT NULL,
cbLastModified varchar(255) NOT NULL default '',
cbDatesWhenViewed mediumtext NOT NULL,
cbLinksToWhatUrl text NOT NULL,
cbOOA varchar(255) NOT NULL default '',
cbSection varchar(255) NOT NULL default '',
cbKeywords mediumtext NOT NULL,
cbBelongsToWhichWebsite varchar(255) NOT NULL default '',
cbBelongsToWhichPage varchar(255) NOT NULL default '',
cbUserSecurityLevel text NOT NULL,
cbNavTextDifFromHeadline char(1) NOT NULL default '',
cbNavText varchar(255) NOT NULL default '',
cbNavOOA varchar(255) NOT NULL default '',
cbNavSection varchar(255) NOT NULL default '',
cbTemplate varchar(255) NOT NULL default '',
cbSpecialOverrideCSSClass varchar(255) NOT NULL default '',
cbExpirationDate varchar(255) NOT NULL default '',
cbModifier01 varchar(255) NOT NULL default '',
cbModifier02 varchar(255) NOT NULL default '',
cbModifier03 varchar(255) NOT NULL default '',
cbModifier04 varchar(255) NOT NULL default '',
cbModifier05 varchar(255) NOT NULL default '',
cbModifier06 varchar(255) NOT NULL default '',
cbModifier07 varchar(255) NOT NULL default '',
cbModifier08 varchar(255) NOT NULL default '',
cbModifier09 varchar(255) NOT NULL default '',
cbModifier10 varchar(255) NOT NULL default '',
cbModifier11 varchar(255) NOT NULL default '',
cbModifier12 varchar(255) NOT NULL default '',
cbModifier13 varchar(255) NOT NULL default '',
cbModifier14 varchar(255) NOT NULL default '',
cbModifier15 varchar(255) NOT NULL default '',
cbModifier16 varchar(255) NOT NULL default '',
cbModifier17 varchar(255) NOT NULL default '',
cbModifier18 varchar(255) NOT NULL default '',
cbPublicName varchar(255) NOT NULL default '',
cbEmail varchar(255) NOT NULL default '',
cbUrl varchar(255) NOT NULL default '',
cbWhenLoggedIn varchar(255) NOT NULL default '',
cbBelongsToWho varchar(255) NOT NULL default '',
cbNumTimesViewed varchar(255) NOT NULL default '',
cbNumTimesViewedLast24 varchar(255) NOT NULL default '',
cbNumTimesViewedLastWeek varchar(255) NOT NULL default '',
cbNumTimesViewedLastMonth varchar(255) NOT NULL default '',
cbIsFrontPage varchar(255) NOT NULL default '',
cbPagePassword varchar(255) NOT NULL default '',
cbUserAddress varchar(255) NOT NULL default '',
cbModifier19 text NOT NULL,
cbModifier20 text NOT NULL,
cbModifier21 text NOT NULL,
cbModifier22 text NOT NULL,
cbModifier23 text NOT NULL,
cbModifier24 text NOT NULL,
cbStyle varchar(255) NOT NULL default '',
cbAllowComments char(1) NOT NULL default '',
cbListOfAllFilesThatBelongToThisEntry varchar(255) NOT NULL default
'',
cbIsRoughDraft varchar(255) NOT NULL default '',
cbHowManyEntriesShouldWeListOnThisPage bigint(11) NOT NULL default
'0',
cbUndo mediumtext NOT NULL,
PRIMARY KEY (cbId)
) TYPE=MyISAM;
Jul 16 '05 #4

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

Similar topics

19
by: Westcoast Sheri | last post by:
To keep track of how many fruits my visitors buy, I use a mySQL database (2 columns: "fruit" and "quantity")....so can we make these following mySQL queries work somehow? (visitor buys 5...
0
by: MJL | last post by:
This is a mysql/php question (but a little more on the mysql side.) The two are so closely related these days, I thought it would be ok to ask here. I installed on my Suse Linux system mysql 4.0...
8
by: Tony Clarke | last post by:
Hi, Just a quick question about performance with MySQL & PHP. If I had a table in a MySQL database with about 100,000 records in it and I need to find the last record is there a quick way to do...
2
by: pieter_hordijk | last post by:
Hi all, maybe this isn't a php question, but a MySQL question. If so I'm sorry for asking you guys to help me :) I know this question is asked often in NGs, but I couldn't find the answer...
2
by: kimshapiro100 | last post by:
Question on PhP, MySQL I am thinking of a consumer internet business for which I will have to have a database driven site built. I am thinking of using PhP, MySQL as the main technologies...
39
by: Mairhtin O'Feannag | last post by:
Hello, I have a client (customer) who asked the question : "Why would I buy and use UDB, when MySql is free?" I had to say I was stunned. I have no experience with MySql, so I was left sort...
1
by: Jim Carlock | last post by:
I have a couple questions about MySQL involving which version of MySQL to use. I'm looking for minimal memory use on a Windows XP machine. Which version would be best for this? And can anyone...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
5
by: news.telia.net | last post by:
Hi! I have a question. I have installed php and mysql on an apache-server on windows and I can't connect to the server. I tried to create a database (since I am trying to learn howto). My...
27
by: gerrymcc | last post by:
Hello, I'm a php/mysql beginner... Is there any way of making the mysql command line client full-screen? Sometimes it's easier to use the client than go thru php, but since it's only about 80...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.