SlideShare a Scribd company logo
Submit Search
Upload
WordPress Database: What's behind those 12 tables
Report
Share
Mauricio Gelves
Desarrollador freelance de WordPress, WooCommerce y Frontend at maugelves.com
Follow
•
0 likes
•
726 views
1
of
64
WordPress Database: What's behind those 12 tables
•
0 likes
•
726 views
Report
Share
Download Now
Download to read offline
Internet
Take a deep look at the WordPress database and fall in love with her.
Read more
Mauricio Gelves
Desarrollador freelance de WordPress, WooCommerce y Frontend at maugelves.com
Follow
Recommended
An Introduction to AngularJs Unittesting by
An Introduction to AngularJs Unittesting
Inthra onsap
470 views
•
12 slides
Wrangling the WordPress Template Hierarchy Like a Boss by
Wrangling the WordPress Template Hierarchy Like a Boss
IntrepidRealist
957 views
•
55 slides
Angular js, Yeomon & Grunt by
Angular js, Yeomon & Grunt
Richard Powell
2.3K views
•
42 slides
Mastering Grunt by
Mastering Grunt
Spencer Handley
777 views
•
74 slides
Grunt js and WordPress by
Grunt js and WordPress
WP Australia
1.6K views
•
23 slides
GruntJS + Wordpress by
GruntJS + Wordpress
Leonardo Balter
2.7K views
•
24 slides
More Related Content
Viewers also liked
A Quick and Dirty D3.js Tutorial by
A Quick and Dirty D3.js Tutorial
Young-Ho Kim
1.7K views
•
131 slides
Come migliorare le performance di WordPress con il Visual Composer by
Come migliorare le performance di WordPress con il Visual Composer
liciapelliconi.it
1.2K views
•
24 slides
Javascript testing: tools of the trade by
Javascript testing: tools of the trade
Juanma Orta
193 views
•
21 slides
Using Composer to create manageable WordPress websites by
Using Composer to create manageable WordPress websites
Anna Ladoshkina
1.2K views
•
37 slides
WordPress Plugin Basics by
WordPress Plugin Basics
Amanda Giles
1.8K views
•
17 slides
Php myadmin by
Php myadmin
IDEUCOM TECHNICAL SUPORT NETORKING COMPUTER
4.9K views
•
60 slides
Viewers also liked
(17)
A Quick and Dirty D3.js Tutorial by Young-Ho Kim
A Quick and Dirty D3.js Tutorial
Young-Ho Kim
•
1.7K views
Come migliorare le performance di WordPress con il Visual Composer by liciapelliconi.it
Come migliorare le performance di WordPress con il Visual Composer
liciapelliconi.it
•
1.2K views
Javascript testing: tools of the trade by Juanma Orta
Javascript testing: tools of the trade
Juanma Orta
•
193 views
Using Composer to create manageable WordPress websites by Anna Ladoshkina
Using Composer to create manageable WordPress websites
Anna Ladoshkina
•
1.2K views
WordPress Plugin Basics by Amanda Giles
WordPress Plugin Basics
Amanda Giles
•
1.8K views
Php myadmin by IDEUCOM TECHNICAL SUPORT NETORKING COMPUTER
Php myadmin
IDEUCOM TECHNICAL SUPORT NETORKING COMPUTER
•
4.9K views
Federal reserve by William Daniels
Federal reserve
William Daniels
•
259 views
WordPress Theme Design and Development Workshop - Day 2 by Mizanur Rahaman Mizan
WordPress Theme Design and Development Workshop - Day 2
Mizanur Rahaman Mizan
•
654 views
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ... by LinnAlexandra
Don't Fear the Custom Theme: How to build a custom WordPress theme with only ...
LinnAlexandra
•
2.5K views
To build a WordPress Theme: Wordcamp Denmark 2014 by James Bonham
To build a WordPress Theme: Wordcamp Denmark 2014
James Bonham
•
1.4K views
Build a WordPress theme from HTML5 template @ Telerik by Mario Peshev
Build a WordPress theme from HTML5 template @ Telerik
Mario Peshev
•
11.8K views
10 Must Have WordPress Plugins by Affiliate Summit
10 Must Have WordPress Plugins
Affiliate Summit
•
1.5K views
Top 10 WordPress Plugins by Reem Al-Ashry
Top 10 WordPress Plugins
Reem Al-Ashry
•
1.4K views
Custom Database Queries in WordPress by topher1kenobe
Custom Database Queries in WordPress
topher1kenobe
•
4.9K views
JavaScript Test-Driven Development with Jasmine 2.0 and Karma by Christopher Bartling
JavaScript Test-Driven Development with Jasmine 2.0 and Karma
Christopher Bartling
•
9.9K views
Analisis Kinerja Reksadana Saham Syariah Menggunakan Metode Sharpe, Treynor, ... by Arsyil Hendra Saputra
Analisis Kinerja Reksadana Saham Syariah Menggunakan Metode Sharpe, Treynor, ...
Arsyil Hendra Saputra
•
5.9K views
Hands On Approach To Networking by ayanthi
Hands On Approach To Networking
ayanthi
•
484 views
More from Mauricio Gelves
Introducción a GitFlow by
Introducción a GitFlow
Mauricio Gelves
372 views
•
43 slides
Segui questi 10 passi per diventare Freelance con WordPress by
Segui questi 10 passi per diventare Freelance con WordPress
Mauricio Gelves
230 views
•
26 slides
Simple tricks to improve the performance of your site by
Simple tricks to improve the performance of your site
Mauricio Gelves
321 views
•
22 slides
Gutenberg Blocks Development for Programmers with no time by
Gutenberg Blocks Development for Programmers with no time
Mauricio Gelves
196 views
•
12 slides
WordPress: el mejor amigo para tu emprendimiento by
WordPress: el mejor amigo para tu emprendimiento
Mauricio Gelves
1K views
•
37 slides
Sviluppo dei blocchi di Gutenberg per programmatori senza tempo by
Sviluppo dei blocchi di Gutenberg per programmatori senza tempo
Mauricio Gelves
285 views
•
19 slides
More from Mauricio Gelves
(20)
Introducción a GitFlow by Mauricio Gelves
Introducción a GitFlow
Mauricio Gelves
•
372 views
Segui questi 10 passi per diventare Freelance con WordPress by Mauricio Gelves
Segui questi 10 passi per diventare Freelance con WordPress
Mauricio Gelves
•
230 views
Simple tricks to improve the performance of your site by Mauricio Gelves
Simple tricks to improve the performance of your site
Mauricio Gelves
•
321 views
Gutenberg Blocks Development for Programmers with no time by Mauricio Gelves
Gutenberg Blocks Development for Programmers with no time
Mauricio Gelves
•
196 views
WordPress: el mejor amigo para tu emprendimiento by Mauricio Gelves
WordPress: el mejor amigo para tu emprendimiento
Mauricio Gelves
•
1K views
Sviluppo dei blocchi di Gutenberg per programmatori senza tempo by Mauricio Gelves
Sviluppo dei blocchi di Gutenberg per programmatori senza tempo
Mauricio Gelves
•
285 views
Gutenberg Blocks Development for Programmers with NO time by Mauricio Gelves
Gutenberg Blocks Development for Programmers with NO time
Mauricio Gelves
•
290 views
Flexbox y Grid: Los mejores amigos del maquetador by Mauricio Gelves
Flexbox y Grid: Los mejores amigos del maquetador
Mauricio Gelves
•
668 views
Desarrollo de bloques de Gutenberg para programadores con poco tiempo by Mauricio Gelves
Desarrollo de bloques de Gutenberg para programadores con poco tiempo
Mauricio Gelves
•
458 views
Código Bonito con PHP by Mauricio Gelves
Código Bonito con PHP
Mauricio Gelves
•
534 views
Follow these 10 steps to become a freelancer with WordPress by Mauricio Gelves
Follow these 10 steps to become a freelancer with WordPress
Mauricio Gelves
•
1.7K views
Domina el CSS de tu Web con la ténica BEM (bonito, elegante y molón) by Mauricio Gelves
Domina el CSS de tu Web con la ténica BEM (bonito, elegante y molón)
Mauricio Gelves
•
281 views
10 pasos para convertirte en Freelance con WordPress by Mauricio Gelves
10 pasos para convertirte en Freelance con WordPress
Mauricio Gelves
•
655 views
Gutenberg: Pros and Cons for this big change in WordPress by Mauricio Gelves
Gutenberg: Pros and Cons for this big change in WordPress
Mauricio Gelves
•
322 views
Il database di WordPress: Dodici tabelle che servono per fare di tutto e di più. by Mauricio Gelves
Il database di WordPress: Dodici tabelle che servono per fare di tutto e di più.
Mauricio Gelves
•
328 views
Vive de vacaciones con WordPress by Mauricio Gelves
Vive de vacaciones con WordPress
Mauricio Gelves
•
111 views
Quiero aprender WordPress ¿Por donde empiezo? by Mauricio Gelves
Quiero aprender WordPress ¿Por donde empiezo?
Mauricio Gelves
•
335 views
Vive de tus sueños con WordPress by Mauricio Gelves
Vive de tus sueños con WordPress
Mauricio Gelves
•
299 views
Taller de Iniciación a WordPress by Mauricio Gelves
Taller de Iniciación a WordPress
Mauricio Gelves
•
283 views
La base de datos de WordPress by Mauricio Gelves
La base de datos de WordPress
Mauricio Gelves
•
2.3K views
WordPress Database: What's behind those 12 tables
1.
WordPress Database: What’s behind
those 12 tables? Mauricio Gelves | @maugelves
2.
Do you know
this Masterpiece?
5.
@takisbig Athens, 2016
6.
A love story
8.
Set of columns Data
types Indexes The table anatomy
9.
Table rows
10.
I’m Rebel!
11.
Normalization
12.
Process to avoid: •
Data redundancy • Unnecessary updates • Data integrity problems
16.
Process to avoid: •
Data redundancy • Unnecessary updates • Data integrity problems
19.
WordPress code of
conduct: No political jokes are allowed
20.
UPDATE tbl_students SET president
= '<new president name>' WHERE president = 'Prokopis Pavlopoulos' On every change:
21.
Process to avoid: •
Data redundancy • Unnecessary updates • Data integrity problems
22.
Normalized tables: FK’s (Foreign Keys)
23.
Is WordPress Rebel?
24.
• wp-posts • wp-term-taxonomy
28.
33,3333333333333333333333333333333333333 333333333333333333333333333333333333333 333333333333333333333333333333333333333 333333333333333333333333333333333333333 333333333333333333333333333333333333333 333333333333333333333333333333333333333 333333333333333333333333333333333333333 333333333333333333333333333333333333333 333333333333333333333333333333333333333 333333333333333333333333333333333333333 333333333333333333333333333333333333333 333333333333333333333333333333333333…%
29.
Why WordPress powers 27%
of all websites?
30.
SHE’S FLEXIBLE
31.
KEY => VALUE
32.
wp_posts WordPress Heart.
33.
wp_posts
34.
Where’s the rest
of the information?
35.
Meta Tables wp_posts =>
wp_postmeta wp_users => wp_usermeta wp_comments => wp_commentmeta wp_terms => wp_termmeta
36.
KEY VALUE=> wp_posts wp_postmeta
37.
KEY VALUE=> wp_users wp_usermeta
38.
SHE ’S ORGANIZED
39.
KEY VALUE=> wp_options
40.
SHE’S ADAPTABLE
41.
Taxonomies
42.
Taxonomies Terms list Sets the taxonomy
name
43.
Es muy fácil
comunicarse con ella: Diapositiva: una mujer con un teléfono It’s easy to talk to her
44.
SQL Structured Query Language
45.
Query structure: Which column/s? Which
table/s? Should we filter the search?
46.
Do we have
to know SQL to work with WordPress?
48.
WordPress Functions:
49.
What if we
need Meta values?
50.
WordPress Functions:
51.
and for more complex
searches?
52.
WP_Query
56.
CUSTOM TABLES How and
why?
57.
Why Custom Tables?: •
Efficiency (Inner joins) • Efficiency (calculated fields) • Space (uncompleted fields) • Data security
58.
How to create
a Custom Tables?: • Create it on plugin/theme activation
60.
How to create
a Custom Tables?: • Create it on plugin/theme activation • UI implementation with WP_List class
62.
http://wpengineer.com/2426/wp_list_table-a-step-by-step-guide/
63.
Because of this
and more I’m in love with the WordPress database.
64.
Thank you! Mauricio Gelves @maugelves
- maugelves.com