def set_index_limit(self, tablename, indexname, read="<STR_LIT:0>", write="<STR_LIT:0>"):
index_data = self.indexes.setdefault(tablename, {})<EOL>self._set_limit(index_data, indexname, read, write)<EOL>if not index_data:<EOL><INDENT>del self.indexes[tablename]<EOL><DEDENT>
Set the limit on a global index