Making some progress which I’ll document here, in case it ends up being helpful for others.
We’ve tracked the issue down to the 20,000 image files that are stored in the doc.
This number was news to me, as it currently has no images at all in it! But it did, during building and testing, have a sync table that had a couple dozen rows with ImageAttachment
s in them. The table was set to hourly refresh, and I sometimes manually updated it more often than that during testing.
And each of these refreshes seems to have stored copies of every image in the doc’s edit history, which comes with a doc when you copy it (unfortunately).
So far the solution seems to be re-creating the doc from scratch, salvaging whatever non-Pack tables have lightweight enough histories to not nuke template copy performance
By the way, I think this way of approaching ImageAttachments
and Attachments
is bad for a few reasons which I’ve outlined here - interested to hear people’s thoughts: