Blogs

  • Browse Blogs
  • My Blog
  • My Updates

Tags Help

  • View as cloud  | list

Similar Entries

photo

I still have one con...

Blog:  Yellow is the...
Tim Tripcony
Updated 
No Ratings 0     No Comments 0
photo

Compile Problem fixe...

Blog:  Jan Schulz
Jan Schulz
Updated 
No Ratings 0     No Comments 0
photo

Sending Designer int...

Blog:  Jan Schulz
Jan Schulz
Updated 
No Ratings 0     Comments 1
photo

Domino 8 requires le...

Blog:  Domino Diva
Kim Greene
Updated 
No Ratings 0     Comments 2
photo

I was wrong: plus is...

Blog:  Yellow is the...
Tim Tripcony
Updated 
No Ratings 0     Comments 2

Dogear Bookmarks

Urs Meli

Blog Authors:  Urs Meli  

Previous |  Main  | Next

Agent Performance Tuning - Stupid mistakes

Urs Meli  |     |  Tags:  lotusscript performance agents programming  |  Comments (0)

 

Today I tested my agent, which updated some calendar entries, which were replicated via LEI from a MSSQL database.

Lei replicated the data in a notesdatabase in under a minute. After the replication, LEI started my agent, which took more then 1900 seconds to process around 1000 entries.

 

The problem was, that the LEI replication job started every 30 minutes. The agent stopped with the error "document has been deleted".

Change the replication schedule would solve the problem. But more than 30 minutes for my agent? I can do better.

 

The agent used a lot of Notesdatabase.search() calls to prevent duplicated entries in the users calendar.

 

Refactoring the Notesdatabase.search() to Notesview.getAlldocumentsbyKey() and some minor improvements made a nice performance boost.

The result: from around 1900 Seconds to 160  to 190 seconds for the same amount of documents.

 

The use of the search() method has been chosen to avoid changing the mailtemplate (multilingual environment R7 migrating to  R8). And in

the test environment I only used too less data....

 

Now the agent checks wether a special view is available and creates it if needed.

 

The first solution is not necessary the best.....

Comments

Previous |  Main  | Next
Skip to main content link. Accesskey S
IBM Lotus Connections Help Tools About

Tags

A tag is a keyword that is used to categorize an entry. To view the entries with a particular tag, click a tag name or enter a tag in the box.
The tag cloud indicates the frequency of tag use. Popular tags appear darkest. The slider control adjusts how many tags are displayed in the tag cloud.