gnu-social/scripts
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
..
allsites.php
apidocs.config
backupuser.php
checkschema.php
clean_file_table.php
clean_profiles.php
clean_thumbnails.php
clear_jabber.php
clearcache.php
command.php
commandline.inc
console.php
createsim.php
delete_notice.php
delete_orphan_files.php
delete_status_network.sh
deletegroup.php
deleteprofile.php
docgen.php
doxygen.tmpl
dumpschema.php
fixup_deletions.php
fixup_hashtags.php
flushrouter.php
flushsite.php
getpiddir.php
getvaliddaemons.php
gnusocialversion.php
handlequeued.php
imdaemon.php
importtwitteratom.php
install_cli.php
joingroup.php
leavegroup.php
maildaemon.php
make-release.php
makegroupadmin.php
move_status_network.sh
moveuser.php
nukefile.php
queuectl.php
queuedaemon.php
registeruser.php
remove_duplicate_file_urls.php
resend_confirm_address.php
restoreuser.php
sendemail.php
sessiongc.php
setconfig.php
setpassword.php
settag.php
setup_status_network.sh
setup.cfg.sample
showcache.php
showplugins.php
showtable.php
simple_console.php
startdaemons.sh
stopdaemons.sh
strip_geo.php
uncache_users.php
update_po_templates.php
update_translations.php
updatelocation.php
updateuris.php
updateurls.php
upgrade.php
useremail.php
userrole.php