DB-API: Cut database access by 50% when iter by handles
This commit is contained in:
parent
82d02c5c1b
commit
b7444dd9b0
@ -263,7 +263,6 @@ class Map(object):
|
|||||||
return self.table.funcs[self.contains_func](key)
|
return self.table.funcs[self.contains_func](key)
|
||||||
|
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
if self.table.funcs[self.contains_func](key):
|
|
||||||
return self.table.funcs[self.raw_func](key)
|
return self.table.funcs[self.raw_func](key)
|
||||||
|
|
||||||
def __setitem__(self, key, value):
|
def __setitem__(self, key, value):
|
||||||
|
Loading…
Reference in New Issue
Block a user