Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443488
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3443488
Commits
b1143365
Commit
b1143365
authored
19 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#28924
by Jeremy: simplified 'group by'-clause to improve performance.
parent
26fa7c73
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/statistics.module
+1
-1
1 addition, 1 deletion
modules/statistics.module
modules/statistics/statistics.module
+1
-1
1 addition, 1 deletion
modules/statistics/statistics.module
with
2 additions
and
2 deletions
modules/statistics.module
+
1
−
1
View file @
b1143365
...
...
@@ -250,7 +250,7 @@ function statistics_recent_hits($type = 'all', $id = 0) {
* Menu callback; presents the "top pages" page.
*/
function
statistics_top_pages
()
{
$sql
=
"SELECT COUNT(path) AS hits, path, title, AVG(timer) AS average_time, SUM(timer) AS total_time FROM
{
accesslog
}
GROUP BY path
, title
"
;
$sql
=
"SELECT COUNT(path) AS hits, path, title, AVG(timer) AS average_time, SUM(timer) AS total_time FROM
{
accesslog
}
GROUP BY path"
;
$sql_cnt
=
"SELECT COUNT(DISTINCT(path)) FROM
{
accesslog
}
"
;
$header
=
array
(
...
...
This diff is collapsed.
Click to expand it.
modules/statistics/statistics.module
+
1
−
1
View file @
b1143365
...
...
@@ -250,7 +250,7 @@ function statistics_recent_hits($type = 'all', $id = 0) {
* Menu callback; presents the "top pages" page.
*/
function
statistics_top_pages
()
{
$sql
=
"SELECT COUNT(path) AS hits, path, title, AVG(timer) AS average_time, SUM(timer) AS total_time FROM
{
accesslog
}
GROUP BY path
, title
"
;
$sql
=
"SELECT COUNT(path) AS hits, path, title, AVG(timer) AS average_time, SUM(timer) AS total_time FROM
{
accesslog
}
GROUP BY path"
;
$sql_cnt
=
"SELECT COUNT(DISTINCT(path)) FROM
{
accesslog
}
"
;
$header
=
array
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment