Hi,
I just noticed that if you do:
SomeDoc.objects(field__in=[])
It passes that through as a query parameter and returns no results as expected. However, if you are running in an environment where table scans are forbidden then this raises an exception saying it has caused a table scan. This behaviour is probably a bug in MongoDB itself. However, I was thinking that this case should be handled slightly differently in MongoEngine - by returning no results and not doing a query at all. What do you guys think? (We're hitting this because we pass through lists as arguments and sometimes we validly have empty lists)
Cheers,
Colin