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 8233517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:09:23+00:00 2026-06-07T18:09:23+00:00

I am using SQLite in memory database for my C++ project. In my project,

  • 0

I am using SQLite in memory database for my C++ project. In my project, there will be multiple threads reading and writing the SQLite in memory database concurrently. However, different threads are reading and updating different tables and yet I still get SQLite database table locking error. If I’m not wrong, I know that SQLite will lock the whole database file rather than the tables involved when one writer is writing the tables. I assume it is the same for the in memory database although I’m not sure. So I actually want to create multiple in memory databases to get around this. So my question is is it possible and if possible, how? Thank you in advance.

  • 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-07T18:09:25+00:00Added an answer on June 7, 2026 at 6:09 pm

    From a holistic perspective, even if SQLite doesn’t support table or row level locking (which I’m sure it must do) implementing multiple databases just to get round this sounds like the wrong way to go. It will end up with your application being needlessly complex just to get around a single technical issue.

    For example, how will you join tables between multiple databases? How will you synchronise transactions? If you don’t need to do that, ask yourself whether you actually need the power of an RDBMS – would a series of objects / collections based on Boost / STL not work as well, and probably faster?

    As for how it can be done. Some of the best information is actually on StackOverflow. Take a look at this answer for example.

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

Sidebar

Related Questions

I am using a DBD::SQLite in memory database. I have defined the following indexes
If a create a in-memory sqlite database using syntax below, then what is the
Here's my problem, I have one sqlite memory database by using QSql . I
My application creates a in-memory database (:memory:) using sqlite as a back end. I
Is there a way to load an entire SQLite database into memory for faster
I like the idea of using an In-Memory Database such as SQLite when testing
I am using sqlite database for iphone app. but its crash on while loop
I was newbie in using sqlite database android. and now I have a problem
We're using Sqlite3 as an embedded database on a C++ based project. The process
I know that on Android there is android.database.sqlite package that provides helpful classes to

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.