Solved

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

Posted on 2013-01-11
1
378 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
1 Comment
 
LVL 42

Accepted Solution

by:
EugeneZ 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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.
Viewers will learn how the fundamental information of how to create a table.

911 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now