Re: LuaJIT and mmap() scalability

  • From: Alexey Kopytov <akopytov@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 21 Feb 2017 09:01:20 +0300

On Tue, 21 Feb 2017 11:29:54 +1100, Daurnimator wrote:

On 20 February 2017 at 23:19, Alexey Kopytov <akopytov@xxxxxxxxx> wrote:
databases usually provide only synchronous client libraries

Most databases have async mode available in their clients.
e.g. postgresql's libpq has PQsetnonblocking()
For the ones that don't have that available via the official clients,
people have often written alternative client libraries.


- PostgreSQL allows at most one async query in flight. Which doesn't make it truly asynchronous. Not in the context being discussed, at least.
- MySQL does not have a maintained asynchronous client library. libattachsql is abandonware, and the new X protocol is a completely different story.

So no, life is not as simple as it may sound.

/Alexey


Other related posts: