Ben,
OK, I understand the concept. If a file is in a folder in file-storage, update the folder's last modified date. Same for a forum when a message is updated.
It seemed to cause a problem on postgresql that the query never ended.
Besides that, still isn't context_id only used for permissions and should not be used to represent a physical relationship such are forum ownership or folder contents?