bookwyrm/bookwyrm
Wesley Aptekar-Cassels 07b50a1453 Optimize get_audience
This avoids filtering for the user that made the post in the same query
as we use for other things, which should allow for better use of indices
in all cases. Previously, #2723 did some work on this that only worked
for some cases in HomeStream, but this code should work for all cases.

Related: #2720
2023-04-07 10:38:14 -04:00
..
activitypub Pass allow_external_connections through ignore_activity 2023-04-06 23:37:49 -04:00
connectors spelling: format 2023-04-04 20:02:54 -04:00
forms spelling: expiration 2023-04-04 20:02:54 -04:00
importers Fixed Import limit for retries 2023-01-17 01:07:10 +01:00
management/commands spelling: revoke 2023-04-04 20:02:54 -04:00
middleware Adds IP blocklist views 2021-09-17 13:04:10 -07:00
migrations spelling: physical 2023-04-04 20:02:54 -04:00
models Merge pull request #2780 from jsoref/spelling 2023-04-07 06:30:16 -07:00
static spelling: remove 2023-04-04 20:02:54 -04:00
telemetry Add automatic instrumentation to Postgres queries 2023-04-07 01:58:49 -04:00
templates Merge pull request #2780 from jsoref/spelling 2023-04-07 06:30:16 -07:00
templatetags spelling: should 2023-04-04 20:02:54 -04:00
tests Merge pull request #2784 from WesleyAC/add-status-cache-get-audience 2023-04-07 06:43:04 -07:00
utils Add helper to refer views back to http referers safely 2023-03-20 10:25:38 -07:00
views Merge pull request #2780 from jsoref/spelling 2023-04-07 06:30:16 -07:00
__init__.py
activitystreams.py Optimize get_audience 2023-04-07 10:38:14 -04:00
admin.py Adds model for instance admin announcements 2021-05-19 14:00:46 -07:00
apps.py Add automatic instrumentation to Postgres queries 2023-04-07 01:58:49 -04:00
book_search.py {list} Fix duplicate suggestions in Add Books section 2023-01-10 11:08:11 -05:00
context_processors.py Python formatting 2022-03-01 11:39:08 -08:00
emailing.py Ignore Celery task results 2023-03-08 02:12:13 -05:00
imagegenerators.py Fix lint 2021-06-19 19:44:14 +02:00
lists_stream.py Merge pull request #2784 from WesleyAC/add-status-cache-get-audience 2023-04-07 06:43:04 -07:00
preview_images.py Ignore Celery task results 2023-03-08 02:12:13 -05:00
redis_store.py Merge pull request #2784 from WesleyAC/add-status-cache-get-audience 2023-04-07 06:43:04 -07:00
settings.py Increase network timeout in Celery tasks 2023-04-06 01:21:27 -04:00
signatures.py increasing rsa key size 2023-02-20 21:51:50 +01:00
status.py Catches missing reference to previous sanitizer 2022-07-04 13:24:13 -07:00
storage_backends.py Enable Azure BlobStorage as an alternative to AWS S3 2023-03-05 12:08:16 -05:00
suggested_users.py Merge pull request #2784 from WesleyAC/add-status-cache-get-audience 2023-04-07 06:43:04 -07:00
tasks.py Use a separate queue for broadcasts 2023-02-20 12:58:41 -08:00
thumbnail_generation.py Update thumbnail_generation.py 2022-01-08 17:54:03 +01:00
urls.py Use context processor for 500 page 2023-03-13 03:47:23 -04:00
wsgi.py