Code Monkey home page Code Monkey logo

Comments (5)

coleifer avatar coleifer commented on June 12, 2024

It's an embedded database... there's no socket i/o at all. What do you even...

from unqlite-python.

techdragon avatar techdragon commented on June 12, 2024

@coleifer Just because it's an embedded database, doesn't mean its not blocking. SQLite is an embedded database with no sockets in sight, but we have https://github.com/jreese/aiosqlite to provide non-blocking AsyncIO support for it. AsyncIO isn't just for network/socket related I/O.

from unqlite-python.

coleifer avatar coleifer commented on June 12, 2024

Yes and I have real questions about the utility of aiosqlite. It is really just a compatibility layer and in no way geared towards performance.

from unqlite-python.

coleifer avatar coleifer commented on June 12, 2024

If you look at the code/issues you can see all kinds of bullshit about inserting sleeps and queue timeouts...it's garbage. Hacks to make a synchronous library appear to work with a *socket i/o-driven event loop.

from unqlite-python.

techdragon avatar techdragon commented on June 12, 2024

@coleifer Thanks for the clarification. I've only just started to dig into using AsyncIO, I assumed the library would be using https://www.sqlite.org/asyncvfs.html and be 'properly' asynchronous, and wasn't sure if unqlite had an equivalent. Having looked at unqlite more now though I'm not sure it has an equivalent async feature, also looking at aiosqlite a bit more deeply, i can already see what you were talking about.

from unqlite-python.

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.