Added ScannedCount field to DynamoDB query response.
This commit is contained in:
parent
66032ad37c
commit
c2df7732e5
2 changed files with 7 additions and 2 deletions
|
|
@ -369,7 +369,11 @@ class Table(object):
|
|||
if scan_index_forward is False:
|
||||
results.reverse()
|
||||
|
||||
return self._trim_results(results, limit, exclusive_start_key)
|
||||
scanned_count = len(self.all_items())
|
||||
|
||||
results, last_evaluated_key = self._trim_results(results, limit,
|
||||
exclusive_start_key)
|
||||
return results, scanned_count, last_evaluated_key
|
||||
|
||||
def all_items(self):
|
||||
for hash_set in self.items.values():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue