Removing costful query.
This commit is contained in:
parent
2170498c5e
commit
e4157ace4f
|
@ -76,10 +76,6 @@ EOF
|
||||||
my $dbh = BurguillosInfo::DB->connect($app);
|
my $dbh = BurguillosInfo::DB->connect($app);
|
||||||
my $data = $dbh->selectall_arrayref(<<"EOF", {Slice => {}});
|
my $data = $dbh->selectall_arrayref(<<"EOF", {Slice => {}});
|
||||||
SELECT paths.path,
|
SELECT paths.path,
|
||||||
(
|
|
||||||
$SELECT_GLOBAL
|
|
||||||
where requests.path = paths.path
|
|
||||||
) as unique_ips,
|
|
||||||
(
|
(
|
||||||
$SELECT_GLOBAL
|
$SELECT_GLOBAL
|
||||||
where requests.path = paths.path and date > NOW() - interval '1 day'
|
where requests.path = paths.path and date > NOW() - interval '1 day'
|
||||||
|
|
Loading…
Reference in New Issue