Note that there are some explanatory texts on larger screens.

plurals
  1. POAdobe Air SQLite Misunderstanding
    primarykey
    data
    text
    <p>I am attempting to use a SQLite DB with an AIR project and there seem to be a few questions that I just can't seem to find the answers to on the internet, especially ones concerning best practices.</p> <ol> <li><p>The first is about having multiple connections in the same application instance. Some application processes require the use of a db for a split second, and would better be served by a synchronous type code flow (try{}catch(){}). Some processes may take awhile and would be better served by an asynchronous code flow with an AsyncResponder.</p> <p>Because of this, I have thought about having a ConnectionPoolManager which would have multiple instances of async and one instance of my sync SQLConnection classes. Is this a decent, good or absolutely atrocious idea ? This leads me to my next point.</p></li> <li><p>Is there any issue of having multiple async connections running their async statements in parallel ? I've seen some people complain about the db being locked, and I've read that only one statement can perform a write at a time. </p> <p>What happens if a write statement gets called to execute(new Async...) while another one is busy ? Will an error be thrown, or will it wait for a timeout ?</p></li> </ol> <p>Any clarification about this issue would be greatly appreciated. I keep running into sources that kind of answer one-off questions but not my question in particular. Usually I would go test it myself, but I'm worried I may not be able to reproduce the pitfall error that will only manifest itself at heavier usage levels.</p> <p>EDIT: Here is some documentation concerning the issue I found after wasting half the day. <a href="http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7d2b.html" rel="nofollow">Adobe Doc</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload