Jump to content

PHP memory management


ursvmg

Recommended Posts

Hi all,

 

I have a PHP to scrap huge data(around 10000 entries) from a html page using simplehtmldom. My objective is to load the data in to MySQL table.

 

I know, it is not a good idea to scrap and load at a stretch. Now I have been inserting 100 rows at a time, ending up with 100 insert queries for every html page.

 

I would like to know how best I can handle this situation considering performance.

What are the PHP/MySQL parameters that I need to set?

 

 

Kindly throw some light on memory management in PHP.

 

Regards,

ursvmg

Link to comment
https://forums.phpfreaks.com/topic/203976-php-memory-management/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.