[Option] Return dictionaries instead of models
sbstnc opened this issue · comments
Is it currently possible to return a list of dictionaries instead of a ModelSet of Models? If not how would I go about implementing this?
As of now I'm simply doing [x.attributes_dict for x in my_modelset]
in my code, but with big sets this becomes terribly slow of course. Alternatively I could write my own redis-py queries, but of course I'd prefer to keep the filter and zfilter methods.
I've looked through redisco's code and found stored_attrs = self.db.hgetall(self.key())
in base.py
. So at one time we actually get plain old Python dicts, but they are then converted to proper models.