DbLookUp/GetDocField in a view : How to avoid it?

I’d like to know if there’s a way to get information, in a view, from another document than the one that is treated without using @GetDocField/DBColumn? I suppose that there should be a way to do this since this is a very common use in relationnal DB.

I have documents that are linked together by there UNID and I’d like to display information about those document and there “parent” on the same line.

And by the way, si there someone who can explain, briefly, why @GetDBColumn and @GetDocField can’t work in a view? It don’t seam to be justified to me but maybe it is.

Subject: DbLookUp/GetDocField in a view : How to avoid it?

#1 - Notes is NOT a relational database#2 - A view is a static picture of a summary line that displays parts of the documents they represent. @DbColumn, or any @Get command is a command that GOES and GETS… a View doesn’t GO anywhere to GET anything. It’s like a report if you want to think of it that way. A field on a document can go get info when told to compute. When you say you have documents ‘linked together’, you actually have a Parent and a Child document. This is NOT like a relational database… each line in a view represents a document, either the parent or the child, or a line for each. If you were to combine info from both, it would no longer represent ONE document. In this way, it is NOT like a report.

Subject: DbLookUp/GetDocField in a view : How to avoid it?

Notes is not relational. In a relational database, you know exactly where in memory every piece of data lives, so you can do run-time lookups efficiently. Every row takes up the same amount of memory, and every column is found in exactly the same spot in every row. Notes doesn’t store data in tables. Every document can be completely different from ebery other document in the database. Fields are not length-limited in Notes, so a lookup needs to read all of the memory to get the data, making lookups relatively inefficient. Lookups on forms can be made quick enough for usability, but if you did tens of thousands of lookups every time you opened a view, it would take far too long (minutes, hours, or even days if the code is complex enough0.