add caching of relation map to increase performance

This commit is contained in:
collerek
2021-09-10 12:58:26 +02:00
parent 913de2dc44
commit beb43dd76c
6 changed files with 440 additions and 4 deletions

View File

@ -75,6 +75,8 @@ def populate_default_options_values(
if field.__type__ == bytes
}
new_model.__relation_map__ = None
class Connection(sqlite3.Connection):
def __init__(self, *args: Any, **kwargs: Any) -> None: # pragma: no cover