python 2.7 - PynamoDB Number of Items in batch_get -
i using pynamodb batch_get this:
batchitems = mymodel.batch_get(id_list)
how know how many items in batchitems
?
i wanna if it's empty else.
i don't know helpful you, items count using loop:
item_count = 0 item in mymodel.batch_get(id_list): item_count += 1 # check item_count
Comments
Post a Comment