-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/08/2011 09:50 PM, Mike Blumenkrantz wrote:
> I have checked out the documentation and found information about
> using sqlite in async mode with threads,

Do you mean this?

  http://www.sqlite.org/asyncvfs.html

> but I am wondering if there is any
> (somewhat) easy way to get direct fd access and maintain asyncronicity without
> threads.

What is wrong with the asyncvfs?  It only needs one thread to do the I/O.
Using aio means that some combination of C library and kernel threads will
be used depending on the platform anyway.

In any event lets say you do implement aio, have you put any thought into
how you would test it?  If you do not thoroughly test it then there will be
potential for data loss or corruption.  Async code is a lot harder to test
and cause all the various combinations of race and error conditions.

Using pre-existing code from the SQLite team means it gets tested like this:

  http://www.sqlite.org/testing.html

How much test code would you need to write to be at the same level?  Or
maybe you can spare one I/O thread after all :-)

Roger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1S6PwACgkQmOOfHg372QQRaACgth621uZN+dDay9d7qvywhV/7
ZAYAoMnWLdpeueMXZw/j2L5p/qlObBvG
=ReyF
-----END PGP SIGNATURE-----
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to