I don’t understand why you use the Database to store files, also taking in account that you have a feature for normal attachments that allows to store the files in other service like AWS with knp_gaufrette.
In my particular case the table oro_email_attachment_content is 297 GB size. So I can’t even run the migration that deletes the foreign key and re add it with “ON DELETE CASCADE” because the table is huge.
There isn’t yet another way to store the files with the latest updates?