কর্মক্ষমতা সেরা অনুশীলন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
পণ্য আপলোড করতে অপারেশন প্রতি একটি নির্দিষ্ট পরিমাণ সময় লাগে। আপনি যদি অল্প সময়ের মধ্যে অনেক পণ্য আপলোড করতে চান, তাহলে এটি প্রক্রিয়াটিকে ধীর বলে মনে হতে পারে।
আমাদের প্রস্তাবিত সমাধান হল সমান্তরালভাবে CSS API কল করা।
সমান্তরাল কল
আপলোড প্রক্রিয়ার গতি বাড়ানোর জন্য, আমরা একই সাথে একাধিক পণ্য আপলোড করার জন্য সমান্তরাল কল ব্যবহার করার পরামর্শ দিই। এটি উল্লেখযোগ্যভাবে সামগ্রিক আপলোড সময় কমাতে পারে। আপনার প্রোগ্রামিং ভাষার জন্য উপযুক্ত বৈশিষ্ট্যগুলি ব্যবহার করুন।
জাভার জন্য, সমান্তরাল নির্বাহকের মধ্যে অ্যাসিঙ্ক্রোনাস সংস্করণ ব্যবহার করুন:
ApiFuture<CssProductInput> future =
cssProductInputsServiceClient.insertCssProductInputCallable().futureCall(request);
বাল্ক/ব্যাচ অপারেশন
যদিও বাল্ক এবং ব্যাচ অপারেশনগুলি সরাসরি CSS API তে সমর্থিত নয়, আপনি যদি HTTP ব্যবহার করে সরাসরি API কল করেন তবে আপনি Google API ডিফল্ট ব্যাচ বৈশিষ্ট্যটি ব্যবহার করতে পারেন। বিস্তারিত নির্দেশাবলীর জন্য, মিডিয়া-সিডিএন বা ক্লাউড স্টোরেজ ডকুমেন্টেশন পড়ুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 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."]]