Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/web-scripts/dependencies.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-02-28 22:32:07 +0100
committerErich Eckner <git@eckner.net>2018-02-28 22:32:07 +0100
commit1b15a4704e80853b99eef83a3e26e7735bec2f54 (patch)
treed77655dcb57f94930a1a16790512d693efd37a84 /web-scripts/dependencies.php
parent6c68e125ed9307fa6628937e4ee162c641db1297 (diff)
web-scripts/dependencies.php: limit to 50 connections each
Diffstat (limited to 'web-scripts/dependencies.php')
-rw-r--r--web-scripts/dependencies.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/web-scripts/dependencies.php b/web-scripts/dependencies.php
index 66221bd..4f12c52 100644
--- a/web-scripts/dependencies.php
+++ b/web-scripts/dependencies.php
@@ -34,7 +34,8 @@ if (! $result = $mysql -> query(
" JOIN `dependencies` ON `dependencies`.`dependent`=`binary_packages`.`id`" .
" JOIN `install_targets` ON `dependencies`.`depending_on`=`install_targets`.`id`" .
$ignore_install_targets .
- " JOIN `install_target_providers` ON `install_target_providers`.`install_target`=`dependencies`.`depending_on`"
+ " JOIN `install_target_providers` ON `install_target_providers`.`install_target`=`dependencies`.`depending_on`" .
+ " LIMIT 50"
))
die($mysql->error);
@@ -46,7 +47,8 @@ if (! $result = $mysql -> query(
" JOIN `architectures` ON `binary_packages`.`architecture`=`architectures`.`id`" .
$match .
" JOIN `install_target_providers` ON `install_target_providers`.`package`=`binary_packages`.`id`" .
- " JOIN `dependencies` ON `install_target_providers`.`install_target`=`dependencies`.`depending_on`"
+ " JOIN `dependencies` ON `install_target_providers`.`install_target`=`dependencies`.`depending_on`" .
+ " LIMIT 50"
))
die($mysql->error);