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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:30:18+00:00 2026-05-19T12:30:18+00:00

Could you please tell me how to effectively allow the user to import their

  • 0

Could you please tell me how to effectively allow the user to import their data in mysql?
The problem is that data generally need to be inserted in several related tables.
Importing importing .csv of severl 10s or 100s thousand of line take much time and generate large load for database. Now I parse .csv, generate insets (maybe several inserts if we need to set attrributes in related table) and in loop insert data in tha database.
How do you do such things?
Maybe to load file on server and on the server periodacally to insert data by little portions?
All ideas are appreciated.
Thank you.

  • 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-05-19T12:30:19+00:00Added an answer on May 19, 2026 at 12:30 pm

    If you really need to insert all this data, I don’t think you have much of a choice.

    I would recommend using inserting multiple rows with one INSERT to reduce the number of round-trips between the application and the database:

    INSERT INTO mytable (....)
    VALUES (....),
           (....);
    

    If you are inserting the data for the first time, you could create the indexes after all the data has been inserted, but of course if you’re doing this online (i.e. your insertion process is executing concurrently with other operations) then you can’t do that as the indexes are shared between all processes.

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

Sidebar

Related Questions

Could you please tell me how can one escape an apostrophe. I need it
Could someone please tell me how to make an image appear when the user
Could you please tell if it's possible to get number of inserted documents using
Could you please tell me what is the error here? it tells me that
Could someone please tell me whether the training sample sizes for each class need
Could you please tell me the logic of using sizeof data / sizeof *data
Could anyone please tell me the meaning of API in following paragraph, that's actually
Could you please tell me if there is any equivalent of Access' DISTINCTROW for
Could someone please tell me which objects types can be tested using Regular Expressions
Could anyone please tell me why the following line about filter init method invocation

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.