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

  • Home
  • SEARCH
  • 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 9012141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:55:11+00:00 2026-06-16T02:55:11+00:00

I am trying to import a table from an old database (MS Access) to

  • 0

I am trying to import a table from an old database (MS Access) to MySQL server using CRBatchMove using Delphi 2007.

The program fetches data from the legacy database over an ODBC connection and stores it on the local hard drive using TADOTable.SaveToFile(). The second part of the program reads this file into another TADOTable and uses TCRBatchMove to transfer it to a MySQL server (via DevArt’s TMyTable). In this process the batch move appears to be extremely slow for some reason.

Amount of data in the following trial is about 100,000 records each with about 120 fields. Most of the fields are integers and VARCHAR (each of VARCHAR less than 32 chars).

The performance figures I obtained are:

Time taken to bring data to local file over ODBC connection: 17 seconds
Time taken to load data from local file into TADOTable: 3 seconds
Time taken by TCRBatchMove to move data from TADOTable to TMyTable: > 30 minutes

MySQL server is running locally on the development machine (which is an i7-2.8GHz) and the database is otherwise very snappy).

Why is it so slow for the batch move to push data to MySQL server. Is there a way to speed up this task? Or is there a better way to accomplish this?

  • 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-16T02:55:13+00:00Added an answer on June 16, 2026 at 2:55 am

    Not really an answer, but I’m running out of space in the comments.

    MySQL has a function called load data infile
    see: http://dev.mysql.com/doc/refman/5.1/en/load-data.html

    You can use that to time the fastest time possible to insert data. This will give you a baseline for the insert time into MySQL and allow you to pinpoint whether the delay is in MySQL or Delphi. If you have the source for TMyTable, you can use a profiler as well.

    Another option is to download ZEOS data access components at:
    http://sourceforge.net/projects/zeoslib/
    If there’s is some snafu in the component you’re using a change of toolset might fix the problem. (Devart’s components are usually excellent though).

    On the MySQL side you can disable index updates before the bulk-insert and enable the index after. If you have a lot of inserts that usually works out faster.
    See: https://stackoverflow.com/a/9524988/650492

    SET autocommit=0; 
    SET unique_checks=0; 
    SET foreign_key_checks=0;
    
    your insert here
    
    SET autocommit=1; 
    SET unique_checks=1; 
    SET foreign_key_checks=1;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to import multiple tables from a MySQL database using Solr's Data
I've been trying to import a table from oracle 10g into SQL Server 2005
I am trying to import a large blob field from a MySQL table via
I'm trying to import an 82k+ row table from an access db to SQL
I'm trying to import a CSV files into my MySQL table using the following
I'm using C# and .NET 3.5, trying to import some data from old dbf
I am trying to import data from a FoxPro database into Sql Server however
I am trying to import from an old database into an updated one. The
I'm trying to import a table from Microsoft Access (.accdb) to R. The code
I am trying to import some data from Sql Server 2008 into R, using

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.