Locator instance builds unnecessary query for each row when the model is loaded from a database, to my mind, it is better to create an instance of the locator/UpdateRequest lazily (only if some values are passed to the model)
Here are the results of the benchmarks for loading 20000 rows, from my previous PR
Locator instance builds unnecessary query for each row when the model is loaded from a database, to my mind, it is better to create an instance of the locator/UpdateRequest lazily (only if some values are passed to the model)
Here are the results of the benchmarks for loading 20000 rows, from my previous PR
https://github.com/python-gino/gino/pull/786#issuecomment-865472758
before
after