Code Monkey home page Code Monkey logo

Comments (9)

oldani avatar oldani commented on May 25, 2024

@muatik I will try to replicate and fix it and submit a PR, i need this fix asap

from flask-profiler.

teleyinex avatar teleyinex commented on May 25, 2024

We've had this issue as well here.

from flask-profiler.

muatik avatar muatik commented on May 25, 2024

@teleyinex Can you switch to using sqlalchemy configurations? https://github.com/muatik/flask-profiler#sqlachemy

from flask-profiler.

teleyinex avatar teleyinex commented on May 25, 2024

That doesn't work either. Interestingly I get an SSL EOF error from psycopg2. Our solution has been to use MongoDB for now. I guess the main issue, is that flask_profile issues too many writes, and sqlite locks itself. Maybe changing the sampling could fix this?

from flask-profiler.

muatik avatar muatik commented on May 25, 2024

yes, you can reduce the sampling ratio via configuration too. but it will not be a permanent solution anyway.

from flask-profiler.

teleyinex avatar teleyinex commented on May 25, 2024

Yep. I don't know, the issue is that we're using them in production, and that's why we cannot debug it unless we write some load testing for the dev server. With sqlite I can imagine the issue is that, while with SQLAlchemy I'm not sure. We'll keep an eye on it in any case ;-)

from flask-profiler.

aardvark82 avatar aardvark82 commented on May 25, 2024

Same issue here. How do you recover?

from flask-profiler.

muatik avatar muatik commented on May 25, 2024

@aardvark82 you can use another db vendor via SQLAlchemy integration. check out README.md page for more information.

from flask-profiler.

amarvin avatar amarvin commented on May 25, 2024

Same issue here. SQLAlchemy docs seem to say that SQLite3 database locking could be even worse when using SQLAlchemy rather than using the native SQLite3 connector: https://docs.sqlalchemy.org/en/14/dialects/sqlite.html#database-locking-behavior-concurrency.

from flask-profiler.

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.