Pelican Parts
Parts Catalog Accessories Catalog How To Articles Tech Forums
Call Pelican Parts at 888-280-7799
Shopping Cart Cart | Project List | Order Status | Help



Go Back   Pelican Parts Forums > Porsche Forums > Porsche 911 Technical Forum


Reply
 
LinkBack Thread Tools Rate Thread
Author
Thread Post New Thread    Reply
Registered
 
Join Date: Jun 2003
Location: Chelmsford, MA
Posts: 872
Its been a while since I've used MySQL/PHP for anything, but when I was it was for systems with what I'd assume was higher query rates than even a fairly popular forum would generate.

Without knowing any more details about configuration of things, that really smells like a PHP issue, not a MySQL issue...

I always had bad luck with PHP+IIS on Windows, but that was a few years ago. Have you tried changing PHP versions? There were a few cases back then (this was four or five years ago at this point) where I chased bugs for ages that turned out to be PHP-related.
__________________
1968 911L
2004 Dodge Dakota SLT Plus
Old 10-07-2003, 01:44 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #2 (permalink)
Registered
 
nostatic's Avatar
 
Join Date: Sep 2001
Location: SoCal
Posts: 30,318
Garage
I sent email to my PHP/MySQL expert. My guess is he'll say "we don't have those problems...we run on a real OS." I'll let you know if he has anything productive to say.

I told you to buy the X-Serve
Old 10-07-2003, 02:30 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #3 (permalink)
DGL DGL is offline
Registered
 
Join Date: Jul 2002
Location: Devon, PA
Posts: 16
Sounds like an index issue to me.

Do you use a FULLTEXT type index and MATCH() on the target
select table?

Look at how the select statements for full post search and title on search differ.
It is possible that the full post search is properly using an index and title search is not, resulting in the dramatically different response time.

To help isolate the problem run the same select that your application runs directly against the DB (not through the app (PHP) if it runs slowly in a direct sql call it is likely an index issue.
Old 10-07-2003, 02:49 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #4 (permalink)
Registered
 
moazam's Avatar
 
Join Date: Sep 2003
Location: Fremont, CA
Posts: 829
Garage
Send a message via AIM to moazam
Comments on similiar problem

From: Bill Fumerola
Date: Wed Mar 27, 2002 8:34 pm
Subject: Re: keystone-users Re: Recommended PHP version?

On Wed, Mar 27, 2002 at 12:31:45PM -0700, Nieltawee, Lake wrote:
> Oppss! .sorry I hit the Enter key by accident...Part II
>
> First of all, thank you responding to my post. Next, if you get Keystone
> working on PHP4, than I must do something wrong. But I keep getting bunch
> of syntex errors, like:

keystone runs on php4. these are warnings, not syntax errors.

> Warning: Use of undefined constant bghigh - assumed 'bghigh' in
> c:\apache\htdocs\keystone\conf\colors.conf.default on line 30
> Warning: Use of undefined constant bgmed - assumed 'bgmed' in
> c:\apache\htdocs\keystone\conf\colors.conf.default on line 31
> Warning: Use of undefined constant bglow - assumed 'bglow' in
> c:\apache\htdocs\keystone\conf\colors.conf.default on line 32
> Warning: Use of undefined constant back - assumed 'back' in
> c:\apache\htdocs\keystone\conf\colors.conf.default on line 33
> Warning: Use of undefined constant bgwhite - assumed 'bgwhite' in
> c:\apache\htdocs\keystone\conf\colors.conf.default on line 34
> Warning: Use of undefined constant link - assumed 'link' in
> c:\apache\htdocs\keystone\conf\colors.conf.default on line 37

these come from arrays being referenced like:

$foo[BAR]
and not
$foo['BAR']

these are reasonably harmless warnings.

> or after I log-in:
> Warning: mysql is deprecated; use mysql_select_db() and mysql_query()
> instead in c:\apache\htdocs\keystone\mysql.php3 on line 22

mysql.php3 still uses some php3-era mysql library calls. php provides
backwards compatability, so its not a big deal.

> Warning: Use of undefined constant passwd - assumed 'passwd' in
> c:\apache\htdocs\keystone\login.php3 on line 66

see above.

> Did you get these error? Problably not. Do you have any ideas why do I get
> these error?

your php.conf may be configured to report more warnings.
__________________
2014 Porsche Cayman S
2001 BMW 525i Touring
1996 Porsche 911 (Gone to Germany)
'86 911 Carrera (Gone to Aruba)
Old 10-07-2003, 03:01 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #5 (permalink)
B58/732
 
BlueSkyJaunte's Avatar
 
Join Date: Feb 2000
Location: Hot as Hell, AZ
Posts: 12,313
Boy, give a MechE a computer and look what he does...

Just kiddin', Wayne.
__________________
ΜΟΛΩΝ ΛΑΒΕ
I don't always talk to vegetarians--but when I do, it's with a mouthful of bacon.
Old 10-07-2003, 03:05 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #6 (permalink)
 
Gon fix it with me hammer
 
svandamme's Avatar
 
Join Date: Sep 2003
Location: In Flanders Fields where the poppies blow
Posts: 23,537
Garage
i'd suspect index trouble as well, how did you migrate your DB to the new server??
do you still have the old one around to compare settings?
__________________
Stijn Vandamme
EX911STARGA73EX92477EX94484EX944S8890MPHPINBALLMACHINEAKAEX987C2007
BIMDIESELBMW116D2019
Old 10-07-2003, 03:14 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #7 (permalink)
Moderator
 
Don Plumley's Avatar
 
Join Date: Jun 2001
Location: Geyserville, CA
Posts: 6,921
Garage
I'm sure there is a good technical reason why Bosch didn't use MySQL for the DME in my Porsche... Just trying to keep it on topic!
__________________
Don Plumley
M235i
memories: 87 911, 96 993, 13 Cayenne
Old 10-07-2003, 03:18 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #8 (permalink)
Registered
 
jankemi's Avatar
 
Join Date: Jun 2003
Location: MN
Posts: 26
Send a message via AIM to jankemi
I've got some mysql databases that have multi-million records, but not on W2K.

Some ideas :

1) Mysql tuning:

set-variable = key_buffer=2048M

Key buffer - 2GB? How much RAM do you have? Can you look at the my-huge.cf that came with MySQL - NT? I've got some different values.

2) How much RAM is the mysql process using? Are you swapping (high disk I/O)? NT/2K has pretty good tools for monitoring performance of CPU & disk. (perfmon). If mysql process is using more than physical RAM, you'll swap a lot. Swapping on IDE drives will be slow. Perfmon should be able to monitor I/O. I'd watch physical disk & page file utilization.

I've got an I/O problem on one of my MySQL databases, where during normal operation the I/O uses 100% of the SCSI bus, so MySQL can't read/write its tables and indexes fast enough. I need another SCSI card & need to split the data tables across multiple cards, or add more RAM & tune my.cnf.

3) An index problem? Can you dissect the PHP code enought to figure out what query is used by the slow search, and then type it into a mysql> command prompt, but type 'explain' first.

.i.e instead of
select blah from blah where...
do
explain select blah from blah where...

Then look at MySQL docs to figure out if the quey is using indexes or not, or if the query is using the wrong index. If you are not using an index or the right index, you'll 'sweep' the table, reading every record. Lots of I/O.

4) 'optimize tables'

5) Hmm... these may be full text searches, which have special considerations. Probably have to search mysql.com for info on how they are indexed.

These articles look like good intro's to MySQL tuning:

http://www.databasejournal.com/features/mysql/article.php/1382791

http://www.databasejournal.com/features/mysql/article.php/10897_1402311_2

They give an intro of how to interpret 'show status;'

--Mike


Last edited by jankemi; 10-07-2003 at 07:04 PM..
Old 10-07-2003, 06:06 PM
  Pelican Parts Catalog | Tech Articles | Promos & Specials    Reply With Quote #9 (permalink)
Reply


 


All times are GMT -8. The time now is 05:31 PM.


 
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2025 Pelican Parts, LLC - Posts may be archived for display on the Pelican Parts Website -    DMCA Registered Agent Contact Page
 

DTO Garage Plus vBulletin Plugins by Drive Thru Online, Inc.