★ wanayoo — archive 1999 https://github.com/commercetools/commercetools-sync-java/issues/332Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept ProductProjections instead of Products in ProductReferenceReplacementUtils #332

Open
heshamMassoud opened this issue Nov 8, 2018 · 0 comments

Comments

@heshamMassoud
Copy link
Contributor

@heshamMassoud heshamMassoud commented Nov 8, 2018

Description

It might makes sense to accept a List<ProductProjection> instead of List<Product> in the
ProductReferenceReplacementUtils#replaceProductsReferenceIdsWithKeys since we only use the staged projection (which is half the payload of a fetched Product). So maybe it would be more efficient to accept only List<ProductProjection> which means only the staged projection would be fetched -> smaller response payload footprint.

@Nonnull
public static List<ProductDraft> replaceProductsReferenceIdsWithKeys(@Nonnull final List<Product> products) {

Related Issue

#127

@heshamMassoud heshamMassoud changed the title Accept ProductProjections instead of Products in ReferenceReplacementUtils Accept ProductProjections instead of Products in ProductReferenceReplacementUtils Nov 8, 2018
valdemon pushed a commit to ambsoft/commercetools-sync-java that referenced this issue Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.