Hi,

I noticed that CachingDataStore#getRecord() always invokes
#touchInternal(), resulting in touching the file through the backend
whenever getting a record.
I found a related JIRA ticket
(https://issues.apache.org/jira/browse/JCR-3817), described as "It is
because when GC is running lastModified of each record is updated in
S3 which affects the performance."
I'm not familiar with S3, but it sounds like the touching was added to
circumvent an S3 specific issue at the moment. Is it true?
If so, I think we should make it as an option (whether or not to touch
when reading) because we have VFSDataStore now extending
CachingDataStore. When working with WebDAV or SFTP store for instance,
I don't need to touch the file when reading a record.

How does that sound?

Kind regards,

Woonsan

Reply via email to