API: Getting all posts in a topic

For some reason your angular app is triggering slow_chunk_size.

https://github.com/discourse/discourse/blob/master/lib/topic_view.rb#L12-L14

from

https://github.com/discourse/discourse/blob/master/app/controllers/application_controller.rb#L104-L106

So that might be something to look into.

There is not a chunk_size parameter you can set, but if you pass in print=true like /t/-/{id}.json?print=true it will set the chunk size to 1000.

9 Likes