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