I have a problem that's been troubling me for a long time and it follows (code demo for example):
from mongoengine import*
Class Scan(Documnet):
name=StringField()
.....
queryset=Scan.objects.filter(name="Bob")
number1=queryset.count()
number2=len(queryset)
However,number1=1782
and number2=1668
, number1 != number2
Anyone can tell me the reason?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…