
21 Dec
2011
21 Dec
'11
8:48 p.m.
On Wed, Dec 21, 2011 at 9:21 PM, james@jamesbb.co.uk <james@jamesbb.co.uk> wrote:
Blocking - I've thought about this, but the MySQL C/C++ libraries unfortunately don't provide asynchronous queries.
I'm thinking of moving database reads into a seperate thread(s). It would be nice if I can integrate this with the io_service, but I'm unsure how to do so. Is it possible to pass arbitrary work items to an io_service, in the same manner as async_read/write?
Does every request involve blocking calls? If so, I'd not go with a 'shared nothing' design. Olaf