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

前端 未结 10 1976
春和景丽
春和景丽 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 17:41

    You can't partially update a document in solr. You have to re-post all of the fields in order to update a document.

    And performance matters. If you do not commit, your change to solr does not take effect, if you commit every time, performance suffers.

    There is no transaction in solr.

    As solr has these disadvantages, some times NoSQL is a better choice.

    UPDATE: Solr 4+ Started supporting commit and soft-commits. Refer to the latest document https://lucene.apache.org/solr/guide/8_5/

提交回复
热议问题