GithubHelp home page GithubHelp logo

auto-push's People

Contributors

bgamari avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

jellyr tdammers

auto-push's Issues

"Database is locked"

The problem: SQLite does not actually support fully concurrent transactions; instead, any transaction that wants to start when another transaction is already active waits until the other transaction releases its lock, or until the attempt times out. We now have a few transactions that are long enough to trigger such timeouts.

Possible solution approaches:

  1. See if we can increase the SQLite busy timeout.
  2. Use the withTransaction machinery to force transactions to run serially. This will avoid the "database is locked" error, but if any transaction fails to terminate, it will block everything else. This, in turn, means we'd have to add our own timeout, but then we'd just be reinventing the same wheel (albeit with a timeout that we control).
  3. Figure out a way to make those transactions shorter, i.e., do the thing that now happens inside the transaction outside of a transaction. This would require extending the MergeRequest data model to support more fine-grained states, and dealing with the resulting in-between transitions.
  4. Use PostgreSQL.

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.