SlideShare una empresa de Scribd logo
1 de 21
info@dsero.com
                 http://www.dsero.com

The Anti AdBlock Creators
The Original Site…
With AdBlock
dSero Anti AdBlock is The Solution
The Engine Behind this Site is MySQL
What WordPress is Made Of?




                                                                                                       Hardware
Network



                              Apache

                                                               MySQL

                                                                                               Linux
          PHP




            http://www.perforce.com/blog/110607/how-do-they-do-it-googles-one-server-trick
            http://kleanpc.com/cms/services/linux-implementations/
            http://www.w3resource.com/mysql/mysql-tutorials.php
            http://aserverblog.blogspot.co.il/2012/02/apache-releases-v2222-for-apache-http.html
            http://www.makemoneyinlife.com/make-money-with-php-scripts-and-programming.html
            http://www.glosecgroup.com/index.php?pid=2&menu=134&open=6&item_id=0&div=5
What Our Database is made of?
Name                    Engine Rows Row (B) Data (KB) Index (KB)
wp_commentmeta          InnoDB   297    496        147           32
wp_comments             InnoDB    99    827         81           65
wp_links                InnoDB     7 2340           16           16
wp_options              InnoDB   171 12743        2179           16
wp_postmeta             InnoDB   340    289         98           32
wp_posts                InnoDB   689 3448         2375         163
wp_term_relationships   InnoDB    74    221         16           16
wp_term_taxonomy        InnoDB    38    431         16           32
wp_terms                InnoDB    38    431         16           32
wp_usermeta             InnoDB    61    268         16           32
wp_users                InnoDB     3 5461           16           32
What wp_post is made of?

post_type          #         %
revision               501       84%
attachment              63       11%
post                    21        4%
nav_menu_item            5        1%
page                     5        1%
#1: Consider Avoiding Revisions

 wp-config.php
   define('WP_POST_REVISIONS', false);
 MySQL
   DELETE
    FROM wp_posts
    WHERE post_type = "revision";
#1: Consider Avoiding Revisions

 wp-config.php
   define('WP_POST_REVISIONS', false);
 MySQL
   DELETE
    FROM wp_posts
    WHERE post_type = "revision";
#2: Optimize RAM Usage

 Preferred: SizeOf(database) < SizeOf(RAM)
 innodb_buffer_pool_size
   50-70% of your RAM
Do We Utilize the Cache?

 SHOW STATUS LIKE 'Qcache%';
Qcache_free_blocks        718
Qcache_free_memory        13004008
Qcache_hits               780759
Qcache_inserts            56292
Qcache_lowmem_prunes      0
Qcache_not_cached         3711
Qcache_queries_in_cache   1715
Qcache_total_blocks       4344
#3: Cache Queries

 query_cache_type = 1
 query_cache_limit = 1M
 query_cache_size = 16M
#4: Buffer Optimization

 key_reads/key_read_requests < 0.01
 If not
   Increase Key Buffer
#5: CPU Optimization

 thread_concurrency = 2 X #(CPU Cores)
#7: Run MySQLTuner.pl +
        Tuning-Premier.sh




http://www.farhanfaisal.com/2010/11/fine-tuning-apache-and-mysql-for-performance-and-security/
#8: Enable Slow Query

 Regular
 Joins w/o Indexes

mysql> explain SELECT COUNT(*), post_type FROM wp_posts GROUP BY post_type;
+----+-------------+----------+-------+---------------+------------------+---------+------+------+-------------
+
| id | select_type | table    | type | possible_keys | key               | key_len | ref | rows | Extra
+----+-------------+----------+-------+---------------+------------------+---------+------+------+-------------
+
| 1 | SIMPLE       | wp_posts | index | NULL          | type_status_date | 140     | NULL | 693 | Using index
+----+-------------+----------+-------+---------------+------------------+---------+------+------+-------------
+
1 row in set (0.02 sec)
#9: Multiply Database Servers
#10: BackUp

   Consistent
   mysqldump
   Slave Backup
   XtraDB
#11: Security

 Root
 User w/ Permissions to WordPress DB only
 Keep FireWall closed:
   3306
   Only relevant IPs
info@dsero.com
                      http://www.dsero.com

Join the Battle for the Blogosphere!

Más contenido relacionado

La actualidad más candente

10 things every developer should know about their database to run word press ...
10 things every developer should know about their database to run word press ...10 things every developer should know about their database to run word press ...
10 things every developer should know about their database to run word press ...Otto Kekäläinen
 
Css hacks for different browsers
Css hacks for different browsersCss hacks for different browsers
Css hacks for different browsersSavitha Chandra
 
8 Ways to Hack a WordPress website
8 Ways to Hack a WordPress website8 Ways to Hack a WordPress website
8 Ways to Hack a WordPress websiteSiteGround.com
 
Hacktivity2011 be ef-preso_micheleorru
Hacktivity2011 be ef-preso_micheleorruHacktivity2011 be ef-preso_micheleorru
Hacktivity2011 be ef-preso_micheleorruMichele Orru
 
FMCakeMixってウマいの?
FMCakeMixってウマいの?FMCakeMixってウマいの?
FMCakeMixってウマいの?Kentaro Suzuki
 
WordPress Optimization & Security - LAC 2013, London
WordPress Optimization & Security - LAC 2013, LondonWordPress Optimization & Security - LAC 2013, London
WordPress Optimization & Security - LAC 2013, LondonBastian Grimm
 
AEM WITH MONGODB
AEM WITH MONGODBAEM WITH MONGODB
AEM WITH MONGODBNate Nelson
 
Optimizing Drupal Performance (English)
Optimizing Drupal Performance (English)Optimizing Drupal Performance (English)
Optimizing Drupal Performance (English)Timur Kamanin
 
How to install and configure lamp (linux,apache mysql mariadb,php) with jooml...
How to install and configure lamp (linux,apache mysql mariadb,php) with jooml...How to install and configure lamp (linux,apache mysql mariadb,php) with jooml...
How to install and configure lamp (linux,apache mysql mariadb,php) with jooml...CloudMinister Technologies Pvt. Ltd
 
Optimizing Drupal Performance. Tips and Tricks
Optimizing Drupal Performance. Tips and TricksOptimizing Drupal Performance. Tips and Tricks
Optimizing Drupal Performance. Tips and TricksTimur Kamanin
 
Speed Up Wordpress, Wordpress Horsepower
Speed Up Wordpress, Wordpress HorsepowerSpeed Up Wordpress, Wordpress Horsepower
Speed Up Wordpress, Wordpress HorsepowerRoss Johnson
 
High performance web server
High performance web serverHigh performance web server
High performance web serverWataru OKAMOTO
 
HTTPS + Let's Encrypt
HTTPS + Let's EncryptHTTPS + Let's Encrypt
HTTPS + Let's EncryptWalter Ebert
 
Top 10 WordPress Plugins
Top 10 WordPress PluginsTop 10 WordPress Plugins
Top 10 WordPress PluginsReem Al-Ashry
 
Die .htaccess richtig nutzen
Die .htaccess richtig nutzenDie .htaccess richtig nutzen
Die .htaccess richtig nutzenWalter Ebert
 
EasyEngine - Command-Line tool to manage WordPress Sites on Nginx
EasyEngine - Command-Line tool to manage WordPress Sites on NginxEasyEngine - Command-Line tool to manage WordPress Sites on Nginx
EasyEngine - Command-Line tool to manage WordPress Sites on NginxrtCamp
 
Top 10 WordPress Plugins
Top 10 WordPress PluginsTop 10 WordPress Plugins
Top 10 WordPress PluginsReem Al-Ashry
 

La actualidad más candente (20)

10 things every developer should know about their database to run word press ...
10 things every developer should know about their database to run word press ...10 things every developer should know about their database to run word press ...
10 things every developer should know about their database to run word press ...
 
Scaling WordPress
Scaling WordPressScaling WordPress
Scaling WordPress
 
Css hacks for different browsers
Css hacks for different browsersCss hacks for different browsers
Css hacks for different browsers
 
8 Ways to Hack a WordPress website
8 Ways to Hack a WordPress website8 Ways to Hack a WordPress website
8 Ways to Hack a WordPress website
 
Hacktivity2011 be ef-preso_micheleorru
Hacktivity2011 be ef-preso_micheleorruHacktivity2011 be ef-preso_micheleorru
Hacktivity2011 be ef-preso_micheleorru
 
FMCakeMixってウマいの?
FMCakeMixってウマいの?FMCakeMixってウマいの?
FMCakeMixってウマいの?
 
Web server
Web serverWeb server
Web server
 
WordPress Optimization & Security - LAC 2013, London
WordPress Optimization & Security - LAC 2013, LondonWordPress Optimization & Security - LAC 2013, London
WordPress Optimization & Security - LAC 2013, London
 
AEM WITH MONGODB
AEM WITH MONGODBAEM WITH MONGODB
AEM WITH MONGODB
 
Optimizing Drupal Performance (English)
Optimizing Drupal Performance (English)Optimizing Drupal Performance (English)
Optimizing Drupal Performance (English)
 
How to install and configure lamp (linux,apache mysql mariadb,php) with jooml...
How to install and configure lamp (linux,apache mysql mariadb,php) with jooml...How to install and configure lamp (linux,apache mysql mariadb,php) with jooml...
How to install and configure lamp (linux,apache mysql mariadb,php) with jooml...
 
Optimizing Drupal Performance. Tips and Tricks
Optimizing Drupal Performance. Tips and TricksOptimizing Drupal Performance. Tips and Tricks
Optimizing Drupal Performance. Tips and Tricks
 
Matt doyleppt
Matt doylepptMatt doyleppt
Matt doyleppt
 
Speed Up Wordpress, Wordpress Horsepower
Speed Up Wordpress, Wordpress HorsepowerSpeed Up Wordpress, Wordpress Horsepower
Speed Up Wordpress, Wordpress Horsepower
 
High performance web server
High performance web serverHigh performance web server
High performance web server
 
HTTPS + Let's Encrypt
HTTPS + Let's EncryptHTTPS + Let's Encrypt
HTTPS + Let's Encrypt
 
Top 10 WordPress Plugins
Top 10 WordPress PluginsTop 10 WordPress Plugins
Top 10 WordPress Plugins
 
Die .htaccess richtig nutzen
Die .htaccess richtig nutzenDie .htaccess richtig nutzen
Die .htaccess richtig nutzen
 
EasyEngine - Command-Line tool to manage WordPress Sites on Nginx
EasyEngine - Command-Line tool to manage WordPress Sites on NginxEasyEngine - Command-Line tool to manage WordPress Sites on Nginx
EasyEngine - Command-Line tool to manage WordPress Sites on Nginx
 
Top 10 WordPress Plugins
Top 10 WordPress PluginsTop 10 WordPress Plugins
Top 10 WordPress Plugins
 

Destacado

The 10 Must-Have Plugins for Your Sites
The 10 Must-Have Plugins for Your SitesThe 10 Must-Have Plugins for Your Sites
The 10 Must-Have Plugins for Your Sitesdsero
 
WordPress What Ya Need to Know: Branded
WordPress What Ya Need to Know: BrandedWordPress What Ya Need to Know: Branded
WordPress What Ya Need to Know: Brandeddsero
 
Transposh
TransposhTransposh
Transposhdsero
 
WordPress SEO
WordPress SEOWordPress SEO
WordPress SEOdsero
 
How to create and promote a drupal anti ad block module
How to create and promote a drupal anti ad block moduleHow to create and promote a drupal anti ad block module
How to create and promote a drupal anti ad block moduledsero
 
Wix Apps in WP TLV
Wix Apps in WP TLVWix Apps in WP TLV
Wix Apps in WP TLVdsero
 

Destacado (6)

The 10 Must-Have Plugins for Your Sites
The 10 Must-Have Plugins for Your SitesThe 10 Must-Have Plugins for Your Sites
The 10 Must-Have Plugins for Your Sites
 
WordPress What Ya Need to Know: Branded
WordPress What Ya Need to Know: BrandedWordPress What Ya Need to Know: Branded
WordPress What Ya Need to Know: Branded
 
Transposh
TransposhTransposh
Transposh
 
WordPress SEO
WordPress SEOWordPress SEO
WordPress SEO
 
How to create and promote a drupal anti ad block module
How to create and promote a drupal anti ad block moduleHow to create and promote a drupal anti ad block module
How to create and promote a drupal anti ad block module
 
Wix Apps in WP TLV
Wix Apps in WP TLVWix Apps in WP TLV
Wix Apps in WP TLV
 

Similar a MySQL Tips for WordPress

MySQL User Group NL - MySQL 8
MySQL User Group NL - MySQL 8MySQL User Group NL - MySQL 8
MySQL User Group NL - MySQL 8Frederic Descamps
 
Optimizing MariaDB for maximum performance
Optimizing MariaDB for maximum performanceOptimizing MariaDB for maximum performance
Optimizing MariaDB for maximum performanceMariaDB plc
 
Speeding up your WordPress site - WordCamp Hamilton 2015
Speeding up your WordPress site - WordCamp Hamilton 2015Speeding up your WordPress site - WordCamp Hamilton 2015
Speeding up your WordPress site - WordCamp Hamilton 2015Alan Lok
 
How to Contribute Code to MySQL?
How to Contribute Code to MySQL?How to Contribute Code to MySQL?
How to Contribute Code to MySQL?Thava Alagu
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalabilityWim Godden
 
Site Performance - From Pinto to Ferrari
Site Performance - From Pinto to FerrariSite Performance - From Pinto to Ferrari
Site Performance - From Pinto to FerrariJoseph Scott
 
MySQL 5.7 - What's new and How to upgrade
MySQL 5.7 - What's new and How to upgradeMySQL 5.7 - What's new and How to upgrade
MySQL 5.7 - What's new and How to upgradeAbel Flórez
 
MariaDB 5.5 and what comes next - Percona Live NYC 2012
MariaDB 5.5 and what comes next - Percona Live NYC 2012MariaDB 5.5 and what comes next - Percona Live NYC 2012
MariaDB 5.5 and what comes next - Percona Live NYC 2012Colin Charles
 
Caching and tuning fun for high scalability @ FOSDEM 2012
Caching and tuning fun for high scalability @ FOSDEM 2012Caching and tuning fun for high scalability @ FOSDEM 2012
Caching and tuning fun for high scalability @ FOSDEM 2012Wim Godden
 
MySQL Scaling Presentation
MySQL Scaling PresentationMySQL Scaling Presentation
MySQL Scaling PresentationTommy Falgout
 
Sql php-vibrant course-mumbai(1)
Sql php-vibrant course-mumbai(1)Sql php-vibrant course-mumbai(1)
Sql php-vibrant course-mumbai(1)vibrantuser
 
MySQL 5.7 - What's new, How to upgrade and Document Store
MySQL 5.7 - What's new, How to upgrade and Document StoreMySQL 5.7 - What's new, How to upgrade and Document Store
MySQL 5.7 - What's new, How to upgrade and Document StoreAbel Flórez
 
Intro to PECL/mysqlnd_ms (4/7/2011)
Intro to PECL/mysqlnd_ms (4/7/2011)Intro to PECL/mysqlnd_ms (4/7/2011)
Intro to PECL/mysqlnd_ms (4/7/2011)Chris Barber
 
Benefit of CodeIgniter php framework
Benefit of CodeIgniter php frameworkBenefit of CodeIgniter php framework
Benefit of CodeIgniter php frameworkBo-Yi Wu
 
Php classes in mumbai
Php classes in mumbaiPhp classes in mumbai
Php classes in mumbaiaadi Surve
 
ProxySQL for MySQL
ProxySQL for MySQLProxySQL for MySQL
ProxySQL for MySQLMydbops
 
Caching and tuning fun for high scalability @ PHPTour
Caching and tuning fun for high scalability @ PHPTourCaching and tuning fun for high scalability @ PHPTour
Caching and tuning fun for high scalability @ PHPTourWim Godden
 
Deep Dive Spider Engine
Deep Dive Spider EngineDeep Dive Spider Engine
Deep Dive Spider EngineI Goo Lee
 

Similar a MySQL Tips for WordPress (20)

MySQL User Group NL - MySQL 8
MySQL User Group NL - MySQL 8MySQL User Group NL - MySQL 8
MySQL User Group NL - MySQL 8
 
Optimizing MariaDB for maximum performance
Optimizing MariaDB for maximum performanceOptimizing MariaDB for maximum performance
Optimizing MariaDB for maximum performance
 
Speeding up your WordPress site - WordCamp Hamilton 2015
Speeding up your WordPress site - WordCamp Hamilton 2015Speeding up your WordPress site - WordCamp Hamilton 2015
Speeding up your WordPress site - WordCamp Hamilton 2015
 
How to Contribute Code to MySQL?
How to Contribute Code to MySQL?How to Contribute Code to MySQL?
How to Contribute Code to MySQL?
 
Caching and tuning fun for high scalability
Caching and tuning fun for high scalabilityCaching and tuning fun for high scalability
Caching and tuning fun for high scalability
 
Site Performance - From Pinto to Ferrari
Site Performance - From Pinto to FerrariSite Performance - From Pinto to Ferrari
Site Performance - From Pinto to Ferrari
 
MySQL 5.7 - What's new and How to upgrade
MySQL 5.7 - What's new and How to upgradeMySQL 5.7 - What's new and How to upgrade
MySQL 5.7 - What's new and How to upgrade
 
MariaDB 5.5 and what comes next - Percona Live NYC 2012
MariaDB 5.5 and what comes next - Percona Live NYC 2012MariaDB 5.5 and what comes next - Percona Live NYC 2012
MariaDB 5.5 and what comes next - Percona Live NYC 2012
 
Caching and tuning fun for high scalability @ FOSDEM 2012
Caching and tuning fun for high scalability @ FOSDEM 2012Caching and tuning fun for high scalability @ FOSDEM 2012
Caching and tuning fun for high scalability @ FOSDEM 2012
 
MySQL Scaling Presentation
MySQL Scaling PresentationMySQL Scaling Presentation
MySQL Scaling Presentation
 
Sql php-vibrant course-mumbai(1)
Sql php-vibrant course-mumbai(1)Sql php-vibrant course-mumbai(1)
Sql php-vibrant course-mumbai(1)
 
MySQL 5.7 - What's new, How to upgrade and Document Store
MySQL 5.7 - What's new, How to upgrade and Document StoreMySQL 5.7 - What's new, How to upgrade and Document Store
MySQL 5.7 - What's new, How to upgrade and Document Store
 
Intro to PECL/mysqlnd_ms (4/7/2011)
Intro to PECL/mysqlnd_ms (4/7/2011)Intro to PECL/mysqlnd_ms (4/7/2011)
Intro to PECL/mysqlnd_ms (4/7/2011)
 
PHP FUNCTIONS
PHP FUNCTIONSPHP FUNCTIONS
PHP FUNCTIONS
 
MySQLinsanity
MySQLinsanityMySQLinsanity
MySQLinsanity
 
Benefit of CodeIgniter php framework
Benefit of CodeIgniter php frameworkBenefit of CodeIgniter php framework
Benefit of CodeIgniter php framework
 
Php classes in mumbai
Php classes in mumbaiPhp classes in mumbai
Php classes in mumbai
 
ProxySQL for MySQL
ProxySQL for MySQLProxySQL for MySQL
ProxySQL for MySQL
 
Caching and tuning fun for high scalability @ PHPTour
Caching and tuning fun for high scalability @ PHPTourCaching and tuning fun for high scalability @ PHPTour
Caching and tuning fun for high scalability @ PHPTour
 
Deep Dive Spider Engine
Deep Dive Spider EngineDeep Dive Spider Engine
Deep Dive Spider Engine
 

Más de dsero

Responsive Sites with WordPress
Responsive Sites with WordPressResponsive Sites with WordPress
Responsive Sites with WordPressdsero
 
SideLang 5min Presentation @ WP TLV
SideLang 5min Presentation @ WP TLVSideLang 5min Presentation @ WP TLV
SideLang 5min Presentation @ WP TLVdsero
 
Transposh WPTLV
Transposh WPTLVTransposh WPTLV
Transposh WPTLVdsero
 
One Hour Translation at WPTLV
One Hour Translation at WPTLVOne Hour Translation at WPTLV
One Hour Translation at WPTLVdsero
 
Engage Your Readers
Engage Your ReadersEngage Your Readers
Engage Your Readersdsero
 
G+ for Bloggers
G+ for BloggersG+ for Bloggers
G+ for Bloggersdsero
 
RightAd Lecture
RightAd LectureRightAd Lecture
RightAd Lecturedsero
 

Más de dsero (7)

Responsive Sites with WordPress
Responsive Sites with WordPressResponsive Sites with WordPress
Responsive Sites with WordPress
 
SideLang 5min Presentation @ WP TLV
SideLang 5min Presentation @ WP TLVSideLang 5min Presentation @ WP TLV
SideLang 5min Presentation @ WP TLV
 
Transposh WPTLV
Transposh WPTLVTransposh WPTLV
Transposh WPTLV
 
One Hour Translation at WPTLV
One Hour Translation at WPTLVOne Hour Translation at WPTLV
One Hour Translation at WPTLV
 
Engage Your Readers
Engage Your ReadersEngage Your Readers
Engage Your Readers
 
G+ for Bloggers
G+ for BloggersG+ for Bloggers
G+ for Bloggers
 
RightAd Lecture
RightAd LectureRightAd Lecture
RightAd Lecture
 

Último

(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 

Último (20)

(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 

MySQL Tips for WordPress

  • 1. info@dsero.com http://www.dsero.com The Anti AdBlock Creators
  • 4. dSero Anti AdBlock is The Solution
  • 5. The Engine Behind this Site is MySQL
  • 6. What WordPress is Made Of? Hardware Network Apache MySQL Linux PHP http://www.perforce.com/blog/110607/how-do-they-do-it-googles-one-server-trick http://kleanpc.com/cms/services/linux-implementations/ http://www.w3resource.com/mysql/mysql-tutorials.php http://aserverblog.blogspot.co.il/2012/02/apache-releases-v2222-for-apache-http.html http://www.makemoneyinlife.com/make-money-with-php-scripts-and-programming.html http://www.glosecgroup.com/index.php?pid=2&menu=134&open=6&item_id=0&div=5
  • 7. What Our Database is made of? Name Engine Rows Row (B) Data (KB) Index (KB) wp_commentmeta InnoDB 297 496 147 32 wp_comments InnoDB 99 827 81 65 wp_links InnoDB 7 2340 16 16 wp_options InnoDB 171 12743 2179 16 wp_postmeta InnoDB 340 289 98 32 wp_posts InnoDB 689 3448 2375 163 wp_term_relationships InnoDB 74 221 16 16 wp_term_taxonomy InnoDB 38 431 16 32 wp_terms InnoDB 38 431 16 32 wp_usermeta InnoDB 61 268 16 32 wp_users InnoDB 3 5461 16 32
  • 8. What wp_post is made of? post_type # % revision 501 84% attachment 63 11% post 21 4% nav_menu_item 5 1% page 5 1%
  • 9. #1: Consider Avoiding Revisions  wp-config.php  define('WP_POST_REVISIONS', false);  MySQL  DELETE FROM wp_posts WHERE post_type = "revision";
  • 10. #1: Consider Avoiding Revisions  wp-config.php  define('WP_POST_REVISIONS', false);  MySQL  DELETE FROM wp_posts WHERE post_type = "revision";
  • 11. #2: Optimize RAM Usage  Preferred: SizeOf(database) < SizeOf(RAM)  innodb_buffer_pool_size  50-70% of your RAM
  • 12. Do We Utilize the Cache?  SHOW STATUS LIKE 'Qcache%'; Qcache_free_blocks 718 Qcache_free_memory 13004008 Qcache_hits 780759 Qcache_inserts 56292 Qcache_lowmem_prunes 0 Qcache_not_cached 3711 Qcache_queries_in_cache 1715 Qcache_total_blocks 4344
  • 13. #3: Cache Queries  query_cache_type = 1  query_cache_limit = 1M  query_cache_size = 16M
  • 14. #4: Buffer Optimization  key_reads/key_read_requests < 0.01  If not  Increase Key Buffer
  • 15. #5: CPU Optimization  thread_concurrency = 2 X #(CPU Cores)
  • 16. #7: Run MySQLTuner.pl + Tuning-Premier.sh http://www.farhanfaisal.com/2010/11/fine-tuning-apache-and-mysql-for-performance-and-security/
  • 17. #8: Enable Slow Query  Regular  Joins w/o Indexes mysql> explain SELECT COUNT(*), post_type FROM wp_posts GROUP BY post_type; +----+-------------+----------+-------+---------------+------------------+---------+------+------+------------- + | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra +----+-------------+----------+-------+---------------+------------------+---------+------+------+------------- + | 1 | SIMPLE | wp_posts | index | NULL | type_status_date | 140 | NULL | 693 | Using index +----+-------------+----------+-------+---------------+------------------+---------+------+------+------------- + 1 row in set (0.02 sec)
  • 19. #10: BackUp  Consistent  mysqldump  Slave Backup  XtraDB
  • 20. #11: Security  Root  User w/ Permissions to WordPress DB only  Keep FireWall closed:  3306  Only relevant IPs
  • 21. info@dsero.com http://www.dsero.com Join the Battle for the Blogosphere!

Notas del editor

  1. http://www.prelovac.com/vladimir/wordpress-optimization-guide