Mailinglisten-Archive |
Hi Andreasm
Danke, allerdings soweit ich das sehe funktioniert diese schlankere
version nicht. ein explain darauf zeigt das alle 100k einträge
durchgeforstet werden und auch nicht
der Fulltext Index verwendet wird nur der uiniqueIndex der noch auf ID
liegt.
Abfrage dauert > 1 sek. (ohne das Limit)
Gruß
Andi
Andreas Müller schrieb:
> Hallo Andi,
>
> nun mit
>
> select product.id as id, product.title as title, product.manufacturer_id as
> mid, manufacturer.title as manuf_title
> from product, manufacturer
> where product.manufacturer_id = manufacturer.id
> and (
> ( match (product.title) against('blau grün') ) or
> ( match(manufacturer.title) against('blau grün') )
> )
> limit 1,20
>
> sollte das ganze noch etwas schlanker sein.
>
> Was ich jetzt nicht weiss ob MySQL auch bei einem Fulltext-Index einen
> sinnvollen Index Merge für das ODER beherrscht.
>
> Gruß,
> Andreas
>
>
php::bar PHP Wiki - Listenarchive