Git Product home page Git Product logo

Comments (4)

Arkatufus avatar Arkatufus commented on June 2, 2024 1

That is correct, the deleted column will still be there, the only difference will be the removal of the logical-delete option in the HOCON config. By doing this, we can make journal query a lot simpler without having to include include-deleted flag. All of journal queries can be turned into pre-compiled queries that should improve read speed/throughput even more.

from akka.persistence.sql.

to11mtm avatar to11mtm commented on June 2, 2024

IIRC when I originally ported things over, persistence-jdbc still had logical deletes as an option but marked 'will be removed in next major release'

So, if we want to get rid of it that makes sense, as long as there's no demand for it.

Do note that (at least last I checked) the IsDeleted column is still utilized for 'hard' deletes in native jvm; that's how they get around the need for a JournalMetadata table (just keep the last column in DB with IsDeleted=1)

The only 'devils advocate' though I have in favor of keeping soft deletes, is that it can be used as a form of runtime optimization (where a background job cleans up the unneeded soft delete records rather than having them cleared in the plugin) but that feels a bit extreme even for my taste.

from akka.persistence.sql.

Aaronontheweb avatar Aaronontheweb commented on June 2, 2024

Yeah I don't think we should allow the user to specify what type of delete they want - the plugin should just do what it thinks is best.

from akka.persistence.sql.

Arkatufus avatar Arkatufus commented on June 2, 2024

Implemented in #124

from akka.persistence.sql.

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.