Hello Bart,
yes it is crude but I am doing a quick POC and time is short as they
say :(
if the POC goes well then I will dig into the code and sort it.
Yes I know web database api is no longer maintained by w3c but it is
so much more easy to use then the indexeddb api when you have
relational data. Also I believe (but I admit information out there is
sketchy) that the indexeddb api is still patchy across browsers? Maybe
you know better?
The fundamental problem I am having now is that if I access the same
web sql database from the web worker (using async api) and the ui
thread (using async api) I sometimes get issues if transactions
overlap between the two where the transaction fails or is simply
bizarely skipped without error. I have assumed this is a webkit issue
since a web worker is totally sandboxed from the ui thread (apart from
the noddy messaging between the 2 you can do) in terms of javascript.
I am wondering if it is worth trying to use the sync api in the worker
thread (which has been implemented in webkit - the gwt-mobile-webkit
web site needs updating here since it states the opposite). It looks
straight forward to create a gwt sync database api in the worker which
again I can do? Any thoughts whether you think this will solve my
issue?
As far as I am aware SQLite supports concurrent access (but only 1
thread can write to the database at a time), but SQLite happily blocks
threads as needed so I do not see why it would be an issue accessing
the sqlite db from 2 threads (like I am doing).
If webkit has a bug I will need to report it and then also use a
different storage mechanism for the POC? Any ideas here as well? I'm
targeting mostly webkit type browsers (playbook, android, iphone etc)
Many thanks