HowdeeDoodee Posted July 11, 2007 Share Posted July 11, 2007 Is there any way I can improve anything below to get quicker access times? I just ran optimize table which did not help. Here is the query run in phpMyAdmin. SELECT * FROM `View2_DTTENNFT` WHERE MATCH(Topic, Subtopic, Theswords) AGAINST ('apples' IN BOOLEAN MODE) AND MATCH(Topic, Subtopic, Theswords) AGAINST ('johnny' IN BOOLEAN MODE) ORDER BY `Lnum` ASC Here is the access time. 24 seconds Here is the table structure. Keyname Type Cardinality Action Field Source INDEX 29693 Edit Drop Source 3 Lnum INDEX 29693 Edit Drop Source 3 Topic FULLTEXT 29693 Edit Drop Topic Subtopic FULLTEXT 29693 Edit Drop Topic Theswords FULLTEXT 29693 Edit Drop Topic Statements Value Format dynamic Collation latin1_swedish_ci Rows 29,693 Row length ø 4,916 Row size ø 7,054 B Thank you in advance for any replies. Quote Link to comment https://forums.phpfreaks.com/topic/59453-is-there-any-way-my-table-structure-and-access-times-can-be-improved/ Share on other sites More sharing options...
Wildbug Posted July 11, 2007 Share Posted July 11, 2007 It may help to combine the two words, "+johnny +apple", into a single MATCH...AGAINST query. Quote Link to comment https://forums.phpfreaks.com/topic/59453-is-there-any-way-my-table-structure-and-access-times-can-be-improved/#findComment-295633 Share on other sites More sharing options...
HowdeeDoodee Posted July 11, 2007 Author Share Posted July 11, 2007 Thanks for the response. However, using one statement resulted in an access time of 40.4610 sec. compared the 24 seconds shown above. Things are not looking good at the moment. Quote Link to comment https://forums.phpfreaks.com/topic/59453-is-there-any-way-my-table-structure-and-access-times-can-be-improved/#findComment-295737 Share on other sites More sharing options...
fenway Posted July 12, 2007 Share Posted July 12, 2007 You need to have a single fulltext index across all 3 columns -- not 3 separate indexes. Quote Link to comment https://forums.phpfreaks.com/topic/59453-is-there-any-way-my-table-structure-and-access-times-can-be-improved/#findComment-296249 Share on other sites More sharing options...
HowdeeDoodee Posted July 12, 2007 Author Share Posted July 12, 2007 Thanks fenway. I have that, I did not know how to display it. I had to copy and paste unformatted, etc. etc. Quote Link to comment https://forums.phpfreaks.com/topic/59453-is-there-any-way-my-table-structure-and-access-times-can-be-improved/#findComment-296771 Share on other sites More sharing options...
fenway Posted July 13, 2007 Share Posted July 13, 2007 Thanks fenway. I have that, I did not know how to display it. I had to copy and paste unformatted, etc. etc. OK... you can always post the show indexes output as well. What does EXPLAIN have to say? Quote Link to comment https://forums.phpfreaks.com/topic/59453-is-there-any-way-my-table-structure-and-access-times-can-be-improved/#findComment-297318 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.