admin管理员组文章数量:1125578
I am looking for a fast and efficient yet simple mechanism for my search bar in my react+node web app.
There are 3 big tables out of them in 1 table we are adding the data, but other two tables are filled by our replication jobs from some other micro service data. We are consumer for that. Data in these tables will change almost every day.
In my UI search when a user search any text, lets say name column I have to return combined result from all 3 tables. Normal SQL query will be slow as data is like 1M and can grow more in future. Suggest me some better mechanism caching or something which will return the data faster.
Note: My db is relational postgres and search will be substring search (If I type aa then all records with names having aa anywhere should come). I will just need to return the json of name, id, tableName in UI
I did my research but confused on what to use
- PostgresSql with Trigram and GIN Indexing
- Redis
- ElasticSearch
本文标签:
版权声明:本文标题:sql - Mechanism for fast response on search based on name on 1M data from different tables - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736662315a1946475.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论