Submitted by Tommy Valand on Mar 12, 2010 11:32:16 AM

How to Speed Up Loading Your NotesViews in LotusScript

Another alternative is to have the view-cache list as a global variable in the script library with the getView function is. No extra parameters needed.

Submitted by Marcus MF Foerster on Mar 12, 2010 8:06:47 AM

How to Speed Up Loading Your NotesViews in LotusScript

Not with the current database, as it is already cached; with others, yes, if it saves time and doesn't mess to much with the memory. With documents, as it usually is about reading them multiple times, I would make a class with the match of the set of item values I need (where it makes sense).

The difference I see is, that often the same views are used in different functions, so this is where it would make sense (parameter views, for example). This is not always the case with databases and documents.

Submitted by Mario Varchmin on Mar 11, 2010 10:19:58 AM

How to Speed Up Loading Your NotesViews in LotusScript

In theory you are correct, but passing a bundle of Notes views to each and every function is not that elegant. Consider that opening databases and documents is time-consuming, too. Do you want to pass every resource you ever opened to each and every function?