March 30, 2012

Recycle() XPages repeat control?

I`m currently looking into memory management in Lotus Notes XPages applications. I understand that ideally every domino object should be recycled, especially when looping large collections and new`ing up large amounts domino objects.

What about the xp:repeat control? When I set a large NotesViewEntryCollection as value for a repeater (by just calling database.getView('x').getAllEntries()), how should this be recycled? Does it have to be recycled? The documents are commonly used further on in the repeater by calling 'curItem.getColumnValues()[x]' to build up the xpages content.