View opens very slowly

Hello all,

I have almost 5000 documents (each day cca. 20 new documents are created) in my database and when I switch from one view to another, the view opens very slowly.

In view properties, how should index be configured: auto,after first use, manual, automatic???

I know I should also avoid @today,@now formulas in views… is there anything else I can do to optimize speed?

Thanks a lot!

Chiara

Subject: View opens very slowly

Generally speaking for most views the index is best set to “auto, after first use”, that way a view that is not used, doesn’t waste diskspace with an index, but otherwise will be up to date to prevent delays for users.

If you aren’t using @today/@now in any date based view selection / column formula then (assuming the views aren’t private) other things that might be slowing it down:

  1. Readers fields which result in a large number of docs that need to be examined before a screen full can be displayed.

  2. Agents etc updating a large number of documents frequently.

Apart from that 5000 odd documents is next to nothing, so you shouldn’t have any issues with slow performance.

HTH - Rufus.

Subject: RE: View opens very slowly

Hi,

thanks for your answer.

I set index to auto after first use.

And I do use readers field…nothing I can do about that?

Chiara

Subject: RE: View opens very slowly

You may not be able to do anything directly with readers field, but sensible design can speed things up.

For example if a database contains HR appraisals of which I can read 3 out of 5000+ (my 3 appraisals for 2003, 2004 & 2005):

When I go to open a flat view containing all appraisals my client requests about 40 documents to display on the screen. The server unfortunately has to calculate if I can read each of the 5000+ documents before it works out I only can see 3 of them. This can take many seconds, before my client shows anything on the screen.

If on the other hand the view was categorised by appraisee (for example) and the view was set to collapse all when first opened, the view could be displayed almost instantly (it doesn’t need to work out readers to show the category). It is only when the client goes to expand a category do the readers need to be examined, BUT only then for those documents within that category. So if I click on my name, 3 documents need the reader access calculating. If I click on joe bloggs, the server can quite quickly determine I can read any of “his” documents.

This is an exterme example, but generally speaking use of categorisation, or designing views around specific groups of readers / tasks, and intelligent use of folders can make a huge difference.

If you want some specific advice, post details about your application / views, and what you use reader fields for.

HTH - Rufus.

Subject: View opens very slowly

Rufus is correct in all that he said, but there are also a few other ‘culprits’ I’ve run across over the years…

  • Each time you have a column with a sortable header (i.e. click on the column header and the entire view resorts to that column) it’s like a whole new view index that must be maintained.

  • Column formulas can slow you down (not just @Today and @Now - although they are biggies). If there’s any way I suggest moving the column calculations to the document so the column only pulls data from a field without modifying it.

  • Readers fields have to look through a view up to four times - Domino looks at all the various ways your name AND THE VIEW NAME is given.

For example, if your name is “Chiara Bella/US/ABC” then it’ll scan through the view looking both for “Chiara Bella” as well as for “Chiara Bella/US/ABC”. Then, if your view has an alias it looks through both the extended and alias name of the view. Thus, there are four searches to make sure it finds the documents that you are allowed to see based on Readers and/or Authors fields.

The suggestion Rufus gave for categorizing your view just might be the best tip of the day for you.

Good luck!