Path: utzoo!utstat!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!ucsd!helios.ee.lbl.gov!ace.ee.lbl.gov!jef From: jef@ace.ee.lbl.gov (Jef Poskanzer) Newsgroups: news.software.b Subject: C expire - deferring history rebuild Message-ID: <5377@helios.ee.lbl.gov> Date: 11 Apr 90 17:21:01 GMT Sender: usenet@helios.ee.lbl.gov Organization: Paratheo-Anametamystikhood Of Eris Esoteric, Ada Lovelace Cabal Lines: 39 X-Local-Date: 11 Apr 90 10:21:01 PDT We run C expire with B news. The rebuild phase of the expire seems to take a long time. More than half. It occurred to me that deferring the full rebuild until, say, every other Sunday morning might be a good thing, if we could be sure that the only problem with the interim history files was that they were larger than they need to be. C expire comes with the following flag: -r suppress history rebuild. Mostly for emergencies. (This leaves the history file out of date and larger than necessary, but improves speed and eliminates the need for several megabytes of tem- porary storage.) What this does is set the "rebuild" boolean to 0, and that means that (a) no linking and unlinking of history.n* and history.o* gets done, and (b) no dbm hacking gets done. Basically, the history files don't get modified at all. So yes, this leaves the history files out of date with respect to the news spool. Now, it seems like it would be pretty straightforward to modify this flag (or add a new flag) to do the dbm hacking on the existing history files. This would leave history out of date with respect to history.pag and .dir. But no one looks at history directly, everyone uses the dbm files, which would be up to date with respect to the news spool. (They would also be larger than they need to be, since dbm's delete() doesn't reclaim space, but that's ok.) Am I out to lunch here? Am I missing something important, like maybe doing all that dbm hacking would take even longer than a rebuild? Should we upgrade to a full C news system with the upcoming dbz support? And what about Naomi? --- Jef Jef Poskanzer jef@well.sf.ca.us {ucbvax, apple, hplabs}!well!jef "Sarcasm I now see to be, in general, the language of the Devil; for which reason I have, long since, as good as renounced it." -- Thomas Carlyle