[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] mysql client with libevent



On 2011/9/1 10:28, William Ahern wrote:
On Wed, Aug 31, 2011 at 09:10:35PM -0500, Nulik Nol wrote:
<snip>
I have searched quickly what database engine supports asynchronous io
and found quite a lot of good projects, one of them called Redis, it
is a sort of replacement for memcachedb. Nice stuff! Check it out:
http://redis.io/

I think I am going to discard MySQL and go for using Berkeley DB, I
can design specialized data fetches (sort if implementing my own
database server optimized for my app) completely in-memory with
occasional replication to disk. Like Redis.
Even though Berkeley DB still doesn't support non-blocking read/write
it makes sense to spend some time on writing thread functions for it
than coding the same on top of SQL, would it be MySQL, PostgreSQL or
whatever. I didn't test it yet, but seems like I could get about 2x to
3x speed up this way on all data fetches.

FWIW, the PostgreSQL C client API works non-blocking. It's quite well
designed.

***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.

Yes , I think so.
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.