After setting log_update=2, I found that updating views was triggered every time when new email cames in, for example:Updating views in test.nsf
Updating test.nsf view ‘All: test1’
Updating test.nsf view ‘All: test2’
Finished updating views in test.nsf
Full text indexing documents in test.nsf
I have other views like “All: test3” and all these views have same formula to select same form.
My questions are:
Why the view “All: test3” is not updating as view “All: test2”? Does the Domino server automatically pick up which view to be updated or does it depend on view’s setting?
What are the events to trigger the updating views? Currently I just found the new incoming email can trigger it.
As long as your views have all been accessed, then they’ve all been built. In that case, they’ll all be updated. I guess that you haven’t opened view3 yet ??? So the indexer won’t update it, because it’s not going to build that view unless a user asks for it explicitly by opening it.
Views will be updated if:
The router delivers mail (your case)
A user makes manual updates to documents
Replicator delivers mail
Interestingly, scheduled agent updates will not trigger the indexer task to run against views in the db, however.
Note that once the indexer decides to update views in your db, it will update all views which might possibly have these docs.
You are right. After I open view 3, it is in the updating list when new email coming.
When you say “As long as your views have all been accessed”, will the access from background agent count? My view 2 is a hidden view and it cannot be accessed through notes client or web browser, it is in the updating list.
yes, if you open/refresh the view from a background agent, that also counts. The view will now have been accessed, it’s index size will be greater than 0kb, and the update task will now update it along with other views when needed.
Are the view columns also identical, same fields, same formulas, same sorting?
If a field changes on the document which is created using the Form which you have in the view selection formula, is listed in a view column, it will also cause the view to be refreshed.