How to automatically delete headers > 5 days old

Post Reply
phaustin
Posts: 3
Joined: Tue Mar 15, 2005 12:44 am

How to automatically delete headers > 5 days old

Post by phaustin »

I subscribe to a news server with a very strong retention. I keep up with it on a regular basis, but the sheer volume of headers is slowing NP to a crawl, even on an AMD64/939 with a gig of memory. When I try to open the folder that contains the groups that I've subscribed to, it can to 5 minutes to just open. Ouch

I am hoping to speed it up by having NP delete headers over 5 days, suspecting that it is the header volume causing the problem. (I don't keep many bodies in the group)

I first thought that it woudl be "Retention range". I found a reference that Retention range is how far back to go with the groups, but that the headers still remain in NP for as long as they exist on the server.

Is there a better way?


Thanks very much,
Pete
alex
Posts: 4538
Joined: Thu Feb 27, 2003 5:57 pm

Post by alex »

the fastest way is to define 'last headers' instead of retention, since if you define only retention given there is no server command for retention newspro will have to scan all headers (although faster than to get them all but it is still much slower than just getting numbers and deleting all but last headers).
phaustin
Posts: 3
Joined: Tue Mar 15, 2005 12:44 am

Speed issue

Post by phaustin »

the fastest way is to define 'last headers' instead of retention, since if you define only retention given there is no server command for retention newspro will have to scan all headers (although faster than to get them all but it is still much slower than just getting numbers and deleting all but last headers).

----

Alex - Thanks. I looked at 'last headers' but it seems to max out at the last 3000. With Audiobooks and Movies, that is to small a number.

Is it possible to have NP only keep the last 5 days of headers in the database and delete the rest automatically? I can do it by 'Select' then delete, but that takes awhile, and I have to do it with each folder.

Thanks!
Pete Austin
Bert
Posts: 147
Joined: Sun Feb 22, 2004 10:50 pm
Location: The Netherlands

Post by Bert »

Ignore the default choices in the dropdown menu and just fill in a hgher number i.e. 300000.
zatar
Posts: 14
Joined: Mon Mar 17, 2003 4:05 am

Post by zatar »

phaustin,

did you ever find a way to keep only the last 5 days. i'm interested in doing the same type of thing. the last headers seems interesting, but trying to determine what number to relates to 5 days seems a bit troublesome.
Post Reply