|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here! |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
I wrote a php program to read and parse apache log file.The size of the log file is 100MB. From that i collected 70MB datas. I tried to insert this data into mysql database ,it takes hardly 15 minutes to finish the job. Is this timing is correct? or ist possible to reduce the time? please help me.......... Thanks Perumal. |
|
|||
|
You can try taking all indexes off when doing the insert. Still gonna take a long time to re-index though when you're done. That's quite a bit of data. But not as long, for sure.
You could also try piping the logs directly into the databse directly through a PHP script. Something like Code:
CustomLog "|/path/to/logger.php" combined I've never tried it so I could be blowing smoke out my ass, but it looks worth looking into. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |