Thanks for your response!
Well, thats all good points to think about. My application (XPage DB and a notes database) is very tricky and can read information from documents from any other notes database. The XPage shows the data, and the data which should be displayed are configured in the notes database.
I am understanding you right, that it is not good, if the XPage always again and again gets the notes database?
I do like this very often, because I don't know how to declare this global:
var db:NotesDatabase = session.getDatabase(server,path,false)
var vw:NotesView = db.getView("whateverviewuwant");