Skip to:
Content

bbPress.org

Opened 13 years ago

Closed 13 years ago

#1840 closed defect (bug) (fixed)

Reply position results in extra needless queries

Reported by: johnjamesjacoby's profile johnjamesjacoby Owned by: johnjamesjacoby's profile johnjamesjacoby
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.0
Component: Tools - Code Improvements Keywords:
Cc:

Description

When trying to get the position of a reply in a topic, we're currently querying for topic children for each reply in a loop. This results in direct database hits for each iteration. The queries are cached at a lower level, but for as often as this is called, this can be architected better.

I propose using menu_order in place of bbPress 1.x's post_position property.

Change History (1)

#1 @johnjamesjacoby
13 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3934]) Reply Position Improvements:

  • Add _update_ and _raw functions for reply positioning.
  • Use these functions through-out the codebase as needed.
  • Maintains the existing bbp_get_reply_position() behavior, so it's backwards compatible.
  • Fixes #1840.
Note: See TracTickets for help on using tickets.