Querying posts by custom fields vs. taxonomy’s terms – is there a difference in performance? (English)

Let’s take a closer look on the SQL queries that are executed when we are listing posts with WP_Query. Is there any difference in performance between querying posts by custom fields vs. by taxonomy’s terms? It is oftentimes the case that when we need to attach an extra information to the post, we would store it as a custom field, e.g. using the Advanced Custom Fields plugin. But are there any situations in which it would be better to store it as a term in a custom taxonomy? Let’s dive into WordPress database schema, common SQL queries that are fetching the posts and let’s try to understand which factors have the biggest influence on query performance.

Aperitivo formativo

Durante las próximas semanas vamos a ir publicando material complementario (vídeos, cursos, tutoriales, etc) para que puedas sacarle todo el partido a esta sesión.

Vídeo en WordPress.tv

Ponente

Categorías

WordCamp Sevilla 2019 is over. Check out the next edition!