Jump to content

[SOLVED] Wild difference in query access times, what goes here????


HowdeeDoodee

Recommended Posts

i have access to a slow queries folder from my host provider. I check this folder frequenctly. I ran the slow queries in phpMyAdmin and I am getting wildly different results, even when I run the same query multiple times. What in the world is going on here, that I run the same query and get results from 14 seconds to .0002 seconds for the same query on the same db????

 

The following query that took 16 seconds when run from my script took 73 sec, in php myadmin

 

# Query_time: 16  Lock_time: 0  Rows_sent: 10  Rows_examined: 29703

SELECT * FROM `View2_DbbEddFT` WHERE MATCH(Topic, Subtopic, Theswords) AGAINST ('Judds' IN BOOLEAN MODE) OR MATCH(Topic, Subtopic, Theswords) AGAINST ('Icey' IN BOOLEAN MODE) OR MATCH(Topic, Subtopic, Theswords) AGAINST ('Charley' IN BOOLEAN MODE) OR MATCH(Topic, Subtopic, Theswords) AGAINST ('' IN BOOLEAN MODE) OR MATCH(Topic, Subtopic, Theswords) AGAINST ('' IN BOOLEAN MODE) OR MATCH(Topic, Subtopic, Theswords) AGAINST ('' IN BOOLEAN MODE) ORDER BY `Lnum` ASC LIMIT 0, 10

 

The following query took 14 seconds, in php myadmin

 

SELECT * FROM `View2_DbbEddFT` WHERE MATCH(Topic, Subtopic, Theswords) AGAINST ('Judds' IN BOOLEAN MODE) OR MATCH(Topic, Subtopic, Theswords) AGAINST ('Icey' IN BOOLEAN MODE) OR MATCH(Topic, Subtopic, Theswords) AGAINST ('Charley' IN BOOLEAN MODE) OR MATCH(Topic, Subtopic, Theswords) AGAINST ('' IN BOOLEAN MODE) OR MATCH(Topic, Subtopic, Theswords) AGAINST ('' IN BOOLEAN MODE) OR MATCH(Topic, Subtopic, Theswords) AGAINST ('' IN BOOLEAN MODE) ORDER BY `Lnum` ASC LIMIT 0, 10

 

The following query identical to the one above, ran a second time took .0002 seconds, in php myadmin

 

SELECT * FROM `View2_DbbEddFT` WHERE MATCH(Topic, Subtopic, Theswords) AGAINST ('Judds' IN BOOLEAN MODE) OR MATCH(Topic, Subtopic, Theswords) AGAINST ('Icey' IN BOOLEAN MODE) OR MATCH(Topic, Subtopic, Theswords) AGAINST ('Charley' IN BOOLEAN MODE) OR MATCH(Topic, Subtopic, Theswords) AGAINST ('' IN BOOLEAN MODE) OR MATCH(Topic, Subtopic, Theswords) AGAINST ('' IN BOOLEAN MODE) OR MATCH(Topic, Subtopic, Theswords) AGAINST ('' IN BOOLEAN MODE) ORDER BY `Lnum` ASC LIMIT 0, 10

 

Thank you in advance for any replies.

 

 

 

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.