创建大量子论坛的最有效方法

Hi,

We’re looking at implementing discourse into an existing application which has a large userbase broken down into schools at the nationwide level.

In an ideal world, each school with have its own private “sub-forum” of which only users from that school can post, which each sub-forum having approx 3 categories (always the same).

If this setup something thats possible in discourse and if so whats the best way of implementing this assuming there may be thousands of schools/sub-forums?

From an initial look it seems it may be possible to create a group per school and then assign users to the group, but creating thousands of groups via API seems like the wrong approach

Any thoughts appreciated!

Yes, it’s possible (each school could have one category with 3 sub-categories) but you’ll have huge performance issues if you create thousands of categories.

I suspect that you might want to use a multisite install and have each school have its own forum via multisite. The particulars of how you’d manage thousands of multisite forums is likely beyond the kind of help that you can get here.

Are you planning to authenticate against SSO against something?

And you want one group per school? Is this just for teachers and not students?

如果你编写一个小的 Ruby 脚本来直接更新 PostgreSQL 数据库,这实际上很容易实现。

对于使用 Ruby 完成这项“相对简单”的数据库查询脚本任务,没有必要使用 API。