
![]() |
jammaster82
I have a huge SQL insert i need to
do to import a .csv file into mysql server. Whats the best way to get this data into the mysql server, it is 790502 lines long. perkiset
With lots and lots of rows I'd explode them into individual calls and update them one by one. It'll take a while, but that's plenty stable.
TURN OFF INDEXES with the exception of something like an auto-incrementing primary key field... otherwise you're going to pay a huger and huger penalty for every row you insert. |

Thread Categories

![]() |
![]() |
Best of The Cache Home |
![]() |
![]() |
Search The Cache |
- Ajax
- Apache & mod_rewrite
- BlackHat SEO & Web Stuff
- C/++/#, Pascal etc.
- Database Stuff
- General & Non-Technical Discussion
- General programming, learning to code
- Javascript Discussions & Code
- Linux Related
- Mac, iPhone & OS-X Stuff
- Miscellaneous
- MS Windows Related
- PERL & Python Related
- PHP: Questions & Discussion
- PHP: Techniques, Classes & Examples
- Regular Expressions
- Uncategorized Threads