I created some code this morning to cascade discussions into parent categories. I'm hoping to get a good pull request together so take a look and code up any other ideas you might have.
Also the code base calling parent categories 'Descendants' really bothers me.
@ffunnyman How about using http://johno.jsmf.net/knowhow/ngrams/index.php to write small automatic posts and categories generator, so we could test many aspects on largely populated forums? So we could define maximum number fo categories on level, nesting number, average body size for discussion and average body size for comments, plus average comments number evr discussion.
@ffunnyman What do you mean under "if I start to need it"? I personally need it, as I want to test how Vanilla works under various loads and database size. I need to define categories number, subcategories depth, average discussion length, average comment body size and populate fresh database from it. From 100.000 to 8.000.000 comments total. Some kind of stress testing.
I need to define categories number, subcategories depth, average discussion length, average comment body size and populate fresh database from it. From 100.000 to 8.000.000 comments total. Some kind of stress testing.
When you have that database, please make a backup from it using the porter plugin, maybe it's a good database as a second "dummy" database :-)
Thanks so much for this, applied the four updates listed in the first message and it's working well (http://www.throng.co.nz/forums/). Will let you know I notice any issues.
@ffunnyman What do you mean under "if I start to need it"? I personally need it, as I want to test how Vanilla works under various loads and database size. I need to define categories number, subcategories depth, average discussion length, average comment body size and populate fresh database from it. From 100.000 to 8.000.000 comments total. Some kind of stress testing.
It is not hard once you have taken a look around. Example to programatically create a discussion $discussion = Array("CategoryID"=>$catId, "Name"=>$title, "Body" => $body); $discussionID = $Sender->DiscussionModel->Save($discussion);
Generally my post was about some ready to use tool that can be set many parameters and generate new tables for testing. While your example seems easy, in fact it is not so easy considering all dependencies, plus inserting millions of rows into SQL table one by one is not good idea. Such small script is necessary to propertly understand not only scaling of engine, but also usability problem that you start having on large forum.
Comments
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·How about using http://johno.jsmf.net/knowhow/ngrams/index.php
to write small automatic posts and categories generator, so we could test many aspects on largely populated forums?
So we could define maximum number fo categories on level, nesting number, average body size for discussion and average body size for comments, plus average comments number evr discussion.
What to you think?
Seems useful.
- Spam
- Abuse
0 · Insightful Awesome LOL ·@tester13 I think that would be a no so hard plug in to build. If I start to need it, i'll build it and post it.
- Spam
- Abuse
0 · Insightful Awesome LOL ·What do you mean under "if I start to need it"?
I personally need it, as I want to test how Vanilla works under various loads and database size.
I need to define categories number, subcategories depth, average discussion length, average comment body size and populate fresh database from it.
From 100.000 to 8.000.000 comments total.
Some kind of stress testing.
- Spam
- Abuse
0 · Insightful Awesome LOL ·What to do if I get a Bonk Error?
Vanilla Wiki : Join and help edit our Wiki! | View all Vanilla issues on GitHub | Report a new Vanilla issue on GitHub
Deploying a new Forum and adding a Theme | Give thanks to the Vanilla Developers!
- Spam
- Abuse
0 · Insightful Awesome LOL ·So, it'll be possible to test on same settings and discuss results and possible optimizations.
- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·- Spam
- Abuse
0 · Insightful Awesome LOL ·My addons: NillaBlog | Vanoogle
- Spam
- Abuse
0 · Insightful Awesome LOL ·Because I don't know how to properly fill all tables (related to Users, Discussions, Categories and Comments).
- Spam
- Abuse
0 · Insightful Awesome LOL ·Example to programatically create a discussion
$discussion = Array("CategoryID"=>$catId, "Name"=>$title, "Body" => $body);
$discussionID = $Sender->DiscussionModel->Save($discussion);
- Spam
- Abuse
0 · Insightful Awesome LOL ·While your example seems easy, in fact it is not so easy considering all dependencies, plus inserting millions of rows into SQL table one by one is not good idea.
Such small script is necessary to propertly understand not only scaling of engine, but also usability problem that you start having on large forum.
- Spam
- Abuse
0 · Insightful Awesome LOL ·Wow.. It worked. Thanx buddy.
- Spam
- Abuse
0 · Insightful Awesome LOL ·I took it to mean that the OP doesn't feel the need to create that for themselves yet, and have other things to do with their time.
- Spam
- Abuse
0 · Insightful Awesome LOL ·