PDA

View Full Version : Indexing are very slow, how can i speed up?


ossi01
05-04-2005, 06:31 AM
The indexing of my htm-files is very slow and i have over 14500 of it.

(6 seconds per page = 1450 minutes = over 24 hours for one run,
the spider.php runs local on the same hard disk, where the htm-files,
the CPU utilization is below 1%, from HD are reading below 129kb/s)

But, i must reindex my htm-files every 3 hours.

How can i speed up the indexing? Please help me.

bloodjelly
05-04-2005, 07:16 AM
In spider.php there's a line that says sleep(5). This makes the spider pause for five seconds in between pages, and while it's good to leave in when spidering other people's sites, if you're spidering your own you could just take it out completely.

If I remember correctly, there's another sleep(2) call somewhere in there, too.

ossi01
05-06-2005, 03:26 AM
Yep, that is it.
Now i need less than 1 second per page...
(my new (maximum) reindex-time for 15037 links: 5h 12min)

Thanx