RE: [PHP] Re: massive MySQL tables
| From: | Alfredeen, Johan | Date: | Tue, 09 Oct 2001 14:34:43 +0000 |
| Subject: | RE: [PHP] Re: massive MySQL tables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-70488@lists.php.net to get a copy of this message | ||
"Maybe if you are really concerned, store some data that
will never change in files.... Non-dynamic data doesn't follow the database
concept, does it?... :-)"
Sure it does. Most enterprise databases also include static tables, in
addition to dynamic tables. These are often known as Reference or Domain
tables. Databases are great at indexing for fast searching of table rows.
Stay away from large flat files.
Speaking of which, I recommend that you (Jason) isolate any data that may be
entered often, like when a user selects from possible values such as state
names, and make these seperate domain tables. Then all you need to insert
into your dynamic table is an integer ID associated with the actual value.
Saves space and makes your db design more scalable and flexible.
Johan
-----Original Message-----
From: Julio Nobrega Trabalhando
[mailto:inerteARROBAhotmail.com@pb1.pair.com]
Sent: Tuesday, October 09, 2001 6:37 AM
To: php-general@lists.php.net
Subject: [PHP] Re: massive MySQL tables
I have similar problems with 2 huge forms. The best thing I am doing is to
divide among lots of Mysql tables. And follow a lot of performance hints
from its manual.
For example, separate variable length fields from those who are not (ie
Varchar in a table, Int on another).
And so it goes... Maybe if you are really concerned, store some data that
will never change in files.... Non-dynamic data doesn't follow the database
concept, does it?... :-)
--
Julio Nobrega
A hora esta chegando:
http://toca.sourceforge.net
"Justin French" <justin@indent.com.au> wrote in message
news:3BC22718.CF31EF78@indent.com.au...
> Hi all,
>
> Sorry for being slightly OT, but I'm working on a site with a large
> application form (84 fields) which people have to fill in. The form is
> rendering in the browser pretty quick (my first worry), but now I'm
> concerned that 85+ data fields in MySQL might create performance
> problems on the server.
>
> Is this likely?
>
> Most fields are "medium text" or "varchar", and will not need to be
> searched at all, so i'll prolly just index the two or three important
> ones, and leave it at that.
>
>
> If there is likley to be a performance hit, what other options will I
have?
>
>
> Justin French
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net