DB-API: Cut database access by 50% when iter by handles
This commit is contained in:
parent
82d02c5c1b
commit
b7444dd9b0
@ -263,8 +263,7 @@ class Map(object):
|
||||
return self.table.funcs[self.contains_func](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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user