Kent Eschenberg <[EMAIL PROTECTED]> writes:

> --On Wednesday, May 15, 2002  <[EMAIL PROTECTED]> wrote:
> > changed data is not reread
> 
> DX avoids re-execution of a module by saving its output in cache, and using 
> the cache if the module's inputs have not changed. That is why it is not 
> re-reading your file.
> 
> I think you can turn off the cache for a particular module. However, this 
> may mean DX re-reads the file every time the pipeline updates.

I think this is essentially what I would need.  But following up

   data = Import("file.dx");

with

   data = Options (data, "cache", 0);

does not work.

> You could have your file change the name of the file each time it is 
> written: stuff1.dat, stuff2.dat, ... , then send the new file name down 
> your pipe each time one is ready.
> 
> Yet another approach is possible if the DX input module you use has other 
> parameters that make little difference. Perhaps some option that is not 
> actually used for your type of data. If so, have your application send a 
> new version of this parameter after the data file has changed to trick DX 
> into re-reading the file.

I had thought of that already, but found it a little strange.  But it
works really nice.  And guess what: I toggle the *cache* option with
every call:-)

Thanks, Nicolas.

Reply via email to