discourse/lib/tasks
Martin Brennan 6f978bc95c
FIX: First pass to improve efficiency of secure uploads rake task (#9284)
Get rid of harmful each loop over uploads to update. Instead we put all the unique access control posts for the uploads into a map for fast access (vs using the slow .find through array) and look up the post when it is needed when looping through the uploads in batches.

On a Discourse instance with ~93k uploads, a simplified version of the old method takes > 1 minute, and a simplified version of the new method takes ~18s and uses a lot less memory.
2020-03-26 15:59:57 +10:00
..
add_topic_to_quotes.rake
admin.rake FIX: RANDOM_PASSWORD not working rake admin:create 2020-03-15 17:24:11 +11:00
api.rake FEATURE: Hash API keys in the database (#8438) 2019-12-12 11:45:00 +00:00
assets.rake FIX: Ensure sourcemap's source is correct. Uses the full assets path this time. (#8774) 2020-01-23 14:44:00 -03:00
auto_annotate_models.rake
autospec.rake
avatars.rake
backfill.thor
bookmarks.rake FIX: Improve bookmark modal on mobile and bookmark sync rake task (#9221) 2020-03-17 15:15:22 +10:00
build_test_topic.rake
build.rake
categories.rake REFACTOR: Cleanup rake tasks based on feedback 2019-07-18 19:15:01 -06:00
cdn.rake
db.rake FIX: Don't optimize icons during db:migrate when restoring backup 2020-03-04 16:59:49 +01:00
destroy.rake REFACTOR: Cleanup rake tasks based on feedback 2019-07-18 19:15:01 -06:00
docker.rake DEV: Prevent plugin loading when running core db migrations in tests 2019-12-10 16:11:49 +00:00
emails.rake Let's not log the username/password 2020-03-11 12:48:10 -04:00
emoji.rake
export.rake FIX: Correct path to ImportExport module (#8227) 2019-10-23 17:27:14 +11:00
groups.rake
i18n.rake
images.rake
import.rake Merge pull request #8736 from gschlager/rename_reply_id_column 2020-01-17 17:24:49 +01:00
incoming_emails.rake FEATURE: Remove attachments and truncate raw field for incoming emails (#8253) 2019-10-30 16:54:35 +11:00
integration.rake
javascript.rake DEV: makes popper.js part of javascript rake task (#8847) 2020-02-04 15:34:46 +01:00
maxminddb.rake FIX: maxminddb:get task no longer working 2019-10-04 09:47:33 +10:00
plugin.rake DEV: allows to run up/down migrations of a plugin (#9241) 2020-03-19 19:30:08 +01:00
populate.thor DEV: prevents populate task to crash (#8111) 2019-09-22 05:18:48 -07:00
posts.rake DEV: pluck_first 2019-10-21 12:08:20 +01:00
qunit.rake DEV: Allow CSP to be enabled during QUnit tests (#8668) 2020-01-07 12:22:58 +00:00
redis.rake DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
release_note.rake Fix release notes rake task 2019-12-05 11:53:10 -05:00
rspec.rake
s3.rake FIX: Change secure media to encompass attachments as well (#9271) 2020-03-26 07:16:02 +10:00
scheduler.rake FIX: DistributedMutex (#7953) 2019-08-01 09:12:05 +01:00
search.rake
site_settings.rake
smoke_test.rake DEV: Add env variable to allow easier debugging of smoke tests 2019-10-24 17:48:15 +02:00
svg_icons.rake
tags.rake
themes.rake FEATURE: Rake themes installer (#7848) 2019-07-04 14:33:05 -04:00
topics.rake FEATURE: Add support for secure media (#7888) 2019-11-18 11:25:42 +10:00
turbo.rake DEV: Add a verbose option to ./bin/turbo_rspec 2019-06-27 15:49:21 +01:00
typepad.thor DEV: s/\$redis/Discourse\.redis (#8431) 2019-12-03 10:05:53 +01:00
uploads.rake FIX: First pass to improve efficiency of secure uploads rake task (#9284) 2020-03-26 15:59:57 +10:00
user_actions.rake
users.rake