Commit 07d95822 authored by Andreas Gabriel's avatar Andreas Gabriel

default long_query_time changed to 0.1s, description changed

parent 91d7dfdf
......@@ -756,7 +756,7 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
Reports about the duration of queries
"""
threshold = getattr(self.aq_parent,'long_query_time',0.01)
threshold = getattr(self.aq_parent,'long_query_time',0.1)
cr = CatalogReport(self,request,threshold)
return cr
......
......@@ -117,9 +117,9 @@ class ZCatalog(Folder, Persistent, Implicit):
{'label': 'Advanced', # TAB: Advanced
'action': 'manage_catalogAdvanced',
'help':('ZCatalog','ZCatalog_Advanced.stx')},
{'label': 'Report', # TAB: Undo
{'label': 'Slow Query Report', # TAB: Slow Query Report
'action': 'manage_catalogReport',
'help': ('ZCatalog','ZCatalog_Report.stx')},
},
{'label': 'Undo', # TAB: Undo
'action': 'manage_UndoForm',
'help': ('OFSP','Undo.stx')},
......@@ -167,7 +167,7 @@ class ZCatalog(Folder, Persistent, Implicit):
Indexes = ZCatalogIndexes()
threshold=10000
long_query_time = 0.01
long_query_time = 0.1
_v_total=0
_v_transaction = None
......@@ -192,7 +192,7 @@ class ZCatalog(Folder, Persistent, Implicit):
self._catalog = Catalog()
self._migrated_280 = True
self.long_query_time = 0.01
self.long_query_time = 0.1
def __len__(self):
# Perform a migration of _catalog.__len__ to _catalog._length
......@@ -1043,7 +1043,7 @@ class ZCatalog(Folder, Persistent, Implicit):
'/manage_catalogReport?manage_tabs_message=Report%20Cleared')
security.declareProtected(manage_zcatalog_entries, 'manage_editCatalogReport')
def manage_editCatalogReport(self, RESPONSE, URL1, long_query_time=0.01, REQUEST=None):
def manage_editCatalogReport(self, RESPONSE, URL1, long_query_time=0.1, REQUEST=None):
""" edit the long query time """
if type(long_query_time) is not type(1.0):
long_query_time=float(long_query_time)
......
......@@ -2,7 +2,7 @@
<dtml-var manage_tabs>
<p class="form-help">
<strong>Catalog Report</strong> reports slow catalog queries to identify queries that are performing badly.
<strong>Slow Query Report</strong> discovers catalog queries that are performing badly.
</p>
......@@ -93,7 +93,7 @@
</tr>
<tr >
<td colspan="2" align="left" valign="top">
<p class="form-help">Only report slow queries that took more than "long_query_time" seconds to execute.</p>
<p class="form-help">Only report slow queries that took more than "long_query_time" seconds to execute (default:&nbsp;0.1&nbsp;s).</p>
</td>
<td colspan="2" align="right" valign="top">
<form action="manage_editCatalogReport" method=POST>
......
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