PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Troubleshooting (http://www.phpdig.net/forum/forumdisplay.php?f=22)
-   -   Indexing are very slow, how can i speed up? (http://www.phpdig.net/forum/showthread.php?t=1995)

ossi01 05-04-2005 06:31 AM

Indexing are very slow, how can i speed up?
 
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


All times are GMT -8. The time now is 12:23 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.