This PR implements DataBaseModel.count() method to more efficiently determine a total number of objects, and integrated the same logic into .filter(count_rows=True) which causes filter to return an integer count objects matching a given set of filters.
Description
This PR implements
DataBaseModel
.count()
method to more efficiently determine a total number of objects, and integrated the same logic into.filter(count_rows=True)
which causes filter to return an integer count objects matching a given set of filters.