Commit 97e01f23 authored by Vincent Pelletier's avatar Vincent Pelletier

Add caching for getResultColumnIds & getSortColumnIds.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39139 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e0970a70
......@@ -978,6 +978,13 @@ class Catalog(Folder,
result.setdefault('%s.%s' % (table, field), []).append(table) # Is this inconsistent ?
return result
@profiler_decorator
@transactional_cache_decorator('SQLCatalog.getColumnIds')
@profiler_decorator
@caching_instance_method(id='SQLCatalog.getColumnIds',
cache_factory='erp5_content_long',
)
@profiler_decorator
def getResultColumnIds(self):
"""
Calls the show column method and returns dictionnary of
......@@ -992,6 +999,13 @@ class Catalog(Folder,
keys.sort()
return keys
@profiler_decorator
@transactional_cache_decorator('SQLCatalog.getSortColumnIds')
@profiler_decorator
@caching_instance_method(id='SQLCatalog.getSortColumnIds',
cache_factory='erp5_content_long',
)
@profiler_decorator
def getSortColumnIds(self):
"""
Calls the show column method and returns dictionnary of
......
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