« Imposing Order... | Main| Pop quiz: What was the second ever hacker movie? »

Lotus Notes Anti-Pattern

Category   
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 

AntiPattern.pngSometimes when doing complex tasks, its tempting just to clear out an entire databases's contents and buiid everything up from scratch. Sometimes through laziness, or sometimes because you cant actually get a decent reconcilliation in terms of documents.

Its bad - it leaves a deletion stub - that is, a tiny document fragment just containing that documents UNID - hanging around so when it replicates, the 'deletion' action can be pushed around. Its an extremely efficient design mechanism for replicated databases - as long as you dont routinely generate hundreds of thousands of documents, then delete them. Every 30 minutes.

Comments

Gravatar Image1 - Auugahahagahaga.

Gravatar Image2 - I work around this issue two different ways. First off, I have a "delete without stub" function, that I use, it calls the API from lotusscript. Its great in a non-replicating environment.

The other is to set the purge interval on the replication settings, "space saver" tab, the number associated with the "remove documents not modified within" field relates to stubs, if the box is unchecked. You can purge the stubs, by setting this value low, of course, without the stubs, a replication could repopulate the DB from somewhere else.

Post A Comment

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

All my past and future presentations can be found here

Quick Bill


I'm
- a Lotus Domino Dual PCLP - that is, a SysAdmin PCLP and an AppDev PCLP (or IBM Certified Advanced Application Developer and Advanced System Administrator) in nd7, v6, v5, v4 and v3. (one of 20 worldwide!)
- an IBM Certified System Administrator - Websphere Portal v5.0
- an IBM Certified Solutions Developer - Websphere Portal v5.0
- an IBM Certified Associate Developer - Websphere Studio v5
- an IBM Certified Solutions Expert - Websphere v4.0.
- a SUN Java 2 Certified Programmer
- a (probably lapsed now) Microsoft MCSE in Windows NT4.
- a (definately) lapsed now CLP in cc:Mail v2 and v6