Skip to content

[Performance] WC_Subscriptions_Order->render_contains_subscription_column_content() adds extra performance overhead to orders management #731

Open
@prettyboymp

Description

WC_Subscriptions_Order->render_contains_subscription_column_content() adds two additional queries for each order listed on the orders admin listing page.

A couple of ways to make an improvement:

  1. The underlying code for wcs_order_contains_subscription() could be made more performant by avoiding the loading of any subscriptions (avoiding extra unneeded callbacks/filters), or at least avoiding the extra count query added on.
  2. Consider priming the data needed for the ->render_contains_subscription_column_content() for all orders being rendered at once in a single query rather than one at a time.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions