#NEWLINE# def clear_all( self ) : #NEWLINE# #INDENT# throughput = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for model in ( DynamoPackage , PackageSummary ) : #NEWLINE# #INDENT# tablename = model . meta_ . ddb_tablename ( self . engine . namespace ) #NEWLINE# desc = self . engine . dynamo . describe_table ( tablename ) #NEWLINE# tablename = model . meta_ . ddb_tablename ( ) #NEWLINE# throughput [ tablename ] = { #NEWLINE# #INDENT# 'read' : desc . throughput . read , #NEWLINE# 'write' : desc . throughput . write , #NEWLINE# #UNINDENT# } #NEWLINE# for index in desc . global_indexes : #NEWLINE# #INDENT# throughput [ tablename ] [ index . name ] = { #NEWLINE# #INDENT# 'read' : index . throughput . read , #NEWLINE# 'write' : index . throughput . write , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# #UNINDENT# self . engine . delete_schema ( ) #NEWLINE# self . engine . create_schema ( throughput = throughput )