Automatically closed - issue fixed for 2 weeks with no activity.
On the subscriber side, before importing an entity, the subscriber needs to fetch all the CDF documents of all the dependencies recursively, depending on the dependency chain of this entity, it could mean dozens of API calls, which can slow down the importing performance dramatically for very large/deep dependency chain.
When we get a CDF document, there is already a dependencies attribute in which the key is the UUID of all dependencies and the value is the hash of that dependency.
Also, we have the hash stored for all the previous imported entities inside the import tracking table.
To improve the performance, can we run a hash check if the dependency needs to be updated before asking Content Hub for its CDF document?
Unfortunately, the hash stored in the tracking table is the hash attribute of the CDF object, it is calculated differently in different places than the hashes in the dependencies attribute.
1. Calculate the hash consistently in the CDF hash attribute and the dependencies attribute.
2. Compare the dependency hash against the already imported hashes in the tracking table, only asking for the ones that are missing or different.
Fixed
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed - issue fixed for 2 weeks with no activity.