As explained in Limiting QuerySets, a QuerySet can be sliced, ... much more efficient to handle a count at the database level using SQL's SELECT COUNT(*) .
確定! 回上一頁