众所周知的myList[-1:][0]和myList[-1]的pythonic切片惯例并不适用于Mongoengine listFields,因为它不支持负指数。是否有一种优雅的方法来获取列表的最后一个元素?
IndexError: Cursor instances do not support negative indices
,所以我从Django shell中观察到,我的模型中有32k个条目&与contains相比,count on icontains查询的执行速度慢,count on icontains查询花费了4秒,而contain上的count只需0.3秒。我在response_body中存储的数据类型是原始响应体。() ### 0.3 seconds与icontains一起在respon