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

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -