IBM®
Skip to main content
    Country/region select      Terms of use
 
 
   
     Home      Products      Services & solutions      Support & downloads      My account     

developerWorks  >  Lotus  >  Forums & community  >  Best Practice Makes Perfect

Best Practice Makes Perfect

A collaboration with Domino developers about how to do it and how to get it right in Domino

Thanks to Jamie Magee of MartinScott Consulting for pointing out this technique for figuring out what causes delays when opening views and documents. He presented it during the "Speed Geeking" session at Lotusphere 2007.

By adding three lines to your Notes.ini and restarting the client, you can get lots of useful information about what your Notes client is doing as you open documents and views, click action buttons, or whatever. Find out where all the time is used up during the 15 seconds it takes to open your document. The lines in the notes.ini are:

Client_Clock=1
Debug_Console=1
Debug_Outfile=[filepath for debug output]

The tricky part is finding the relevant part of the debug output, for which some little added code in the Notes client might be helpful -- for instance, a toolbar button to "start timing" and "stop timing" might note the size of the debug file before and after, and display just the bytes between those positions. I'm looking at adding something like this to the developer toolkit (which I'm still working on, as I have time).

Then of course, the output may be a little cryptic for developers who aren't familiar with Notes internals, so it might take a little experience to know that READ_ENTRIES is reading data from a view, for instance. But with a little work, this can get to be a very useful output.

Remember, too, that your time in analyzing performance issues is well spent in examining the designs of your forms and views for common performance-killer mistakes which have been documented here and elsewhere. Even if you determine that 90% of the delay is spent in @DbLookups, you still have to figure out which lookups they are and know what the better way is.

Andre Guirard | 24 October 2007 10:46:22 AM ET | Plymouth, MN, USA | Comments (1)


 Comments

1) I saw this
Joseph LeMay | 10/25/2007 7:33:13 PM

I have a type of document that usually gives me trouble and I think the problem is it has too many OLE objects embedded it it. It was hard to tell where this popped up in the output using this method.

separately, I was wondering if you could briefly discuss what the implications of notes 8 being "built on the eclipse framework" are for a notes developer? I know eclipse is good for writing and debugging java and java agents for notes, and I've used it for that, but that's as far as it goes for me. Notes 8 is not a java application, so where does eclipse come in?

 Add a Comment
Subject:
   
Name:
Comment:  (No HTML - Links will be converted if prefixed http://)
 
Remember Me?     Cancel

Search this blog 

Disclaimer 

    About IBM Privacy Contact