Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: What are mptt_right and mptt_left in bp_activity table ?

@djpaul

Keymaster

Activity stores data in what’s known as a “modified preorder tree traversal” structure; it’s a way of storing hierarchical data. http://www.sitepoint.com/hierarchical-data-database-2/ has more information.

Left and right are used to store the position of the node in the tree. Unless you want to/are able to figure out correct values, I strongly suggest you use BuddyPress’ APIs to insert or update data.

Skip to toolbar