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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:01:14+00:00 2026-05-22T17:01:14+00:00

I have one page where users can import their contacts. Initially it was working

  • 0

I have one page where users can import their contacts. Initially it was working fine upto 3000 contacts but when I tried to import 10000 contacts it started taking too much time and now the situation is that for even 100 contacts it is taking too much time. I tried in mysql my.cnf file and increased the max packet size to 256 mb. My php.ini max upload limit is 512 mb, memory limit is 512 mb. I tried several methods to solve this problem but no success.

my.cnf:

[mysqld]
set-variable = max_connections=500000
log-slow-queries
safe-show-database
local-infile=0
max_allowed_packet=256M

I also tried to increase buffer limit, cache limit but no success there either.

  • 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-22T17:01:15+00:00Added an answer on May 22, 2026 at 5:01 pm

    Don’t automatically assume that your server settings are wrong. The default settings are probably fine. Inserting 10000 rows should be a piece of cake, even on an old machine, but it depends on how you do your inserts.

    Here I’ll describe 3 methods for inserting data, ranging from slow to fast:

    The following is extremely slow if you have many rows to insert:

    INSERT INTO mytable (id,name) VALUES (1,'Wouter');
    INSERT INTO mytable (id,name) VALUES (2,'Wouter');
    INSERT INTO mytable (id,name) VALUES (3,'Wouter');
    

    This is already a lot faster:

    INSERT INTO mytable (id, name) VALUES
      (1, 'Wouter'),
      (2, 'Wouter'),
      (3, 'Wouter');
    

    (Edited wrong syntax)

    And this is usually the fastest:

    Have CSV file that looks like this:

    1,Wouter
    2,Wouter
    3,Wouter
    

    And then run something like

    LOAD DATA FROM INFILE 'c:/temp.csv' INTO TABLE mytable
    

    Which of the above methods do you use?

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

Sidebar

Related Questions

I have it so that users can copy and paste objects from one page
Basically, I have a page where users can upload their profile picture. However, if
Imagine we have a page with a form where users can create their own
I have 6 text boxes on an asp page and one search button. Users
I have one image website where users can vote images. IMAGES ARE RANDOMLY GENERATED
On my site I have a page where users can upload files to go
I'm writing a user account page where users can change their settings, and the
There is a one section of orders page where users can add new fields
I have a one page website but a lot will happen on that page
I have one search box where users can search for either the movie name

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.