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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:05:34+00:00 2026-06-17T18:05:34+00:00

I wish to execute LOAD DATA LOW_PRIORITY INFILE statement from Java. I am dealing

  • 0

I wish to execute LOAD DATA LOW_PRIORITY INFILE statement from Java.

I am dealing only with MyISAM engine.

I am interested if statement.execute("LOAD DATA LOW_PRIORITY INFILE ...") will execute this query asynchronously, or will it block until this statement will be completed.

I am asking this since I have SQL operations after this statement that are based on the loaded data, but I am still interested that any read operation on this table that are executed concurrently will have higher priority over LOAD DATA statement.

  • 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-17T18:05:35+00:00Added an answer on June 17, 2026 at 6:05 pm

    LOAD DATA LOW_PRIORITY INFILE ... blocks until completion on the commandline, so I assume your code will block too.

    If you want concurrent transactions to be able to read from your table during the import, then you want to use the CONCURRENT option instead of LOW PRIORITY.

    As stated in the manual:

    If you specify CONCURRENT with a MyISAM table that satisfies the
    condition for concurrent inserts (that is, it contains no free blocks
    in the middle), other threads can retrieve data from the table while
    LOAD DATA is executing.

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

Sidebar

Related Questions

I am trying to load data from a web-api controller from within a razor
I wish to create a migration whose up method will execute the create_table function.
c.execute(DELETE FROM data WHERE user = %s AND machine = %s , (user, machine))
I have a database with 2 tables I wish to pull data from both
I have a Java swing code, I wish to execute this code via Ant.
I wish to execute an exe program from a winforms button. I am using
I have a maven project built in '/some/where' which I wish to run/execute from
I have a SQLite database that I wish to read records from and execute
I wish to execute a javascript function after asp.net postback with out using ajax.
I wish to execute a batch file and have it call itself 10 times.

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.