I am trying to get familiar with some of the inner workings of Discourse (specifically how merging users works). To this end I have created an AWS instance, installed discourse, and run the setup, then modified the app.yml to disable email, then imported an old backup from our live site, so I have some data to work with.
The problem is this: Our live site has 1.8 Mio Posts, and about 34K user accounts. Restore ran fine on a t2.micro with 1GB Ram. Everything is there, and the site works, if a bit slow.
But...
Because the instance is memory bound, and there is so much to crawl through, things like users:change_post_ownership and rebake exhaust the RAM and I get "MiniRacer::ScriptTerminatedError: JavaScript was terminated (either by timeout or explicitly)"
I've tried deleting a bunch of categories to reduce the sheer number of items, but the size of the database stays the same.
Is there some (easy) way to really drop some of the stuff I restored from the backup, or do I need to export a couple of categories from our live site, create a new discourse install and import just the exported categories? (As I understand it, exporting a category includes the category, the users, and the posts, but not the uploads.)