परफ़ॉर्मेंस के सबसे सही तरीके
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
प्रॉडक्ट अपलोड करने में हर कार्रवाई में एक तय समय लगता है. अगर आपको
कम समय में कई प्रॉडक्ट अपलोड करने पर, हो सकता है कि
प्रक्रिया धीमी लग रही है.
हमारा सुझाव है कि आप CSS API को साथ-साथ कॉल करें.
पैरलल कॉल
अपलोड की प्रोसेस को तेज़ करने के लिए, हमारा सुझाव है कि आप समानांतर कॉल का इस्तेमाल करके अपलोड करें
एक साथ कई प्रॉडक्ट इस्तेमाल कर सकते हैं. इसकी वजह से,
अपलोड समय. उचित सुविधाओं का इस्तेमाल करें
को भी शामिल करें.
Java के लिए, किसी समानांतर एक्ज़िक्यूटर के एसिंक्रोनस वर्शन का इस्तेमाल करें:
ApiFuture<CssProductInput> future =
cssProductInputsServiceClient.insertCssProductInputCallable().futureCall(request);
बल्क / बैच ऑपरेशन
सीएसएस में, बल्क और बैच ऑपरेशन सीधे तौर पर काम नहीं करते
एपीआई, अगर आप एचटीटीपी का इस्तेमाल करके सीधे एपीआई को कॉल कर रहे हैं, तो आप Google API का इस्तेमाल कर सकते हैं
डिफ़ॉल्ट बैच सुविधा. ज़्यादा जानकारी के लिए, इसे देखें
मीडिया-सीडीएन
या Cloud Storage
दस्तावेज़.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 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."]]