ব্যাচ অপারেশন সঞ্চালন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
আপনি যদি বেশ কয়েকটি ক্রিয়াকলাপ সম্পাদন করেন, তবে সেই সমস্ত HTTP বার্তাগুলি পাঠাতে এবং গ্রহণ করতে যে সময় লাগে তা আপনার অ্যাপটিকে ধীর এবং প্রতিক্রিয়াহীন করে তুলতে পারে৷ ব্যাচ অনুরোধের সাথে, আপনি সার্ভারকে একটি একক HTTP অনুরোধের সাথে একাধিক অপারেশন করতে পারেন। মূল ধারণা হল যে আপনি একটি পরিচিতি ফিড তৈরি করেন এবং প্রতিটি অপারেশনের জন্য একটি এন্ট্রি যোগ করুন যা আপনি সম্পাদন করতে চান।
ব্যাচ অনুরোধ একবারে 100টি অপারেশনের মধ্যে সীমাবদ্ধ। আপনি Google ডেটা প্রোটোকলে ব্যাচ প্রসেসিং- এ ব্যাচ অপারেশন সম্পর্কে আরও তথ্য পেতে পারেন। পরিবর্তনগুলি স্বয়ংসম্পূর্ণ ইমেল ঠিকানা এবং যোগাযোগ ব্যবস্থাপকের মধ্যে প্রতিফলিত হতে 24 ঘন্টা পর্যন্ত সময় নিতে পারে৷
নিম্নলিখিত কোড নমুনা একটি ব্যাচ অনুরোধ দেখায় যা 2 ভাগ করা পরিচিতি তৈরি করে; যাইহোক, আপনি ক্যোয়ারী, আপডেট, এবং পরিচিতি মুছে ফেলার জন্য একটি ব্যাচ অনুরোধও ব্যবহার করতে পারেন। হালনাগাদ এবং মুছে ফেলা এন্ট্রিগুলির জন্য আশাবাদী একত্রে কাজ করার জন্য একটি সম্পাদনা লিঙ্ক প্রয়োজন।
<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns='http://www.w3.org/2005/Atom'
xmlns:gContact='http://schemas.google.com/contact/2008'
xmlns:gd='http://schemas.google.com/g/2005'
xmlns:batch='http://schemas.google.com/gdata/batch'>
<category scheme='http://schemas.google.com/g/2005#kind'
term='http://schemas.google.com/g/2008#contact' />
<entry>
<batch:id>1</batch:id>
<batch:operation type='insert' />
<category scheme='http://schemas.google.com/g/2005#kind'
term='http://schemas.google.com/g/2008#contact'/>
<gd:name>
<gd:givenName>FIRST_NAME</gd:fullName>
<gd:familyName>LAST_NAME</gd:fullName>
</gd:name>
<gd:email rel='http://schemas.google.com/g/2005#home'
address='EMAIL_ADDRESS' primary='true'/>
</entry>
<entry>
<batch:id>2</batch:id>
<batch:operation type='insert' />
<category scheme='http://schemas.google.com/g/2005#kind'
term='http://schemas.google.com/g/2008#contact'/>
<gd:name>
<gd:givenName>FIRST_NAME</gd:fullName>
<gd:familyName>LAST_NAME</gd:fullName>
</gd:name>
<gd:email rel='http://schemas.google.com/g/2005#home'
address='EMAIL_ADDRESS'
primary='true'/>
</entry>
</feed>
নিম্নলিখিতগুলি প্রতিস্থাপন করুন:
-
FIRST_NAME
: ভাগ করা পরিচিতির প্রথম নাম—উদাহরণস্বরূপ, অ্যালেক্স। -
LAST_NAME
: ভাগ করা পরিচিতির শেষ নাম—উদাহরণস্বরূপ, কিম। -
EMAIL_ADDRESS
: ভাগ করা পরিচিতির পছন্দের ইমেল ঠিকানা—উদাহরণস্বরূপ, alk@gmail.com।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-03-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-03-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Perform batch operations\n\nIf you're performing several operations, the time it takes to send and receive\nall those HTTP messages can make your app slow and unresponsive. With batch\nrequests, you can have the server perform multiple operations with a single HTTP\nrequest. The basic idea is that you create a contacts feed and add an entry for\neach operation that you want to perform.\n\nBatch requests are limited to 100 operations at a time. You can find more\ninformation about batch operations in\n[Batch Processing in the Google Data Protocol](https://developers.google.com/gdata/docs/batch).\nChanges can take up to 24 hours to be reflected in the email address\nautocomplete and the contact manager.\n\nThe following code sample shows a batch request that creates 2 shared\ncontacts; however, you can also use a batch request to query, update, and delete\ncontacts. The update and delete entries require an edit link for\n[optimistic concurrency](https://developers.google.com/gdata/docs/1.0/reference#Optimistic-concurrency)\nto work. \n\n```xml\n\u003c?xml version='1.0' encoding='UTF-8'?\u003e\n\u003cfeed xmlns='http://www.w3.org/2005/Atom'\n xmlns:gContact='http://schemas.google.com/contact/2008'\n xmlns:gd='http://schemas.google.com/g/2005'\n xmlns:batch='http://schemas.google.com/gdata/batch'\u003e\n \u003ccategory scheme='http://schemas.google.com/g/2005#kind'\n term='http://schemas.google.com/g/2008#contact' /\u003e\n \u003centry\u003e\n \u003cbatch:id\u003e1\u003c/batch:id\u003e\n \u003cbatch:operation type='insert' /\u003e\n \u003ccategory scheme='http://schemas.google.com/g/2005#kind'\n term='http://schemas.google.com/g/2008#contact'/\u003e\n \u003cgd:name\u003e\n \u003cgd:givenName\u003eFIRST_NAME\u003c/gd:fullName\u003e\n \u003cgd:familyName\u003eLAST_NAME\u003c/gd:fullName\u003e\n \u003c/gd:name\u003e\n \u003cgd:email rel='http://schemas.google.com/g/2005#home'\n address='EMAIL_ADDRESS' primary='true'/\u003e\n \u003c/entry\u003e\n \u003centry\u003e\n \u003cbatch:id\u003e2\u003c/batch:id\u003e\n \u003cbatch:operation type='insert' /\u003e\n \u003ccategory scheme='http://schemas.google.com/g/2005#kind'\n term='http://schemas.google.com/g/2008#contact'/\u003e\n \u003cgd:name\u003e\n \u003cgd:givenName\u003eFIRST_NAME\u003c/gd:fullName\u003e\n \u003cgd:familyName\u003eLAST_NAME\u003c/gd:fullName\u003e\n \u003c/gd:name\u003e\n \u003cgd:email rel='http://schemas.google.com/g/2005#home'\n address='EMAIL_ADDRESS'\n primary='true'/\u003e\n \u003c/entry\u003e\n\u003c/feed\u003e\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eFIRST_NAME\u003c/var\u003e: First name of the shared contact---for example, Alex.\n- \u003cvar translate=\"no\"\u003eLAST_NAME\u003c/var\u003e: The last name of the shared contact---for example, Kim.\n- \u003cvar translate=\"no\"\u003eEMAIL_ADDRESS\u003c/var\u003e: The preferred email address of the shared contact---for example, alk@gmail.com."]]