Why is Solr so much faster than Postgres?

前端 未结 5 1843
故里飘歌
故里飘歌 2021-01-29 18:27

I recently switched from Postgres to Solr and saw a ~50x speed up in our queries. The queries we run involve multiple ranges, and our data is vehicle listings. For example: \"Fi

5条回答
  •  灰色年华
    2021-01-29 18:58

    Please read this and this.

    Solr (Lucene) creates an inverted index which is where retrieving data gets quite faster. I read that PostgreSQL also has similar facility but not sure if you had used that.

    The performance differences that you observed can also be accounted to "what is being searched for ?", "what are the user queries ?"

提交回复
热议问题