Ask the Expert

Delete duplicate documents in database

I have to delete the duplicate documents in a database. I saw the default agent that comes in the catalog(R5.0)(template or database). I don't know where to change in order to run it for my view. Please help me on this asap(as soon as possible). I need it early because the task is already beyond schedule (the task given to me to write the script to delete the duplicate documents).


You need to copy the agent to the file you want to use it in. You need to create a view where the first column is a key value that determines that the documents are duplicates ( i.e. an account number, transaction identifier, a concatenation of Last and First Names, etc). In the agents code, you will find the following line:

    Set view = db.getView( "($ReplicaID)")

This agent uses the Replica ID field in the documents to determine duplicates. Change the name in quotation marks to the name of your view. The rest should then function to delete duplicate documents.


This was first published in October 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: