Django Book 翻译
菜单>:
TOC
返回
原文:
Notice that Django doesnt use ``SELECT *`` when looking up data and instead lists all fields explicitly. This is by design: in certain circumstances ``SELECT *`` can be slower, and (more important) listing fields more closely follows one tenet of the Zen of Python: Explicit is better than implicit.
翻译:
注意到Django在选择所有数据时并没有使用 ``SELECT*`` ,而是显式列出了所有字段。 就是这样设计的: ``SELECT*`` 会更慢,而且最重要的是列出所有字段遵循了Python 界的一个信条:明确比不明确好。
备注:
译者: