[CELUM-30] Picking Assets is painfully slow Created: 16/Mar/22 Updated: 13/Jul/22 Resolved: 13/Jul/22 |
|
| Status: | Closed |
| Project: | Celum DAM Connector |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 1.0.3 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Christopher Chard | Assignee: | Raphael Falvo |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Date of First Response: |
| Description |
|
Picking assets is very slow when clicking on a folder with many subfolders (containing many assets). "getAssetsInFolder" is called repeatedly, however the time interval between calls is about 15-~100 seconds... It seems that the performance improvement that we did for the Assets App does not apply when using the asset picker dialog (damLinkField). Best guess: The picker dialog tries to iterate into every subfolder and into every asset, presumably to find out, whether it is necessary to show an opening arrow.
Affected version: celum-dam-connector-1.0.3.beta1 |
| Comments |
| Comment by Teresa Miyar [ 17/Mar/22 ] |
|
By default the dam-chooser is used, we will provide a default Celum-chooser that will need to be used in the damLinkField, like the s3 chooser https://git.magnolia-cms.com/projects/ADDON/repos/external-dams/browse/magnolia-external-dam-s3/src/main/resources/dam-s3/dialogs/chooser.yaml
s3:
$type: damLinkField
chooserId: dam-s3:chooser
datasource:
class: info.magnolia.dam.app.data.AssetDatasourceDefinition
name: s3
Documentation: https://docs.magnolia-cms.com/product-docs/6.2/Connector-Packs/DAM-Connector-Pack/External-DAM-module.html We will add a custom Celum chooser in the project |
| Comment by Christopher Chard [ 08/Jun/22 ] |
|
This is resolved by paging ( |