Solved

MySql: what's the most efficient way of adding large numbers of unique records

Posted on 2013-01-11
1
385 Views
Last Modified: 2013-03-15
Hi

I'm using classic asp and MySql.

I'm creating a survey and need to add up to 5,000 unique records at a time with a randomly generated user name and password amongst other things.

Currently I have a classic asp page that loops through and writes each individual record, which works fine for smaller quantities but drags it's heals with larger.

I'm sure there has to be a better way of doing this - can anyone point me in the right direction?

Many thanks

Grant
0
Comment
Question by:Buzby58
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 42

Accepted Solution

by:
Eugene Z earned 500 total points
ID: 38767016
you can try Bulk insert
 
and\or mysqldbimport utility
http://dev.mysql.com/doc/workbench/en/mysqldbimport.html

BTW: it is sql server  sub-forum not mysql
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Regarding Disk IO 3 43
Need help with another query 10 37
SQL Syntax 6 41
Delete image(s) associated with record(s) 16 26
Creating and Managing Databases with phpMyAdmin in cPanel.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question