Closed Bug 470818 Opened 16 years ago Closed 15 years ago

Slow query, looks like forum search?

Categories

(support.mozilla.org :: Forum, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED WONTFIX
Future

People

(Reporter: laura, Assigned: laura)

Details

Via justdave:
SELECT c.`title` AS name, c.`data`, c.`hits` AS hits, c.`commentDate` AS lastModif, CONCAT(f.`name`,': ',c.`title`) AS pageName, c.`parentId` AS parentId, c2.`hits` AS parentHits, c2.`title` AS topicName, c.`threadId` AS threadId, c.`userName` AS userName,f.`forumId` AS id1,c.`threadId` AS id2, MATCH(c.`title`,c.`data`) AGAINST ('use older version of firefox') AS relevance FROM (`tiki_comments` c, `tiki_forums` f) LEFT JOIN `tiki_comments` c2 ON c2.`threadId`=c.`parentId`  WHERE c.`objectType` = "forum" AND f.`forumId` = c.`object` AND f.forumId = 1 AND MATCH(c.`title`,c.`data`) AGAINST ('use older version of firefox') ORDER BY relevance desc, c.`hits`
Query is in webroot/lib/searchlib.php.

Takes 35 seconds local, in this case because it returns 60-odd thousand rows.  Whacking in a limit clause brings it down to ~1 second.  I'll see what else I can find.
Target Milestone: 0.8.1 → 0.8.2
Target Milestone: 0.8.2 → 0.9
Pushing new search will get rid of this query.  Deferring until after we've done that, and then likely INVALID.
Severity: critical → normal
Target Milestone: 0.9 → Future
We don't use this search any more.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
Verified due to new search.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.