Git Product home page Git Product logo

Comments (11)

rehia avatar rehia commented on September 26, 2024

At the moment, I have muted other stores tests, because I don't know if I will be able to implement it in every stores.
A little help would be great !
I also don't know how to allow people to contribute to what will become a PR on this project.
Note that, in the base store, snapshots cleaning remain silent (only a warning) if not implemented in the store used by an application

from node-eventstore.

adrai avatar adrai commented on September 26, 2024

I would do the cleaning in combination with cqrs-domain.
exactly how you have done it... but without waiting for completion (fire and forget)
just catch if there is an error here and log in in debug... => rehia@a945ad2#diff-f641dc482370f1ff504efc63b483ccccR381

from node-eventstore.

adrai avatar adrai commented on September 26, 2024

It would be nice if you could do the mongodb implementation too (just if you want)...

from node-eventstore.

rehia avatar rehia commented on September 26, 2024

I've done a few things:

  • implementing snaphost cleaning for mongodb and elasticsearch. it seems optimized for elasticsearch, not sure for mongodb...
  • I've just changed a bit when snapshot cleaning is called: even when adding snapshot fails

Let met know if you see other things before submitting the PR

from node-eventstore.

adrai avatar adrai commented on September 26, 2024

Seems ok,
btw: tingodb has the same api of mongodb ;-)

from node-eventstore.

rehia avatar rehia commented on September 26, 2024

haha 😅
didn't know anything about tingo before 😁
i'll try to do it.
just need to grab the docker image to test.

I also need to make some real world tests on my project, with a huge amount of snapshots, to see if everything is ok.
I'll let you know

from node-eventstore.

rehia avatar rehia commented on September 26, 2024

done !
as long as the tests in real world.
Seems to work pretty good !
Just need a release !

from node-eventstore.

adrai avatar adrai commented on September 26, 2024

v1.12.0

from node-eventstore.

rehia avatar rehia commented on September 26, 2024

ok thanks @adrai !
i'll take a look at redis indexation to have more efficient scans

from node-eventstore.

hilkeheremans avatar hilkeheremans commented on September 26, 2024

no time to contribute atm, but just want to leave a quick thank you!

from node-eventstore.

adrai avatar adrai commented on September 26, 2024

@rehia I had to exclude elasticsearch the search function has some errors (no idea why)

from node-eventstore.

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.