Best Practices für die Leistung
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Das Hochladen von Produkten dauert pro Vorgang eine bestimmte Zeit. Bei Bedarf
schnell viele Produkte hochladen, könnte dies dazu führen,
dass der Prozess langsam erscheint.
Wir empfehlen, die CSS API parallel aufzurufen.
Parallele Aufrufe
Wir empfehlen, den Upload mithilfe paralleler Aufrufe zu beschleunigen,
für mehrere Produkte gleichzeitig. Dadurch kann sich die Gesamtzahl der
zum Zeitpunkt des Uploads. Verwenden Sie die entsprechenden Funktionen
für Ihre Programmiersprache.
Verwenden Sie für Java die asynchrone Version in einem parallelen Executor:
ApiFuture<CssProductInput> future =
cssProductInputsServiceClient.insertCssProductInputCallable().futureCall(request);
Bulk-/Batch-Vorgänge
Bulk- und Batch-Vorgänge werden zwar nicht direkt im CSS-Code unterstützt,
Wenn Sie die API direkt über HTTP aufrufen, können Sie die Google API verwenden.
Standard-Batchfunktion. Eine ausführliche Anleitung finden Sie im
Media-CDN
oder den Cloud Storage
Dokumentation.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-25 (UTC)."],[[["\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,["# Performance best practices\n\nUploading products takes a certain amount of time per operation. If you need\nto upload many products in a short timeframe, this could cause the\nprocess to seem slow.\n\nOur recommended solution is to call the CSS API in parallel.\n\nParallel calls\n--------------\n\nTo speed up the upload process, we recommend using parallel calls to upload\nmultiple products simultaneously. This can significantly reduce overall\nupload time. Use the features appropriate\nfor your programming language.\n\nFor Java, use the asynchronous version within a parallel executor: \n\n ApiFuture\u003cCssProductInput\u003e future =\n cssProductInputsServiceClient.insertCssProductInputCallable().futureCall(request);\n\nBulk / Batch operations\n-----------------------\n\nWhile bulk and batch operations aren't supported directly in the CSS\nAPI, if you are calling the API directly using HTTP you can use the Google API\ndefault batch feature. For detailed instructions, refer to the\n[Media-CDN](https://cloud.google.com/media-cdn/docs/api/batch)\nor the [Cloud Storage](https://cloud.google.com/storage/docs/batch)\ndocumentation."]]