@gretschduojet are you using fulltext search on single column and exact match? Do you store multiple emails there?
Or is it only a bit inaccurate example?
Hello,
I'm having an issue with a table that has roughly 5.6 million records. I updated mysql to use full text search on InnoDB. Is it possible to limit your query results and use pagination? Some searches are returning approximately 60k results and it's taking about 10 seconds. Also, I'm fairly new to full text searching and I'm not sure how to search on an exact email. Right now it seems to match each side of the @ sign, but doesn't look for an exact match.
I resolved the problem by removing the
$query->whereRaw("MATCH(email) AGAINST (?)", array($userEmail));
and going back to
$query->where('email', 'like', "%{$userEmail}%");
I'm not quite sure why this fixed it though. Any insight on the difference between the two would be appreciated.
Please or to participate in this conversation.