I want to create a dashboard that displays posts over time. Currently I’m pulling the data from discourse using the API:
- First I get all the topic using forum.example.net/latest.json
- Then I get post ids in the topic post_stream: forum.example.net/t/XX.json
- And finally I get all the posts: forum.example.net/posts/YY.json
But this is painfully slow - a request for every topic and a request for every post!
Is there a better way to get the data using the API?