Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
07d95822
Commit
07d95822
authored
Jul 09, 2009
by
Andreas Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
default long_query_time changed to 0.1s, description changed
parent
91d7dfdf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
src/Products/ZCatalog/Catalog.py
src/Products/ZCatalog/Catalog.py
+1
-1
src/Products/ZCatalog/ZCatalog.py
src/Products/ZCatalog/ZCatalog.py
+5
-5
src/Products/ZCatalog/dtml/catalogReport.dtml
src/Products/ZCatalog/dtml/catalogReport.dtml
+2
-2
No files found.
src/Products/ZCatalog/Catalog.py
View file @
07d95822
...
...
@@ -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.
0
1
)
threshold
=
getattr
(
self
.
aq_parent
,
'long_query_time'
,
0.1
)
cr
=
CatalogReport
(
self
,
request
,
threshold
)
return
cr
...
...
src/Products/ZCatalog/ZCatalog.py
View file @
07d95822
...
...
@@ -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.
0
1
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.
0
1
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.
0
1
,
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
)
...
...
src/Products/ZCatalog/dtml/catalogReport.dtml
View file @
07d95822
...
...
@@ -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: 0.1 s)
.</p>
</td>
<td colspan="2" align="right" valign="top">
<form action="manage_editCatalogReport" method=POST>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment