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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:03:19+00:00 2026-06-02T20:03:19+00:00

I have one database with one table and another database. I need to copy

  • 0

I have one database with one table and another database. I need to copy this one table from the first database (with simple table) to the second. (In second database it should be fts3 table). So, I can open both databases, create new fts3 in the second db and copy all data from the first to the second via select -> insert queries. But is there any other ways to do it faster and better?

  • 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-02T20:03:21+00:00Added an answer on June 2, 2026 at 8:03 pm

    As far as I know the methodology you described (i.e. INSERT INTO db2.tbl SELECT * FROM db1.tbl) should generally be the most efficient.

    What you can do is tweak sqlite to do it faster. The first thing that comes to mind is to disable journaling (normally dangerous, but should be acceptable in your scenario as you still have an original of the data):

    pragma PRAGMA journal_mode=OFF:
    

    You can also turn off the synchronous pragma (also dangerous):

    PRAGMA synchronous=OFF;
    

    There are one or two more pragmas you can play with that could make a difference, but I think the two I mention will have the biggest impact.

    Be sure to restore those pragmas to their original values after the copy.

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

Sidebar

Related Questions

I have to copy a bunch of data from one database table into another.
Using C# (vs2005) I need to copy a table from one database to another.
I need to copy data from one database to another with EF. E.g. I
I need to use PHP to copy data from one MySQL database to another.
What is the SQL command to copy a table from one database to another
I have SMO code which copies tables from one database to another. It runs
Many applications have grids that display data from a database table one page at
I have some database table and need to process records from it 5 at
I have an abstract class for moving data from one database to another, and
I need to copy about 40 databases from one server to another. The new

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.