FAQ Home :
What can be done to optimize database performance?
What can be done to optimize database performance?

Answer1. Don't have too many views - each time you change/add a document Notes will need to update every appropriate view.
2. Keep views simple - more columns means more calculation. It gets worse if the columns are sorted and worse still if the columns are categorized.
3. Don't use @Today or @Now in selection formulas - the views will never be up to date and the server will be forever recalculating them. If you need to use today's date in a selection formula then have a background macro running each day to set an environment variable in the server's notes.ini and reference this.
4. If you want to display compound information in a view column from multiple fields then calculate it in a hidden document field. The column should then reference this single field rather than carrying out the calculation.
5. To avoid the @DBColumns/@DBLookups used to generate keyword lists, etc.,
being generated at read time use something like:
@If(@IsDocBeingLoaded & !@IsNewDoc; @Unavailable; @DbColumn(""; ""; "By _Category (Main View)"))
for the formula. Editing documents will take just as long but document readers will notice a big improvement. The example above is from a keyword format formula.
6. Use column numbers not field names for lookups
7. If you are doing lots of lookups to multiple columns in a single view then append all of the data in a single column with a unique delimiter string and do a single lookup. The value returned can then be parsed with @Left/@Right/@Mid or @Explode to give you the separate field values.
8. Put 64 Mb of RAM in the server and push the buffer pool sizes to their limits. This is documented in the Knowledge Base.
Attachments -none-
Applies to versions3.x; 4.x; 5.x
FAQ Provided Byken yee
CreditClick here for information source
 Forum Latest Entries
19/03/2010 Lotus Notes Forum - Searching for a date in a document collection    (Kris Mitchell)
16/03/2010 Lotus Notes Forum - Lotus CAPI --> CSharp    (HW)
12/03/2010 Lotus Notes Forum - Notes IMAP connection    (Charl)
10/03/2010 Lotus Notes Forum - how to create new users in domino server 8.5    (sid)
08/03/2010 Lotus Notes Forum - NSGetServerList in .NET (VB.NET)    (Heinz Wolek)
08/03/2010 Lotus Notes Forum - how domino show sap pictures?    (frank)
05/03/2010 Lotus Notes Forum - Free webcast: Compliancy Solution    (Kim van den Berg)
25/02/2010 Lotus Notes Forum - PLEASE HELP! Tried deleting ONE email from "Search" and it deleted everything!    (Liz)
22/02/2010 Lotus Notes Forum - HTML Signature problem    (Zippy)
19/02/2010 Lotus Notes Forum - Environment Variable    (Rahul Singh)
18/02/2010 Lotus Notes Forum - Lotus notes closed while editing    (sam)
13/02/2010 Lotus Notes Forum - MISSING DOCUMENT DATABASE    (P.MALLIK RAM)
11/02/2010 Lotus Notes Forum - Object variable not set    (Shankar)
09/02/2010 Lotus Notes Forum - Insert a button into mail that gives confirmation    (Andrea)
03/02/2010 Lotus Notes Forum - Browser    (Steve)
27/01/2010 Lotus Notes Forum - UIDocument won't close    (Tom Doughty)
27/01/2010 Lotus Notes Forum - UIDocument won't close    (Tom Doughty)
26/01/2010 Lotus Notes Forum - Total Items    (Marc)
21/01/2010 Lotus Notes Forum - NotesEmbeddedObject & ExtractFile    (Paul)
18/01/2010 Lotus Notes Forum - Archive Solution at Lotusphere 2010, booth 730    (Kim van den Berg)
 Latest Tips & Tricks
10/07/2009Terminal Services Tips & Tricks - How to kill terminal server sessions. Utilities for terminal services: qwinsta and rwinsta(Steven Charles Robinson)
10/07/2009.NET Tips & Tricks - The type or namespace name could not be found (are you missing a using directive or an assembly reference?)(SCRobinson)
10/07/2009Terminate Lotus Notes Processes, Error Tips & Tricks - Lotus Notes: An Error Was Encountered While Opening A Window(Steven Charles Robinson)
26/04/2007LotusScript Mail, SMTP, Spam, Junkmail Tips & Tricks - How to drag and drop spam into junk mail filter using LotusScript(Steven Charles Robinson)
31/10/2006Terminate Lotus Notes Processes, Error Tips & Tricks - Lotus Notes: An Error Was Encountered While Opening A Window(Steven Charles Robinson)
23/10/2006Errors, SMTP, Internet Sites, Configuration, Administration, Domino 7 Tips & Tricks - Domino authentication is not enabled in the smtp internet site document(Steven Charles Robinson)
20/10/2006Articles Tips & Tricks - Have you see our recent arcticle in "The View": Proven techniques for abstracting UI from data using XML, XSL and Domino.(Steven Charles Robinson)
26/09/2006.NET Tips & Tricks - If your looking for .NET tips visit http://www.codedotnet.net(S C Robinson)
25/09/2006Using Lotus Notes Tips & Tricks - Save the Window state of a Lotus Notes client on shutdown.(Steven Charles Robinson)
22/09/2006NET, Culture, Globalization Tips & Tricks - How to find out the current culture in a .NET application.(Steve C Robinson)
© 2003 notes411.com. All rights reserved. Disclaimer. site designed & developed by appsworks.com
Lotus Notes is a registered trademark of IBM. This site is not affiliated with IBM or Lotus.
 News

 Google Box
 Sponsor
ClearCase, Subversion, WebSphere Consulting
 Best in the Industry
Lotus Notes & Domino FAQ