You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
awaitdb.schema.raw(` CREATE INDEX idx_words_lang_phon ON searches USING gin (text gin_trgm_ops, language_id, is_phonetic) `);awaitdb.schema.createIndex('idx_words_lang_phon').on('searches').expression(sql`(text gin_trgm_ops, language_id, is_phonetic) USING gin`).execute()
Any of these work or ideal? What is recommended?
And same for this:
CREATEINDEXidx_words_prefix_fuzzyON searches
USING gin (text gin_trgm_ops)
WHERE length(text) >=3;
How can you write this sort of query with Kysely?
I know you can do this so far:
But how about specifying the
gin_trgm_ops
and the rest of the columns, is there a nice way? Perhaps:ClaudeAI is suggesting these two:
Any of these work or ideal? What is recommended?
And same for this:
Is that just this? (Is there a better way)?
Also (tangent), do I need to do this somewhere (and how to do it in Kysely)?
Thanks for the help.
The text was updated successfully, but these errors were encountered: