NoSQL (MongoDB) vs Lucene (or Solr) as your database

前端 未结 10 1958
春和景丽
春和景丽 2020-11-28 17:05

With the NoSQL movement growing based on document-based databases, I\'ve looked at MongoDB lately. I have noticed a striking similarity with how to treat items as \"Documen

10条回答
  •  爱一瞬间的悲伤
    2020-11-28 17:51

    If you just want to store data using key-value format, Lucene is not recommended because its inverted index will waste too much disk spaces. And with the data saving in disk, its performance is much slower than NoSQL databases such as redis because redis save data in RAM. The most advantage for Lucene is it supports much of queries, so fuzzy queries can be supported.

提交回复
热议问题