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