mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Performance improvements when displaying local posts
This commit is contained in:
parent
bae1f63424
commit
c82a1ed467
16 changed files with 1101 additions and 28 deletions
|
@ -1458,3 +1458,11 @@ function update_1557()
|
|||
DBA::close($contacts);
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
||||
function update_1560()
|
||||
{
|
||||
if (!DBA::e("INSERT IGNORE INTO `post-origin`(`id`, `uri-id`, `uid`, `parent-uri-id`, `thr-parent-id`, `created`, `received`, `gravity`, `vid`, `private`, `wall`)
|
||||
SELECT `id`, `uri-id`, `uid`, `parent-uri-id`, `thr-parent-id`, `created`, `received`, `gravity`, `vid`, `private`, `wall` FROM `post-user` WHERE `post-user`.`origin` AND `post-user`.`uid` != ?", 0)) {
|
||||
return Update::FAILED;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue