gnu-social/lib
Alexei Sorokin d01f44ee99 [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.
2021-07-16 19:44:36 +01:00
..
action [CORE] Use monotonic time via hrtime() where applicable 2021-07-16 19:44:36 +01:00
activitystreams [LIB_REFACTOR] Fix requires 2021-07-16 19:44:34 +01:00
admin [MODULES] Make disable in admin panel effective 2021-07-16 19:44:35 +01:00
api [API] Show a nicer no such user error on statusnet/groups/list_all 2021-07-16 19:44:36 +01:00
application [LIB_REFACTOR] Fix requires 2021-07-16 19:44:34 +01:00
cache [LIB_REFACTOR] Moving files into separate semantic categories 2021-07-16 19:44:34 +01:00
database [DATABASE] Start transactions with START TRANSACTION 2021-07-16 19:44:36 +01:00
exceptions [LIB_REFACTOR] Moving files into separate semantic categories 2021-07-16 19:44:34 +01:00
feeds [CORE] Add GNUSOCIAL_ENGINE_REPO_URL and increase usage of GNUSOCIAL_ENGINE_URL 2021-07-16 19:44:36 +01:00
groups [DATABASE] Consistently use the "LIMIT $limit OFFSET $offset" syntax 2021-07-16 19:44:35 +01:00
im [LIB_REFACTOR] Moving files into separate semantic categories 2021-07-16 19:44:34 +01:00
media [UI] Small improvement on attachment's visual 2021-07-16 19:44:36 +01:00
modules [NOTICES] Add data-nosnippet attribute for notices by remote profiles 2021-07-16 19:44:36 +01:00
notices [CORE][DATABASE] Another approach to semi-join in the inboxnoticestream query 2021-07-16 19:44:36 +01:00
portablecontacts [LIB_REFACTOR] Moving files into separate semantic categories 2021-07-16 19:44:34 +01:00
profile [LIB_REFACTOR] Fix minor issues 2021-07-16 19:44:35 +01:00
queue [PLUGINS] Added UnQueue, a new default plugin which does all actions immediately 2021-07-16 19:44:34 +01:00
search [DATABASE] Re-introduce PostgreSQL support 2021-07-16 19:44:35 +01:00
ui [DATABASE] Some query improvements 2021-07-16 19:44:36 +01:00
util [DATABASE] Some query improvements 2021-07-16 19:44:36 +01:00