Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8706765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:41:47+00:00 2026-06-13T03:41:47+00:00

I am attempting to use a SQLite DB with an AIR project and there

  • 0

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.

  1. 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.

    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.

  2. 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.

    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 ?

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.

EDIT: Here is some documentation concerning the issue I found after wasting half the day. Adobe Doc

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:41:49+00:00Added an answer on June 13, 2026 at 3:41 am

    SQLite has no write concurrency; a writer will block all other readers and writers.

    When such a conflict happens, an SQLError with ID 3119 will be thrown. In this case, the application should wait and retry. SQLite has a built-in setting to do such a wait automatically, but this is not exposed by Air. You would have to do this manually in your code, which is not easy.

    Therefore, it would be easier to have a single connection to SQLite.
    If you’d want to use it asynchronously, you’d have to manage the accesses with a Mutex.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In attempting to use std::select1st from <functional> in a VS2008 project I found that
Attempting to use asp.net mvc's Action Result of File. So it would seem that
I am attempting to use an Ant build script to build a project that
I am attempting to use a SQLite database to store emails locally in android.
Im attempting to use websockets for a project. It needs to use the ipad,
I am attempting to use a parametrized LIKE query with Python's Sqlite library as
I'm attempting to use mysql after only having worked with sqlite in the past.
I an attempting to use a SQLiteFunction from my C# and ADO.NET code. Can
Im attempting to use fxCop on a C# Project as kind of basis for
I am attempting to use XMLParse against content that is not valid xhtml. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.