遍历Lotus Domino中的每个文档 [英] Iterating over every document in Lotus Domino
问题描述
我想遍历(可能很大)Lotus Domino数据库中的每个文档,并且如果处理中断(网络连接错误,应用程序重新启动等),能够从上一个文档继续.我没有对该数据库的写权限.
I'd like iterate over every document in a (probably big) Lotus Domino database and be able to continue it from the last one if the processing breaks (network connection error, application restart etc.). I don't have write access to the database.
我正在寻找一种不必从服务器上下载已经处理过的文档的方法.因此,我必须将一些启动信息传递给服务器,哪个文件应该是(可能是重新启动的)处理中的第一个文件.
I'm looking for a way where I don't have to download those documents from the server which were already processed. So, I have to pass some starting information to the server which document should be the first in the (possibly restarted) processing.
-
我已经检查了
AllDocuments
属性和DocumentColletion.getNthDocument
方法,但是此属性未排序,因此我想顺序可以在两个调用之间改变.
I've checked the
AllDocuments
property and theDocumentColletion.getNthDocument
method but this property is unsorted so I guess the order can change between two calls.
另一个想法是使用公式查询,但似乎无法对这些查询进行排序.
Another idea was using a formula query but it does not seem that ordering is possible with these queries.
第三个想法是Database.getModifiedDocuments
方法和相应的Document.getLastModified
方法.看起来不错,但是
在我看来,未记录返回的集合的顺序,而是基于创建时间而不是上次修改时间.
The third idea was the Database.getModifiedDocuments
method with a corresponding Document.getLastModified
one. It seemed good but
it looks to me that the ordering of the returned collection is not documented and based on creation time instead of last modification time.