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