GithubHelp home page GithubHelp logo

Comments (6)

tseaver avatar tseaver commented on June 13, 2024

For reference, the place where the reverse sort would be applied is this line.

from transaction.

d-maurer avatar d-maurer commented on June 13, 2024

Despite the title, I am not sure about the best abort order. My case has demonstrated that the abort order can be important - however, it does not clearly indicate which abort order is the best.

I will analyse my case in more detail in the next few days and will report about the results.

from transaction.

d-maurer avatar d-maurer commented on June 13, 2024

The abort order I have proposed in the title would not help in my case. In this case, the commit order is QueueTM resources followed by the ZODB connection. This means, that in this special case, using the commit order for abort as well would be the right choice (still not sure about other cases).

from transaction.

jimfulton avatar jimfulton commented on June 13, 2024

Having storage-level machinery depend on persistent object state is a bad idea.

I don't want to make the transaction machinery more complex to support a brittle design.

from transaction.

tseaver avatar tseaver commented on June 13, 2024

@jimfulton FWIW, how does that explain the use of dm.sortKey() during commit()? I would find it credible that abort() should use the same ordering.

from transaction.

jimfulton avatar jimfulton commented on June 13, 2024

The sort key is needed to avoid deadlocks. Abort has no such issue.

(The sort-key is potentially useful for ordering a faux-transactional DM after regular ones, but I regret that model in the first place. :-) )

from transaction.

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.