~Ned Ekreburakol commented on Jan 6, 2016

Re: How to Speed Up Loading Your NotesViews in LotusScript

f_objFoldView =p_objNotesDB.GetView(p_strKey);//p_strKey- Foldername

when i call getview() for some time UI gets hang why ?

~Alexis Opresaman commented on Mar 12, 2010

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.

~Hank Nonhipilygon commented on Mar 12, 2010

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.

~Vanessa Deskipulli commented on Mar 11, 2010

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?