Skip to content

Consider saving json_encoded option value to wlo cpt post_content  #3

@jtsternberg

Description

@jtsternberg

I think we could improve performance by cutting out the extra post-meta lookup by storing the option json_encoded to the post_content. @thomasgriffin wrote an excellent post exploring this very idea: https://thomasgriffin.io/wordpress-performance-outside-box-handling-retrieving-data/

I understand that the post_id is cached, so it's possible that there is only one lookup, so we may only be replacing a lookup in the post-meta table to a lookup in the posts table, but according to Thomas' article, that one lookup would be significantly more performant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions