WordPress.org

Ready to get started?Download WordPress

Forums

BP Group Hierarchy
scalability issue creating new groups (2 posts)

  1. eddedd
    Member
    Posted 1 year ago #

    One of the steps in creating new groups, is to select a parent group.

    For this step, the plugin generates a combo box with all the active groups.

    The issue I came across was that by having a large number of groups, it increased the loading time (probably because of a large query result, and code looping through the result), causing this script to break/time out, and display a blank page.

    As a temporary workaround, I commented out the code that gets all the groups; instead I only display two options in the combo box: 'Site Root' option, and the parent group if there is one.

    If you have any suggestion on how should I address this issue, I would appreciate it.

    Thanks,

    Ed

    http://wordpress.org/extend/plugins/bp-group-hierarchy/

  2. David Dean
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Ed,

    I think what you've done is the best way to handle it for now. The latest release included some slight optimization there, but there's only so much that area can be optimized.

    I can make building the parent group dropdown a function that can be replaced with a filter. This will let larger deployments like yours substitute their own controls, and will make it easier to add a paged list or something like that if demand is sufficient.

    If you've got any other thoughts, please let me know!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.