Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Investigate using multireddits to fetch posts for queue #476

Open
TimJentzsch opened this issue May 2, 2023 · 0 comments
Open

Investigate using multireddits to fetch posts for queue #476

TimJentzsch opened this issue May 2, 2023 · 0 comments
Labels
API Suggestion which would change the user-facing API

Comments

@TimJentzsch
Copy link
Contributor

TimJentzsch commented May 2, 2023

You can concatenate multiple subreddits with a + to get the feed of all subreddits combined:
https://www.reddit.com/r/me_irl+me_irlgbt+thatHappened+therewasanattempt
Supposedly, this also works for the API.

This could significantly reduce the number of API requests we need to fetch new posts for the queue.
We should investigate if we can use this technique.

Note that there is supposed to be a maximum limit of subs you can have in a single multireddit, but it's supposed to be a lot (I'm not sure what the limit is).
So we might have to batch them into multiple calls, but it should still be a lot less than we need right now.

@TimJentzsch TimJentzsch added the API Suggestion which would change the user-facing API label May 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API Suggestion which would change the user-facing API
Projects
None yet
Development

No branches or pull requests

1 participant