Closed srtonz closed 7 years ago
I think this is because the _count
attribute is reset here: https://github.com/r4fek/django-cassandra-engine/blob/140e12ce7102204affdafa29faf85edf93d8f021/django_cassandra_engine/models/__init__.py#L675
Not quite sure why that's happening instead of caching the queryset's count() result?
Any ideas?
Hey @GeoTob!
Sorry for the delay, I didn't have time to look into it. Could you try with current master now?
Hey @r4fek This works now, thanks a lot! :+1:
I noticed the following behavior when querying a simple model. Any idea why the
count
query is executed? When running the same query through a plaincassandra.cqlengine.models.Model
outside of Django, I don't see thecount
query