Giter Site home page Giter Site logo

Comments (2)

djp952 avatar djp952 commented on August 11, 2024

So far this appears to be a performance issue on the Android emulators only, but I only have one physical Android device to test on. I also see "disk I/O" errors on the emulator which lead to the same result - database queries that fail. This makes more sense than "database is locked" anyway -- SQLite is using WAL mode, which uses a secondary transaction log file. The solution on Android may be to implement a retry mechanism, but I would prefer to find the root cause why this happens first; I would expect SQLite to handle the slow storage better than it seems to.

from pvr.hdhomerundvr.

djp952 avatar djp952 commented on August 11, 2024

Root cause appears to have been the introduction of a connection pool for the SQLite database without cleaning up the steps and order of operations used when opening a new connection. Database schema and static table data were being reinitialized unnecessarily but more importantly ensuring that the database is set for WAL and setting up the busy handler was being done after these initialization tasks. These changes appear to have resolved the problem.

from pvr.hdhomerundvr.

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.