Skip to content

Commit

Permalink
indents: replaced 1 tab by 4 spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Jan 24, 2022
1 parent 0e95efe commit abd1334
Show file tree
Hide file tree
Showing 6 changed files with 477 additions and 477 deletions.
106 changes: 53 additions & 53 deletions src/Products/ZCatalog/dtml/catalogObjectInformation.dtml
@@ -1,67 +1,67 @@
<h3 class="mt-2">
Catalog record at
<code>
<dtml-var expr="getpath(_.int(rid))" html_quote>
</code>
Catalog record at
<code>
<dtml-var expr="getpath(_.int(rid))" html_quote>
</code>
</h3>
<p>
The goal of this page is to provide basic debugging information
about what is in the Catalog on a specific object. Listed below is
all the information that the Catalog currently contains for the
above specified object. This information should match what is
currently in the instance of that object.
The goal of this page is to provide basic debugging information
about what is in the Catalog on a specific object. Listed below is
all the information that the Catalog currently contains for the
above specified object. This information should match what is
currently in the instance of that object.
</p>

<p>
<strong>1. Metadata Contents: </strong>
Metadata is the information that the Catalog
keeps inside of its internal structure so that it can answer
questions quickly. This is then returned in the "brain" that the
Catalog gives back during searches.
<strong>1. Metadata Contents: </strong>
Metadata is the information that the Catalog
keeps inside of its internal structure so that it can answer
questions quickly. This is then returned in the "brain" that the
Catalog gives back during searches.
</p>
<table title="Metadata Contents"
class="table table-sm table-striped table-hover objectItems">
<dtml-in expr="getMetadataForRID(_.int(rid)).items()">
<dtml-if name="sequence-start">
<thead class="thead-light">
<tr>
<th width="25%">Key</th>
<th width="70%">Value</th>
</tr>
</thead>
<tbody>
</dtml-if>
<tr>
<td>&dtml-sequence-key;</td>
<td>&dtml-sequence-item;</td>
</tr>
</dtml-in>
</tbody>
class="table table-sm table-striped table-hover objectItems">
<dtml-in expr="getMetadataForRID(_.int(rid)).items()">
<dtml-if name="sequence-start">
<thead class="thead-light">
<tr>
<th width="25%">Key</th>
<th width="70%">Value</th>
</tr>
</thead>
<tbody>
</dtml-if>
<tr>
<td>&dtml-sequence-key;</td>
<td>&dtml-sequence-item;</td>
</tr>
</dtml-in>
</tbody>
</table>

<p>
<strong>2. Index Contents: </strong>
The following table gives information that is
contained in the various indexes of the Catalog. In the case of
Keyword or Text indexes, the results are returned as a tuple, and will
show as '(one, two, three)', rather than in a more normal way.
<strong>2. Index Contents: </strong>
The following table gives information that is
contained in the various indexes of the Catalog. In the case of
Keyword or Text indexes, the results are returned as a tuple, and will
show as '(one, two, three)', rather than in a more normal way.
</p>
<table title="Index Contents"
class="table table-sm table-striped table-hover objectItems">
<dtml-in expr="getIndexDataForRID(_.int(rid)).items()">
<dtml-if name="sequence-start">
<thead class="thead-light">
<tr>
<th width="25%">Key</th>
<th width="70%">Value</th>
</tr>
</thead>
<tbody>
</dtml-if>
<tr>
<td>&dtml-sequence-key;</td>
<td>&dtml-sequence-item;</td>
</tr>
</dtml-in>
</tbody>
class="table table-sm table-striped table-hover objectItems">
<dtml-in expr="getIndexDataForRID(_.int(rid)).items()">
<dtml-if name="sequence-start">
<thead class="thead-light">
<tr>
<th width="25%">Key</th>
<th width="70%">Value</th>
</tr>
</thead>
<tbody>
</dtml-if>
<tr>
<td>&dtml-sequence-key;</td>
<td>&dtml-sequence-item;</td>
</tr>
</dtml-in>
</tbody>
</table>
14 changes: 7 additions & 7 deletions src/Products/ZCatalog/dtml/catalogPlan.dtml
Expand Up @@ -3,14 +3,14 @@

<main class="container-fluid">

<p class="form-help">
The <strong>query plan</strong> shows the actual query plan of the
current process.
</p>
<p class="form-help">
The <strong>query plan</strong> shows the actual query plan of the
current process.
</p>

<textarea name="queryplan" cols="70" rows="25" readonly="readonly"
class="form-control text-monospace code">&dtml-getCatalogPlan;
</textarea>
<textarea name="queryplan" cols="70" rows="25" readonly="readonly"
class="form-control text-monospace code">&dtml-getCatalogPlan;
</textarea>

</main>

Expand Down
158 changes: 79 additions & 79 deletions src/Products/ZCatalog/dtml/catalogReport.dtml
Expand Up @@ -3,87 +3,87 @@

<main class="container-fluid">

<p class="form-help">
The <strong>query report</strong> shows catalog queries that perform slowly.
For each index there's an additional entry for the time the intersection of
the index result with the result by the other indexes took. These are marked
with a <i>#intersection</i> postfix. The time reported for the index is the
sum of the intersection time and the time the index itself took. Subtract
the intersection time, if you want to know the pure index time.
</p>
<p class="form-help">
The <strong>query report</strong> shows catalog queries that perform slowly.
For each index there's an additional entry for the time the intersection of
the index result with the result by the other indexes took. These are marked
with a <i>#intersection</i> postfix. The time reported for the index is the
sum of the intersection time and the time the index itself took. Subtract
the intersection time, if you want to know the pure index time.
</p>

<table class="table table-sm table-striped table-bordered table-hover">
<thead class="thead-light">
<tr>
<th scope="col">Mean duration&nbsp;[ms]</th>
<th scope="col">Hits</th>
<th scope="col">Query key</th>
<th scope="col">Recent</th>
</tr>
</thead>
<tbody>
<dtml-if getCatalogReport>
<dtml-in getCatalogReport mapping>
<tr>
<td>
<dtml-var expr="'%3.2f' % duration">
</td>
<td>
&dtml-counter;
</td>
<td>
&dtml-query;
</td>
<td>
<dtml-var expr="'%3.2f' % last['duration']">ms
[<dtml-in expr="last['details']" sort mapping>
&dtml-id;: <dtml-var expr="'%3.2f' % duration">ms,
</dtml-in>]
</td>
</tr>
</dtml-in>
<tr>
<td colspan="2">
Resetting the catalog report will reinitialize the report log.
</td>
<td colspan="2">
<form action="manage_resetCatalogReport" method="POST">
<input class="btn btn-primary" type="submit" value="Reset Report">
</form>
</td>
</tr>
<dtml-else>
<tr>
<td colspan="4" >
<em>Report is empty.</em>
</td>
</tr>
</dtml-if>
</tbody>
</table>
<table class="table table-sm table-striped table-bordered table-hover">
<thead class="thead-light">
<tr>
<th scope="col">Mean duration&nbsp;[ms]</th>
<th scope="col">Hits</th>
<th scope="col">Query key</th>
<th scope="col">Recent</th>
</tr>
</thead>
<tbody>
<dtml-if getCatalogReport>
<dtml-in getCatalogReport mapping>
<tr>
<td>
<dtml-var expr="'%3.2f' % duration">
</td>
<td>
&dtml-counter;
</td>
<td>
&dtml-query;
</td>
<td>
<dtml-var expr="'%3.2f' % last['duration']">ms
[<dtml-in expr="last['details']" sort mapping>
&dtml-id;: <dtml-var expr="'%3.2f' % duration">ms,
</dtml-in>]
</td>
</tr>
</dtml-in>
<tr>
<td colspan="2">
Resetting the catalog report will reinitialize the report log.
</td>
<td colspan="2">
<form action="manage_resetCatalogReport" method="POST">
<input class="btn btn-primary" type="submit" value="Reset Report">
</form>
</td>
</tr>
<dtml-else>
<tr>
<td colspan="4" >
<em>Report is empty.</em>
</td>
</tr>
</dtml-if>
</tbody>
</table>

<form action="manage_editCatalogReport" method="post" class="mt-5">
<p class="help-text">
<strong>Settings:</strong>
Threshold in seconds
</p>
<div class="form-group row">
<div class="col-12">
<input id="long_query_time" class="form-control" name="long_query_time:float"
title="Threshold in seconds" type="number" step="0.1"
value="&dtml-long_query_time;" placeholder="0.1"
/>
<small><em>
Only queries whose execution takes longer than the
configured threshold in seconds are considered
being slow. (Default value is 0.1 seconds).
</em></small>
</div>
</div>
<div class="zmi-controls">
<input class="btn btn-primary" type="submit" value="Apply settings" />
</div>
</form>
<form action="manage_editCatalogReport" method="post" class="mt-5">
<p class="help-text">
<strong>Settings:</strong>
Threshold in seconds
</p>
<div class="form-group row">
<div class="col-12">
<input id="long_query_time" class="form-control" name="long_query_time:float"
title="Threshold in seconds" type="number" step="0.1"
value="&dtml-long_query_time;" placeholder="0.1"
/>
<small><em>
Only queries whose execution takes longer than the
configured threshold in seconds are considered
being slow. (Default value is 0.1 seconds).
</em></small>
</div>
</div>
<div class="zmi-controls">
<input class="btn btn-primary" type="submit" value="Apply settings" />
</div>
</form>

</main>

Expand Down

0 comments on commit abd1334

Please sign in to comment.