Skip to content

Commit 7206cd8

Browse files
authored
Used MySQL fulltext search to improve search performance (#1476)
no ref We use MySQL fulltext search to narrow down the result set based on the search term, then use our previous `LIKE` based ranking system on the reduced result set
1 parent 0f7d4da commit 7206cd8

File tree

5 files changed

+937
-446
lines changed

5 files changed

+937
-446
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP INDEX idx_accounts_fulltext_search ON accounts;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CREATE FULLTEXT INDEX idx_accounts_fulltext_search ON accounts(name, username, domain);

0 commit comments

Comments
 (0)