About Duffbert...

Duffbert's Random Musings is a blog where I talk about whatever happens to be running through my head at any given moment... I'm Thomas Duff, and you can find out more about me here...

Email Me!

Search This Site!

Custom Search

I'm published!

Co-author of the book IBM Lotus Sametime 8 Essentials: A User's Guide
SametimeBookCoverImage.jpg

Purchase on Amazon

Co-author of the book IBM Sametime 8.5.2 Administration Guide
SametimeAdminBookCoverImage.jpg

Purchase on Amazon

MiscLinks

Visitor Count...



View My Stats

« What Is the Purpose of the Notes CACHE.DSK File? | Main| I don't think I can support our involvement in Iraq or the administration any more... »

How to Purge Document Deletion Stubs on the Server Immediately

Category Software Development

In case you need to know how to do that...  From the KnowledgeBase...

How to Purge Document Deletion Stubs on the Server Immediately

Document Number:  1095683

Problem
A customer would like to purge all of the document deletion stubs on the server database now, instead of waiting for the set purge interval.  How can this be done?

Content
There are two options.

Option #1:

All document deletion stubs in a database can be purged by selecting File, Replication, Settings and setting the "Remove Documents Not Modified in the Last" setting to 0 days.  Once this is done, click OK and close the database.  Open the database again to purge the deletion stubs immediately.  Next, change back the "Remove Documents Not Modified..." setting to 90 days.

IMPORTANT:  If you place a checkmark next to "Remove Documents Not Modified in the Last" setting, and place a "0" in the Days field, all of the documents will be deleted from the database.  Do not place a checkmark in that box; only change the number of days setting to "0" (see Figure 1 in the Supporting Information section below for an example of this).

Once this is done, you can return this setting back to the original number.


Option #2:

All document deletion stubs in a database can be purged by setting the cutoff date ahead two days from the current date.  Once this is done, the deletion stubs are purged immediately.  To do this, select File, Replication, Settings, Other, and set "Only replicate incoming documents saved or modified after."

Be sure to replace the 2 days ahead date immediately once the deletion stubs have been purged.

WARNING:  If the "Remove Documents Saved More Than XX Days Ago" option is enabled in a database's replication settings when the cutoff date is set ahead, all documents saved before the cutoff date will be removed from the database.  Notes behaves this way because both the cutoff date and "Remove Documents..." feature are designed to save space in local replicas.  The cutoff date sets the maximum age for documents to be received by the local replica.  When the "Remove Documents..." option is enabled, Notes automatically removes (leaving no deletion stub) any document saved before the cutoff date, ignoring any interval specified in the "Remove Documents..." option.

Depending upon the Notes platform, it may also be necessary to set the purge interval to one day as well as setting the cutoff date ahead.  This is not required for all Notes platforms.  On early 3.x versions of Notes for UNIX platforms, the Cutoff Date option is not available, and the purge interval cannot be used to purge deletion stubs immediately.

You can see the approximate number of document deletion stubs in a database by adding up all of the shared fields and all of the documents, and then subtracting this number from the total number of documents shown, when a new replica of the database is created.

To view deletion stubs, Notespeek can be used.  Notespeek is available on the Lotus Developer Domain website (in the Sandbox).

Supporting Information:

This information does not apply to deletion stubs for design elements (eg. forms, view or macros).  Refer to the document titled "Removing Design Element Deletion Stubs From a Database" (#132699 ) for additional information.

Figure 1:
Example of Replication Settings
A picture named M2

Comments

Gravatar Image1 - Also, Domino 6.5.2 will return the number of deletion stubs using the following console command:
show database dbname.nsf

Thanks, Ed

Gravatar Image2 - Thanks Ed for for the console command.

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Want to support this blog or just say thanks?

When you shop Amazon, start your shopping experience here.

When you do that, all your purchases during that session earn me an affiliate commission via the Amazon Affiliate program. You don't have to buy the book I linked you to (although I wouldn't complain!). Simply use that as your starting point.

Thanks!

Thomas "Duffbert" Duff

Ads of Relevance...