from table where name like "string"
I could use pg trm index to speed it up,
any other ways to speedup substring query with posgres ?? full text search doesnt help with this thing
string is hardcoded in the query?
its user input so nope
Then you're f'ed, use a search engine instead
Search engine or vector database
I think pg trm works well, I want to benchmark it, index size of pg trm is huge but the speedup is actually good
Search engine
Elasticsearch
Обсуждают сегодня