Giter Club home page Giter Club logo

Comments (3)

rwynn avatar rwynn commented on July 19, 2024

@Crispy1975,

When enable-patches is set to true, monstache needs to do more work and would actually be slower. Sorry if I was not clear enough with what that setting does. When enabled, monstache will compare new or updated documents from MongoDB to the latest corresponding (by _id) document in Elasticsearch and create a merge patch document will the difference between the two. Then, it will add the difference to the new or update MongoDB document before indexing it into ElasticSearch.

Then enable-patches setting does not affect the behavior of deletes, only inserts and updates. For an insert, the difference is just the whole document itself. For an update, monstache needs to call the Elasticsearch REST API to get the previous version in order to do the compare.

from monstache.

Crispy1975 avatar Crispy1975 commented on July 19, 2024

@rwynn thanks for the clarification. 👍

from monstache.

rwynn avatar rwynn commented on July 19, 2024

@Crispy1975 just release monstache 3.0 which some major internal changes. There are a couple of configuration changes with regards to Elasticsearch but nothing drastic. Hopefully, this version will give you better performance. Thanks!

from monstache.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.