Commit a78bb5d2 authored by Jérome Perrin's avatar Jérome Perrin

_count uses SQL, update comment



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10750 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c4fab344
......@@ -251,9 +251,6 @@ class FolderMixIn(ExtensionClass.Base, CopyContainer):
"""
Returns the number of items in the folder.
"""
# PERFORMANCE PROBLEM
# This should be improved in order to use
# SQL counting
return self.countFolder(**kw)[0][0]
class Folder( CopyContainer, CMFBTreeFolder, Base, FolderMixIn):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment