性能最佳实践
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
每项操作上传商品需要一定的时间。如果您需要
需要在短时间内上传大量商品
看起来很慢
我们推荐的解决方案是并行调用 CSS API。
并行通话
为了加快上传流程,我们建议您使用并行调用来上传
多款产品。这可能会显著降低
。使用适当的功能
自定义语言
对于 Java,请在并行执行器中使用异步版本:
ApiFuture<CssProductInput> future =
cssProductInputsServiceClient.insertCssProductInputCallable().futureCall(request);
批量 / 批量操作
虽然 CSS 中不直接支持批量操作和批量操作
如果您是使用 HTTP 直接调用 API,则可以使用 Google API
默认批处理特征。有关详细说明,请参阅
Media-CDN
或Cloud Storage
文档。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eUploading many products using the CSS API can be time-consuming due to individual operation times.\u003c/p\u003e\n"],["\u003cp\u003eTo expedite the upload process, leverage parallel calls to upload multiple products concurrently, significantly reducing the overall upload time.\u003c/p\u003e\n"],["\u003cp\u003eThough 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.\u003c/p\u003e\n"]]],[],null,[]]