mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Several performance improvements
This commit is contained in:
parent
9be09f7df5
commit
5b3145d7ce
15 changed files with 103 additions and 66 deletions
10
update.php
10
update.php
|
@ -1100,9 +1100,9 @@ function update_1451()
|
|||
|
||||
function update_1457()
|
||||
{
|
||||
$pinned = DBA::select('post-thread-user', ['uri-id'], ['pinned' => true]);
|
||||
$pinned = DBA::select('post-thread-user', ['uri-id', 'author-id'], ['pinned' => true]);
|
||||
while ($post = DBA::fetch($pinned)) {
|
||||
Post\Collection::add($post['uri-id'], Post\Collection::FEATURED);
|
||||
Post\Collection::add($post['uri-id'], Post\Collection::FEATURED, $post['author-id']);
|
||||
}
|
||||
DBA::close($pinned);
|
||||
|
||||
|
@ -1115,3 +1115,9 @@ function update_1480()
|
|||
DBA::update('post', ['deleted' => false], ["`uri-id` IN (SELECT `uri-id` FROM `post-user` WHERE NOT `deleted`)"]);
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
||||
function update_1481()
|
||||
{
|
||||
DBA::e("UPDATE `post-collection` INNER JOIN `post` ON `post`.`uri-id` = `post-collection`.`uri-id` SET `post-collection`.`author-id` = `post`.`author-id` WHERE `post-collection`.`author-id` IS null");
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue