gnu-social/lib/ui
Alexei Sorokin 194976135f [DATABASE] Some query improvements
Make common_sql_weight employ standard SQL functions for the timestamp
difference in seconds.
Also replace UTC_TIMESTAMP in the MariaDB-specific part with CURRENT_TIMESTAMP
as it is the only occurence and GNU social sets UTC as a default timezone.

In a delete_orphan_files.php script simplify the main query considerably.

In clean_profiles.php stop using COUNT as if it is ANY, that is unnecessary
punishment for the database. Instead implement the anti-join with a
left outer join.

In Autocomplete and Activitypub_profile use joins instead of a WHERE OR
anti-pattern for the semi-joins.

In lib/ui/galleryaction.php replace a CROSS JOIN with an INNER JOIN.

In actions/sup.php remove a redundant subquery: WHERE is applied before
grouping either way.
2020-06-10 16:52:00 +03:00
..
channel.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
clienterroraction.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
defaultlocalnav.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
featureduserssection.php [DATABASE] Always quote identifiers 2019-09-11 08:15:16 +03:00
galleryaction.php [DATABASE] Some query improvements 2020-06-10 16:52:00 +03:00
homestubnav.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
invitebuttonsection.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
inviteform.php [LIB_REFACTOR] Fix requires 2019-09-03 03:33:13 +01:00
menu.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
moremenu.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
primarynav.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
secondarynav.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
section.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
sectionnoticelist.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
selftagswidget.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
settingsaction.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
settingsnav.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
siteprofile.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
subgroupnav.php [LIB_REFACTOR] Fix requires 2019-09-03 03:33:13 +01:00
theme.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
topposterssection.php [DATABASE] Consistently use the "LIMIT $limit OFFSET $offset" syntax 2019-09-11 10:12:49 +03:00
toselector.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
widget.php [UI] Fix a small typo 2019-11-03 15:53:11 +00:00