View.getAllEntries() order?

Hi,

I have a question regarding the Domino API

View.getAllEntries. If I travere it as follows:

ViewEntryCollection vecInbox = vInbox.getAllEntries();

using getFirstEntry and getNextEntry()… in what order will the results be given? Is it based on the age of the documents (newest first)? Is it random?

My overall goal is to work on the newest X items (mails).

Thanks,

Subject: NotesViewEntries are in the view order.

So you should be good-to-go.

Subject: yep

Yep, Just tested it out… it is in ascending time order. So to get the newest items, i just get the last entry and traverse backwards.

Thanks.

Subject: addition…

Just a little addition here. If there’s a better API to get the X newest items that would be great too.

Right now as we deal with large mail boxes… our processing is very slow… as it used to run on all mail items. I’m trying to speed it up so it will only run on the X latest items. it’s not overly important if it misses some in these large mailboxes (80K+ documents in inbox).

Subject: Use db.Search with second parameter - “cutoff date/time”

Subject: I wouldn’t recommend db.search() in DBs with large numbers of docs.