Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAccept ProductProjections instead of Products in ProductReferenceReplacementUtils #332
Labels
Comments
valdemon
pushed a commit
to ambsoft/commercetools-sync-java
that referenced
this issue
Nov 15, 2018
…he `BaseSync` class.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
It might makes sense to accept a
List<ProductProjection>instead ofList<Product>in theProductReferenceReplacementUtils#replaceProductsReferenceIdsWithKeyssince we only use thestagedprojection (which is half the payload of a fetchedProduct). So maybe it would be more efficient to accept onlyList<ProductProjection>which means only the staged projection would be fetched -> smaller response payload footprint.commercetools-sync-java/src/main/java/com/commercetools/sync/products/utils/ProductReferenceReplacementUtils.java
Lines 50 to 51 in 56b617f
Related Issue
#127