Using meta tables
The WordPress table structure gives higher priority to meta tables for keeping additional data as key-value pairs. Although meta tables work well in most scenarios, this can become a considerable factor in situations where you need to implement complex select queries and search functionality. Searching for n number of fields means that you create n number of SQL table joins on the metatable. As the number of joins increases, your queries will get slower and slower. In such situations, it's ideal to go with custom tables instead of relying on existing tables.
We have had a brief introduction to the WordPress database and seen the possible ways of using it in web applications. Covering all possible database design and access ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access