Question
· Oct 26, 2023

doubt about CACHE.WIJ behavior

I'm dealing with a situation that leaves in doubt what I understand about CACHE.WIJ (C:\Roche\CobasInfinity\HealthShare\mgr).. 
Journal files store records already written to the base.. and CACHE.WIJ records not yet written to the base..
theoretically, the data contained in CACHE.WIJ is temporary... until the record is written to the base (consequently generating journal).
The question arose because I have a .WIJ file from 03/10/2023 (modification date) with approx. 4GB.. theoretically the WIJ does not should it be written/modified every day? because the system is in full use, with continuous transactions.

 

Thank you

Product version: Caché 2018.1
Discussion (4)1
Log in or sign up to continue

Simplified:
WIJ is the on-disk image of your modified buffers.
If buffers are changed they get updated on-disk by an asynchronous background process.
The modified date is typically the last modification at file close.
writing modification date at every file update as you expect will break every file system.

Transposing your expectation to a text editor would mean to update the file and date at every new line:
I suppose you would be disappointed by the related performance reduction.

Though, from personal experience, this seems to be the standard operating style of almost every government.😉

I would expect the WIJ to close to force it to the disk about every 80 seconds ie every write cycle.

my quick testing:

$while true; do
> ls -l IRIS.WIJ | cut -f 10-13 -d ' '
> sleep 40
> done
Oct 26 12:26 IRIS.WIJ
Oct 26 12:27 IRIS.WIJ
Oct 26 12:27 IRIS.WIJ
Oct 26 12:28 IRIS.WIJ
Oct 26 12:28 IRIS.WIJ
Oct 26 12:30 IRIS.WIJ
Oct 26 12:30 IRIS.WIJ
Oct 26 12:31 IRIS.WIJ
Oct 26 12:31 IRIS.WIJ
Oct 26 12:32 IRIS.WIJ
Oct 26 12:32 IRIS.WIJ
Oct 26 12:34 IRIS.WIJ
Oct 26 12:34 IRIS.WIJ
Oct 26 12:35 IRIS.WIJ
Oct 26 12:35 IRIS.WIJ
Oct 26 12:36 IRIS.WIJ