iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
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

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-12-2004, 05:33 AM
WebProWorld New Member
 
Join Date: May 2004
Location: india
Posts: 2
perumal RepRank 0
Default How long doest it take to insert 100MB

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.
Reply With Quote
  #2 (permalink)  
Old 05-12-2004, 12:18 PM
WebProWorld Veteran
 
Join Date: Apr 2004
Posts: 447
HardCoded RepRank 0
Default

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
An advantage to this plan is that you probably already have most or all of your regex done.

I've never tried it so I could be blowing smoke out my ass, but it looks worth looking into.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 02:20 PM.



Search Engine Optimization by vBSEO 3.3.0