View Refresh - tech behind question

Hi List

I have a question about an agent running scheduled on a server.

lets say I have a few views and want those used in a scheduled agent.

Those views has to be updated at some point during the day.

How can I update the views like it was done with updall?

Lets say updal didn’t run yet.

I use

myView = db.GetView “MyNotUpdatedView”

is using myView.refresh enough to get the view ( onDisk ) updated or is view.refresh only to update the in the agent created myView ( NotesView ) in memory e.g when i did process most documents in that view ( like deletion and adding documents ) ?

If I choose auto in the design properties box then that to much.

If I choose every at most x hours, then maybe its to late.

So basicly is view.refresh for a view ondisk/server memory the right choice here? The docs states ‘view.refresh refreshes the BACK-end view’, but this backend view is that equally the ondisk view?

Thanks in advance

Arnold

Subject: View Refresh - tech behind question

Simply accessing a single document will cause the view to automatically to refresh.

So just add the line:

Call myView.GetFirstDocument 'This line fully indexes a view

Subject: RE: View Refresh - tech behind question

Thank you for your reply.

Does this mean when I use

Set myView = db.myNotYetRefreshedView

counter = myView.EntryCount

Call myView.GetFirstDocument

counter2 = myView.EntryCount

that counter could be different from counter2?

Just to be sure.

Thanks again.

Arnold