From 65fd7bc9218f1bb0b4a5dd8d8141239b3211e1cd Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Thu, 25 Apr 2024 22:31:01 +0200 Subject: ref: Use storage instead of memory With async search we can afford waiting a bit more it to load without making the ui sluggish. --- db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db/db.go') diff --git a/db/db.go b/db/db.go index c3699d7..24c2a31 100644 --- a/db/db.go +++ b/db/db.go @@ -57,7 +57,7 @@ func (d *DB) SelectDict(ctx context.Context, query string, limit int) ([]*Word, `SELECT word, line FROM words - WHERE word MATCH ? + WHERE words MATCH ? ORDER BY rank LIMIT ?;`, query, limit, -- cgit v1.2.3