gnu-social/lib/util
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
..
arraywrapper.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
callableleftcurry.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
command.php [LIB_REFACTOR] Fix requires 2019-09-03 03:33:13 +01:00
commandinterpreter.php [LIB_REFACTOR] Fix requires 2019-09-03 03:33:13 +01:00
common.php [LIB_REFACTOR] Fix requires 2019-09-03 03:33:13 +01:00
daemon.php [DAEMONS] Move resetDb to the Daemon class 2019-09-13 22:08:42 +03:00
default.php [TheFreeNetwork] Use config + module settings for initialization and online lookup 2020-05-09 11:50:26 +01:00
deletetree.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
docfile.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
event.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
form.php [LIB_REFACTOR] Fix requires 2019-09-03 03:33:13 +01:00
formaction.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
framework.php [CORE] Add GNUSOCIAL_ENGINE_REPO_URL and increase usage of GNUSOCIAL_ENGINE_URL 2019-11-21 00:21:22 +00:00
gnusocial.php [MODULES] Make disable in admin panel effective 2019-09-12 04:50:46 +01:00
htmloutputter.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
httpclient.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
infoaction.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
installer.php [INSTALL] Allow the setup of sslproxy during install time 2020-03-15 21:37:37 +00:00
internalsessionhandler.php [DATABASE] Only use single quotation marks for SQL strings 2019-09-11 09:46:30 +03:00
iomanager.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
iomaster.php [CORE] Use monotonic time via hrtime() where applicable 2020-01-07 19:48:13 +03:00
language.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
location.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
mail.php [DATABASE] Introduce a bool type in schema 2019-09-11 11:25:39 +03:00
mailhandler.php [LIB_REFACTOR] Fix requires 2019-09-03 03:33:13 +01:00
managedaction.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
oauthclient.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
parallelizingdaemon.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
ping.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
processmanager.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
redirectingaction.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
right.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
router.php [CORE] Make avatars be served with the same mechanism as attachments 2020-04-06 21:14:11 +00:00
spawningdaemon.php [DAEMONS] Move resetDb to the Daemon class 2019-09-13 22:08:42 +03:00
taguri.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
themeuploader.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
urlmapper.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
util.php [DATABASE] Some query improvements 2020-06-10 16:52:00 +03:00
uuid.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
webcolor.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
xmloutputter.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00
xmlstringer.php [LIB_REFACTOR] Moving files into separate semantic categories 2019-09-03 03:33:13 +01:00