dql.throttle module

Wrapper around the dynamo3 RateLimit class

class dql.throttle.TableLimits[source]

Bases: object

Wrapper around dynamo3.RateLimit

get_limiter(table_descriptions)[source]

Construct a RateLimit object from the throttle declarations

load(data)[source]

Load the configuration from a save() dict

save()[source]

Wrapper around __json__

set_default_limit(read='0', write='0')[source]

Set the default table/index limit

set_index_limit(tablename, indexname, read='0', write='0')[source]

Set the limit on a global index

set_table_limit(tablename, read='0', write='0')[source]

Set the limit on a table

set_total_limit(read='0', write='0')[source]

Set the total throughput limit