Size of /changes log

Hi all,

We are polling /changes REST endpoint to implement autoforwarding of studies, this works like a charm.

I am wondering how big this changes log can be, can it grow indefinitely? or is there some rotation under the hood?

Kind regards,
Ronald

Hello,

The database will only store the “/changes” associated with the DICOM resources (patients, studies, series, instances) that are still present in Orthanc.

Once resources get deleted, their associated “/changes” entries are removed from the database. This prevents the database from growing indefinitely: At any time, the size of “/changes” cannot be bigger than the number of stored resources.

HTH,
Sébastien-

Thanks for the quick and clear answer!