lib/sdb/right_sdb_interface.rb
# Add/Replace attributes for multiple items at a time.
#
# Params:
#   domain_name = DomainName
#   items       = {
#     'Item1' => {
#       'nameA'  => [valueA1, valueA2,..., valueAN],
#       ...
#       'nameB'  => [valueB1, valueB2,..., valueBN]
#     },
#     'Item2' => {
#       'nameC'  => [valueC1, valueC2,..., valueCN],
#       ...
#       'nameD'  => [valueD1, valueD2,..., valueDN]
#     }
#   }
#   replace = :replace | any other value to skip replacement
#
# Usage of batch_put_attributes is similar to put_attributes except that
# instead of supplying an item_name and a hash of attributes, you supply a
# hash of item names to attributes.
#
# See: http://docs.amazonwebservices.com/AmazonSimpleDB/latest/DeveloperGuide/index.html?SDB_API_BatchPutAttributes.html
Add/Replace attributes for multiple items at a time.

Usage of batch_put_attributes is similar to put_attributes except that
instead of supplying an item_name and a hash of attributes, you supply a
hash of item names to attributes.


Add / Replace attributes for multiple items at a time . Usage of batch_put_attributes is similar to put_attributes except that instead of supplying an item_name and a hash of attributes you supply a hash of item names to attributes .
def batch_put_attributes(domain_name, items, replace = false)
      params = { 'DomainName' => domain_name }.merge(pack_attributes(items, replace, true))
      link = generate_request("BatchPutAttributes", params)
      request_info( link, QSdbSimpleParser.new)
    rescue Exception
      on_exception
    end
def batch_put_attributes ( domain_name , items , replace = false ) params = { 'DomainName' => domain_name } . merge ( pack_attributes ( items , replace , true ) ) link = generate_request ( "BatchPutAttributes" , params ) request_info ( link , QSdbSimpleParser . new ) rescue Exception on_exception end
Add/Replace attributes for multiple items at a time.
Add / Replace attributes for multiple items at a time .
domain_name
<not_specific>
items
<not_specific>
replace
<not_specific>