Performance best practices
Stay organized with collections
Save and categorize content based on your preferences.
Uploading products takes a certain amount of time per operation. If you need
to upload many products in a short timeframe, this could cause the
process to seem slow.
Our recommended solution is to call the CSS API in parallel.
Parallel calls
To speed up the upload process, we recommend using parallel calls to upload
multiple products simultaneously. This can significantly reduce overall
upload time. Use the features appropriate
for your programming language.
For Java, use the asynchronous version within a parallel executor:
ApiFuture<CssProductInput> future =
cssProductInputsServiceClient.insertCssProductInputCallable().futureCall(request);
Bulk / Batch operations
While bulk and batch operations aren't supported directly in the CSS
API, if you are calling the API directly using HTTP you can use the Google API
default batch feature. For detailed instructions, refer to the
Media-CDN
or the Cloud Storage
documentation.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-23 UTC."],[[["Uploading many products using the CSS API can be time-consuming due to individual operation times."],["To expedite the upload process, leverage parallel calls to upload multiple products concurrently, significantly reducing the overall upload time."],["Though the CSS API doesn't directly support bulk/batch operations, when using HTTP directly, you can utilize the Google API default batch feature for enhanced efficiency, as detailed in the Media-CDN or Cloud Storage documentation."]]],[]]