MySQL Forums
Forum List  »  Performance

Re: Adding keyword search (fulltext) to query
Posted by: Rick James
Date: October 24, 2012 09:08PM

To assist in analyzing slow SELECTs, please provide
* SHOW CREATE TABLE tbl\G -- engine, indexes
* SHOW TABLE STATUS LIKE 'tbl'\G -- sizes
* EXPLAIN SELECT ...\G -- clues of inefficiencies
* SHOW VARIABLES LIKE '%buffer%'; -- cache size
and surround them with [ code ] and [ / code ]

How fast do each of these run?

SELECT `listings`.`id` FROM listings
WHERE `listings`.`category` = 1
AND `listings`.`city` = 35862
AND `listings`.`visible` = 1;

SELECT `descriptions_test`.`listing_id` FROM `descriptions_test`
WHERE MATCH (`descriptions_test`.`description`) AGAINST ('swimming pool' IN BOOLEAN MODE) ;

If those are reasonably fast, I am thinking about a way to get the desired ids from those two, then reach for the rest of the data.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Adding keyword search (fulltext) to query
886
October 24, 2012 09:08PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.