Giter Site home page Giter Site logo

Odd log entries about codex HOT 1 OPEN

abillauer avatar abillauer commented on July 29, 2024
Odd log entries

from codex.

Comments (1)

ajslater avatar ajslater commented on July 29, 2024
  1. The StreamingHttpResponse warning is the Django framework warning that I'm streaming files from disk as one big chunk which could be prone to blocking the webserver until the the response is done instead of having an asynchronous way of sending chunks down the HTTP pipe as they're made available by the operating system. Functionally, this would only be a performance problem for a) very large comic pages from very high res scans and b) downloading entire comics. However, I actually do chunk these out (in what I think are performance oriented chunk sizes) and yield control back to the webserver so it doesn't block. But I haven't managed to make Django get rid of the warning yet and that has irritated me for quite some time.

  2. The database is prone to occasionally locking during moments of interactive use because the database I've chosen for this project, sqlite3, was chosen for it's ability to be embedded and so people don't have to set up a separate database to use codex rather than it's ability to handle multithreaded writing well. Most of the high volume database transactions like importing comics are actually done single threaded, but setting bookmarks, setting user settings and it seems most frequently updating the user's last activity timestamp when they log in are prone to running into a locked database. The two remedies for this behavior would be a) switching to a high performance external database like postgresql or b) fixing codex so that all writing is always done in one thread. Option (b) is the most practical, but I haven't done it because functionally these little whoopsies don't seem to cause much actual degradation of the codex user experience.

  3. The reader is complaining that it's trying to look up Series pk 1 for comic 192588 to populate the reading order dropdown in the reader, but they don't seem to match. Pk 1 seems like a suspicious number, it would literally the first series ever imported by your codex library, so I wonder if that's a bug in my code, I'll look into it.

from codex.

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.