Home » Performance » FullText » Fulltext search with order by static field
Fulltext search with order by static field [message #283] Tue, 24 October 2006 02:32 Go to previous message
al.james  is currently offline al.james
Messages: 15
Registered: October 2006
Junior Member
Hi there...

I need to optimise:

SELECT * FROM table WHERE MATCH(text_field) AGAINST ('text') ORDER BY score DESC;

where score is a pre-computed int field.

At the moment, despite text_field and score both having indices, the query results in a filescan.

I guess as mysql will only use one index per table, it is using the fulltext index.

Is there anything that can be done to speed this up?

thanks

Alastair James

Read Message
Read Message
Read Message
Read Message
Previous Topic:Setup Sphinx
Next Topic:fulltext search with additional condition in the where clause
Goto Forum:

  



Current Time: Mon Oct 13 09:11:03 EDT 2008

Total time taken to generate the page: 0.01890 seconds
.:: Contact :: Home :: MySQL Support by Percona.com ::.

Powered by: FUDforum 2.7.5.
Copyright ©2001-2006 FUD Forum Bulletin Board Software

MySQL Performance | Forum authority Badge