Django Book 翻译
菜单>:
TOC
返回
原文:
Its important to point out here that ``QuerySets`` are lazy the act of creating a ``QuerySet`` doesnt involve any database activity. In fact, the three preceding lines dont make *any* database calls; you can chain filters together all day long and Django wont actually run the query until the ``QuerySet`` is *evaluated* .
翻译:
这里需要指出的一点是,创建一个 ``QuerySet`` 并不会牵涉到任何数据库动作。事实上,上面的三行并不会产生 *任何的* 数据库调用。就是说你可以连接任意多个过滤器,只要你不把这个 ``QuerySet`` 用于赋值的话,Django是不会执行查询的。
备注:
译者: