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

  1. PostgresSql with Trigram and GIN Indexing
  2. Redis
  3. ElasticSearch

本文标签: