Performance best practices

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.