Jump to content

[SOLVED] Upgrading MySQL from 4.0.21 to 5.0.27


Linvo

Recommended Posts

Hello,

I upgraded MySQL from 4.0.21. to 5.0.27 (It was about time...!)

The main issue now is that it's awfully slow  :(  :-\ comparing to 4.0.21

Cannot figure out why. Tried a lot of changing parameters, configuration issues, but nothing seems to speed it up.

Somebody any ideas?

Thanks!
Link to comment
Share on other sites

To POST the query and the EXPLAIN output is rather difficult.
Because, the query is actually a routine that consists of multiple query's formulated in PHP classes.
So, speaking about "a query" was rather misleading.

I'll try to explain.

I use PHP classes to build MySQL query's.
For instance a SELECT query.

Also I use a PHP class for getting meta information from a MySQL (MyISAM) table.
For instance, what are the fieldnames, what is the PK in the table, which signature does the table has, what are the fieldtypes, what's the last record, etc. That information is used to build the query's.
So, when I want to select records from a table, I create an instance of the DBtable class for the specific MySQL table in PHP and furthermore I create an instance of the SELECT class in PHP and give the instance of the table class as an (input) argument to it.
The instance of the SELECT class does have methods to create select query's to get values from fields, or get records form the specific table that meet certain conditions, etc.

The reason why I do this like this, is because I can use these PHP classes within al my PHP applications, without writing for each application the specific MySQL query's. It's a sort of standard interface to my MySQL databases.

One thing though is not possible (yet), and that's to get the output from an EXPLAIN.


Maybe there's another way to find out why the difference in speed is so dramatic?
In both versions the way the query's are build and how the tables are defined including their definition and indexes are the same.
Link to comment
Share on other sites

I understand that you've abstracted the DB... but somewhere at the "end" it runs an actual query, just echo that, store it to a file, return it, whatever.  And just because the query and the tables are the same, doesn't mean the optimizer/parser treats them the same way in different versons.
Link to comment
Share on other sites

Fenway,

I've finally a clue about the problem. It had, i'm relieved, nothing to do with the upgrading. For some not yet understandable reason, a virusscanner which is active on my LAN became active during consulting the MySQL server from any computersystem in my LAN. This was not the case with version 4.0.27 but for some reason it came alive with version 5.0.27. Having disabled this scanner, the speed of both versions are the same.

Thanks anyway for your attention.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.