Click here to Skip to main content
15,888,521 members
Home / Discussions / Database
   

Database

 
GeneralRe: Need Help for creating SP... Pin
Harini N K5-Mar-07 21:10
Harini N K5-Mar-07 21:10 
GeneralRe: Need Help for creating SP... Pin
Prashant C5-Mar-07 21:22
Prashant C5-Mar-07 21:22 
GeneralRe: Need Help for creating SP... Pin
Rajesh R Subramanian7-Mar-07 18:56
professionalRajesh R Subramanian7-Mar-07 18:56 
QuestionDBO access to ASPNET_ tables Pin
dasumohan5-Mar-07 17:38
dasumohan5-Mar-07 17:38 
QuestionGetting id of last inserted row Pin
error14085-Mar-07 8:22
error14085-Mar-07 8:22 
AnswerRe: Getting id of last inserted row Pin
kubben5-Mar-07 9:15
kubben5-Mar-07 9:15 
AnswerRe: Getting id of last inserted row Pin
Marcus J. Smith5-Mar-07 9:16
professionalMarcus J. Smith5-Mar-07 9:16 
GeneralRe: Getting id of last inserted row Pin
error14085-Mar-07 9:31
error14085-Mar-07 9:31 
QuestionScripting a SQL database Pin
gantww5-Mar-07 5:20
gantww5-Mar-07 5:20 
AnswerRe: Scripting a SQL database Pin
Mike Dimmick5-Mar-07 5:27
Mike Dimmick5-Mar-07 5:27 
QuestionMySQL slow inserting 10,000+ records Pin
jds12075-Mar-07 4:27
jds12075-Mar-07 4:27 
AnswerRe: MySQL slow inserting 10,000+ records Pin
kubben5-Mar-07 5:04
kubben5-Mar-07 5:04 
If your current code opens the connection
then does a single insert
Then closes the connection
and then repeats this process 10,000 times.

I would suggest that you open the connection once
do the 10,000 inserts
finally close the connection.
That would be a lot faster.

Next I am not sure if MySQL support stored procedures (I usually use MS Sql Server) If it does a prepared stored procedure will execute faster then in line sql insert.

Next if you have lots of indexes and foreign keys etc. Consider dropping these do all the inserts then add the keys etc after the inserts are done. Of course, this is more work and would probably have to be done off hours, but lots of keys etc can cause the inserts to take longer.

Anyway, a few ideas, hope it helps.
Ben
GeneralRe: MySQL slow inserting 10,000+ records Pin
jds12075-Mar-07 5:28
jds12075-Mar-07 5:28 
GeneralRe: MySQL slow inserting 10,000+ records Pin
kubben5-Mar-07 5:32
kubben5-Mar-07 5:32 
GeneralRe: MySQL slow inserting 10,000+ records Pin
jds12075-Mar-07 5:57
jds12075-Mar-07 5:57 
GeneralRe: MySQL slow inserting 10,000+ records Pin
kubben5-Mar-07 6:06
kubben5-Mar-07 6:06 
GeneralRe: MySQL slow inserting 10,000+ records Pin
jds12075-Mar-07 9:04
jds12075-Mar-07 9:04 
GeneralRe: MySQL slow inserting 10,000+ records Pin
kubben5-Mar-07 9:13
kubben5-Mar-07 9:13 
GeneralRe: MySQL slow inserting 10,000+ records Pin
jds12076-Mar-07 3:38
jds12076-Mar-07 3:38 
GeneralRe: MySQL slow inserting 10,000+ records Pin
kubben6-Mar-07 3:40
kubben6-Mar-07 3:40 
AnswerRe: MySQL slow inserting 10,000+ records Pin
Mike Dimmick6-Mar-07 2:06
Mike Dimmick6-Mar-07 2:06 
GeneralRe: MySQL slow inserting 10,000+ records Pin
jds12076-Mar-07 3:44
jds12076-Mar-07 3:44 
QuestionAgain Remote Access Pin
alexrad5-Mar-07 1:08
alexrad5-Mar-07 1:08 
AnswerRe: Again Remote Access Pin
Hesham Amin5-Mar-07 3:05
Hesham Amin5-Mar-07 3:05 
GeneralRe: Again Remote Access Pin
alexrad5-Mar-07 4:39
alexrad5-Mar-07 4:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.