New function to detect heavily used indexes
This commit is contained in:
parent
b067a11146
commit
fd5f151a72
4 changed files with 46 additions and 6 deletions
|
@ -1344,7 +1344,7 @@ function photos_content(App $a) {
|
|||
else
|
||||
$order = 'DESC';
|
||||
|
||||
|
||||
/// @todo This query is totally bad, the whole functionality has to be changed
|
||||
$prvnxt = qu("SELECT `resource-id` FROM `photo` WHERE `album` = '%s' AND `uid` = %d AND `scale` = 0
|
||||
$sql_extra ORDER BY `created` $order ",
|
||||
dbesc($ph[0]['album']),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue