Reg Exp
Web Design
Notes Client
Who Replicated Deleted Documents Back?
Has this ever happened to you: all of a sudden you see thousands of documents that were deleted months ago back in your application. Just about everyone I know who has created an application with local replicas has seen this happen. And everyone who has seen it wants to find out who did it so they can give them 20 lashes with a wet noodle. (Or at least a replication lesson).

Unfortunately, there is no way to be 100% sure who replicated all the deleted documents back in to the database. But you can narrow down your search by looking at the user activity. Go to File | Database | Properties to see the database properties. On the "info" tab (the second tab), you'll see an activity section. In that activity section there is a button called "User Detail". Click on that button.

The User Activity dialog shows date, time, number of reads, number of writes, and the name of the user. You'll want to sort by the "writes" column to see who has a large number of writes to the database. If there is an unusually large amount of writes by one person, then that is most likely the user who replicated all the deleted documents back into the database.

What if there are multiple users with a large amount of writes? Like I said, there's no way to be 100% sure. But at least you have your search narrowed. If you can get a hold of the user's local log.nsf database, then you can investigate the replication events and really track it down.