SlideShare ist ein Scribd-Unternehmen logo
1 von 24
© 2014 Netstarter
● Many Features 
● Complex Architecture 
● Flexible Development 
Performan 
ce 
© 2014 Netstarter
How to Speed up your Magento 
Site 
© 2014 Netstarter
Databas 
e 
© 2014 Netstarter
Case Study (3rd Party 
Product Listing PPargoej eIsc Rt)EALLY Slow, 
Client is Unhappy, 
SEO issues 
Default Magento Client’s Magento 
System 
response time 
TTFB 
(without FPC) 
0.9 s 7 sec 
© 2014 Netstarter
His Questions 
● Is it a problem of Magento ? 
● 150,000 Products now, is it a problem ? 
● Do we need additional CPU and RAM or 
Bandwidth ? 
● Any issue with the configuration ? 
● Someone has Hacked our System ? 
1 
Query 
© 2014 Netstarter
Data Types
. 
 INT, TINYINT,VARCHAR etc
. 
 INT column to store value from 1-10 
 VARCHAR to store Integers 
What is the Rationale then ? 
© 2014 Netstarter
Spaghetti Query 
How can I do this with a single 
query? 
It’s not always better, 
Why? 
‱ Difficult to do changes 
‱ Cannot use Mysql cache 
‱ Mysql poor performance with some 
queries 
© 2014 Netstarter
Spaghetti Query (Contd.) 
‱ Hide dangerous issues - Better to Divide 
and conquer 
What is the Rationale then ? 
© 2014 Netstarter
Use of Indexes Use Indexes with a plan, mistakes that we do.. 
● Define no indexes, or not enough indexes 
● Defining too many indexes 
● Running queries that no indexes can be used 
○ SELECT * FROM table WHERE column LIKE 
‘%test%’ 
What is the Rationale then ? 
© 2014 Netstarter
Monitor Your Database 
● Check the slow query log (in MySql) 
● Use EXPLAIN in Mysql to Check the Query Execution 
Path 
● Rebuild Indexes : OPTIMIZE TABLE tbl_name 
© 2014 Netstarter
Tools 
● pt-index-usage 
● pt-query-digest (Slow Query) 
There are many other
.. 
© 2014 Netstarter
Achievement 
‱ Listing page now loads within 1.5 
seconds 
‱ 85% Gain 
© 2014 Netstarter
eCommerce Site 
Performance 
‱ Site performance directly affects 
conversion rate 
‱ eCommerce sites has a lot of contents 
and interactions 
http://venturebeat.com/http://venturebeat.com/2013/03/26/speed-bump-load-times-at-top-2000-e-commerce-sites-down-22-in-one-year-infographic/ 
http://www.yottaa.com/blog/bid/286821/eCommerce-and-Website-Performance-A-Look-Into-the-Industry © 2014 Netstarter
Backend Caching 
● Keeps prepared data 
● Minimizes database queries (Reduce database 
load) 
What Default Magento Provides
 
● Magento Cache 
● Enterprise Edition comes with built in Full Page 
Cache (FPC) 
● Default caching engine is the SLOW File System 
http://cdn.turnkeye.com/media/wysiwyg/services/performance/performance.png © 2014 Netstarter
Optimized Caching Alternative 01: 
Memcached 
● Free & open source 
● key-value based object caching 
● Configured as 1st level fast cache for Magento 
Limitations 
● Doesn’t support tag based caching 
● Database is used as the 2nd level cache 
● No replication method implemented 
http://memcached.org/ 
© 2014 Netstarter
Optimized Caching Alternative 02: 
Redis 
● Free & open source 
● Magento officially recommend Redis 
● For Enterprise 1.13.x and Community 1.8.x Redis is 
built in. 
Why it is so Good? 
● Supports tag-based caching/cleanup 
● Can work without DB (core_cache/core_cache_tag) tables 
should stay empty 
● Supports on-disk save and master/slave replication. 
http://redis.io/images/redis-logo.svg 
https://www.byte.nl/blog/wp-content/uploads/Redis-caching.jpg 
© 2014 Netstarter
Getting the Good of Both - 
Netstarter Way ● Cache and Full Page Cache - Redis 
○ Supports Tag based caching 
● User Session Storage - Memcached 
○ Key/Value storage system fits sessions 
○ Little bit faster than Redis 
© 2014 Netstarter
Op-Code Caching 
● Accelerates PHP execution 
● No side effects other than extra memory usage 
● Recommended for Production environment 
Which Op-Code Cache? 
● APC (Alternative PHP Cache) 
● Xcache 
● Zend OpCache Bundled with PHP 5.5.0 and later 
© 2014 Netstarter
Content Delivery 
Network (CDN) 
‱ A network of distributed servers deliver content 
based on the geographic locations of the user 
‱ Reduce the load on the main server 
© 2014 Netstarter
General Tips 
Further Quest for 
Performance 
● Proper Server settings 
● Enable Magento Flat Catalog 
● Varnish Cache - A Reputed Cache backend 
● Host in the country where your customers are 
● Minify and Merge Js and CSS 
● Enable Gzip Compression in htaccess. 
● Minimize redirects 
● Have the site W3C compliant. Errors slow down the 
browser 
● Optimize images for web 
● Use CSS Sprites 
© 2014 Netstarter
Keep in Touch 
● Check your page load with Magento 
Profiler 
● AOE Profiler will be a better option 
● Use other web page optimization tools 
● Use a server performance analyzer New 
Relic 
© 2014 Netstarter
Take Away 
Design Develop Test 
- for - Performanc 
© 2014 Netstarter
Thank 
You! 
© 2014 Netstarter

Weitere Àhnliche Inhalte

Was ist angesagt?

Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...
Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...
Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...ResellerClub
 
Caching in Drupal 8
Caching in Drupal 8Caching in Drupal 8
Caching in Drupal 8valuebound
 
Introduction To Catalyst
Introduction To CatalystIntroduction To Catalyst
Introduction To CatalystMarcus Ramberg
 
Tips To Increase The Speed Of Drupal 8 Websites
Tips To Increase The Speed Of Drupal 8 WebsitesTips To Increase The Speed Of Drupal 8 Websites
Tips To Increase The Speed Of Drupal 8 WebsitesInternetDevels
 
Drupal Performance and Scaling
Drupal Performance and ScalingDrupal Performance and Scaling
Drupal Performance and ScalingGerald Villorente
 
getting started with varnish
getting started with varnishgetting started with varnish
getting started with varnishVarnish Software
 
QA Lab in the Cloud
QA Lab in the CloudQA Lab in the Cloud
QA Lab in the CloudWill Iverson
 
Speed up your site with Varnish
Speed up your site with VarnishSpeed up your site with Varnish
Speed up your site with VarnishSimon Jones
 
Webinar: StorPool and WHIR - better storage, better business
Webinar: StorPool and WHIR - better storage, better businessWebinar: StorPool and WHIR - better storage, better business
Webinar: StorPool and WHIR - better storage, better businessStorPool Storage
 
T3CMD19 - Day 2 - Performance
T3CMD19 - Day 2 - PerformanceT3CMD19 - Day 2 - Performance
T3CMD19 - Day 2 - PerformanceTYPO3 GmbH
 

Was ist angesagt? (14)

Caching 101
Caching 101Caching 101
Caching 101
 
Boozt.com Use Case
Boozt.com Use CaseBoozt.com Use Case
Boozt.com Use Case
 
Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...
Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...
Ctrl+F5 Ahmedabad, 2017 - BOOST THE PERFORMANCE OF WORDPRESS WEBSITES by Prat...
 
Caching in Drupal 8
Caching in Drupal 8Caching in Drupal 8
Caching in Drupal 8
 
Web hosting
Web hostingWeb hosting
Web hosting
 
Introduction To Catalyst
Introduction To CatalystIntroduction To Catalyst
Introduction To Catalyst
 
Tips To Increase The Speed Of Drupal 8 Websites
Tips To Increase The Speed Of Drupal 8 WebsitesTips To Increase The Speed Of Drupal 8 Websites
Tips To Increase The Speed Of Drupal 8 Websites
 
Drupal Performance and Scaling
Drupal Performance and ScalingDrupal Performance and Scaling
Drupal Performance and Scaling
 
Optimize
OptimizeOptimize
Optimize
 
getting started with varnish
getting started with varnishgetting started with varnish
getting started with varnish
 
QA Lab in the Cloud
QA Lab in the CloudQA Lab in the Cloud
QA Lab in the Cloud
 
Speed up your site with Varnish
Speed up your site with VarnishSpeed up your site with Varnish
Speed up your site with Varnish
 
Webinar: StorPool and WHIR - better storage, better business
Webinar: StorPool and WHIR - better storage, better businessWebinar: StorPool and WHIR - better storage, better business
Webinar: StorPool and WHIR - better storage, better business
 
T3CMD19 - Day 2 - Performance
T3CMD19 - Day 2 - PerformanceT3CMD19 - Day 2 - Performance
T3CMD19 - Day 2 - Performance
 

Ähnlich wie How to speed up Your Magento Site

MySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disksMySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disksDave Stokes
 
Ad109 - XPages Performance and Scalability
Ad109 - XPages Performance and ScalabilityAd109 - XPages Performance and Scalability
Ad109 - XPages Performance and Scalabilityddrschiw
 
NetApp IT Efficiencies Gained with Flash, NetApp ONTAP, OnCommand Insight, Al...
NetApp IT Efficiencies Gained with Flash, NetApp ONTAP, OnCommand Insight, Al...NetApp IT Efficiencies Gained with Flash, NetApp ONTAP, OnCommand Insight, Al...
NetApp IT Efficiencies Gained with Flash, NetApp ONTAP, OnCommand Insight, Al...NetApp
 
Silverstripe at scale - design & architecture for silverstripe applications
Silverstripe at scale - design & architecture for silverstripe applicationsSilverstripe at scale - design & architecture for silverstripe applications
Silverstripe at scale - design & architecture for silverstripe applicationsBrettTasker
 
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...I-Verve Inc
 
Training Webinar: Detect Performance Bottlenecks of Applications
Training Webinar: Detect Performance Bottlenecks of ApplicationsTraining Webinar: Detect Performance Bottlenecks of Applications
Training Webinar: Detect Performance Bottlenecks of ApplicationsOutSystems
 
Drupal 7 performance and optimization
Drupal 7 performance and optimizationDrupal 7 performance and optimization
Drupal 7 performance and optimizationShafqat Hussain
 
20 tips for website performance
20 tips for website performance20 tips for website performance
20 tips for website performanceAndrew Siemer
 
Mage uk-2013-1345-chris-wells-131030120920-phpapp01
Mage uk-2013-1345-chris-wells-131030120920-phpapp01Mage uk-2013-1345-chris-wells-131030120920-phpapp01
Mage uk-2013-1345-chris-wells-131030120920-phpapp01Karla Mae Tejon
 
The Importance of Site Performance and Simple Steps to Achieve It
The Importance of Site Performance and Simple Steps to Achieve ItThe Importance of Site Performance and Simple Steps to Achieve It
The Importance of Site Performance and Simple Steps to Achieve ItNexcess.net LLC
 
PyGrunn2013 High Performance Web Applications with TurboGears
PyGrunn2013  High Performance Web Applications with TurboGearsPyGrunn2013  High Performance Web Applications with TurboGears
PyGrunn2013 High Performance Web Applications with TurboGearsAlessandro Molina
 
Evolution of DBA in the Cloud Era
 Evolution of DBA in the Cloud Era Evolution of DBA in the Cloud Era
Evolution of DBA in the Cloud EraMydbops
 
Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA EDB
 
Intro to XPages for Administrators (DanNotes, November 28, 2012)
Intro to XPages for Administrators (DanNotes, November 28, 2012)Intro to XPages for Administrators (DanNotes, November 28, 2012)
Intro to XPages for Administrators (DanNotes, November 28, 2012)Per Henrik Lausten
 
Performance Optimization in Drupal 8
Performance Optimization in Drupal 8Performance Optimization in Drupal 8
Performance Optimization in Drupal 8valuebound
 
Joomla! Performance on Steroids
Joomla! Performance on SteroidsJoomla! Performance on Steroids
Joomla! Performance on SteroidsSiteGround.com
 
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013J.D. Wade
 
Zero Downtime JEE Architectures
Zero Downtime JEE ArchitecturesZero Downtime JEE Architectures
Zero Downtime JEE ArchitecturesAlexander Penev
 

Ähnlich wie How to speed up Your Magento Site (20)

MySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disksMySql's NoSQL -- best of both worlds on the same disks
MySql's NoSQL -- best of both worlds on the same disks
 
Ad109 - XPages Performance and Scalability
Ad109 - XPages Performance and ScalabilityAd109 - XPages Performance and Scalability
Ad109 - XPages Performance and Scalability
 
NetApp IT Efficiencies Gained with Flash, NetApp ONTAP, OnCommand Insight, Al...
NetApp IT Efficiencies Gained with Flash, NetApp ONTAP, OnCommand Insight, Al...NetApp IT Efficiencies Gained with Flash, NetApp ONTAP, OnCommand Insight, Al...
NetApp IT Efficiencies Gained with Flash, NetApp ONTAP, OnCommand Insight, Al...
 
Silverstripe at scale - design & architecture for silverstripe applications
Silverstripe at scale - design & architecture for silverstripe applicationsSilverstripe at scale - design & architecture for silverstripe applications
Silverstripe at scale - design & architecture for silverstripe applications
 
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...
How to Improve Magento Performance | Tips to Speed up Magento eCommerce Site/...
 
Web Performance Optimization
Web Performance OptimizationWeb Performance Optimization
Web Performance Optimization
 
Training Webinar: Detect Performance Bottlenecks of Applications
Training Webinar: Detect Performance Bottlenecks of ApplicationsTraining Webinar: Detect Performance Bottlenecks of Applications
Training Webinar: Detect Performance Bottlenecks of Applications
 
Drupal 7 performance and optimization
Drupal 7 performance and optimizationDrupal 7 performance and optimization
Drupal 7 performance and optimization
 
20 tips for website performance
20 tips for website performance20 tips for website performance
20 tips for website performance
 
Mage uk-2013-1345-chris-wells-131030120920-phpapp01
Mage uk-2013-1345-chris-wells-131030120920-phpapp01Mage uk-2013-1345-chris-wells-131030120920-phpapp01
Mage uk-2013-1345-chris-wells-131030120920-phpapp01
 
The Importance of Site Performance and Simple Steps to Achieve It
The Importance of Site Performance and Simple Steps to Achieve ItThe Importance of Site Performance and Simple Steps to Achieve It
The Importance of Site Performance and Simple Steps to Achieve It
 
PyGrunn2013 High Performance Web Applications with TurboGears
PyGrunn2013  High Performance Web Applications with TurboGearsPyGrunn2013  High Performance Web Applications with TurboGears
PyGrunn2013 High Performance Web Applications with TurboGears
 
Evolution of DBA in the Cloud Era
 Evolution of DBA in the Cloud Era Evolution of DBA in the Cloud Era
Evolution of DBA in the Cloud Era
 
Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA
 
Intro to XPages for Administrators (DanNotes, November 28, 2012)
Intro to XPages for Administrators (DanNotes, November 28, 2012)Intro to XPages for Administrators (DanNotes, November 28, 2012)
Intro to XPages for Administrators (DanNotes, November 28, 2012)
 
Microservices at Mercari
Microservices at MercariMicroservices at Mercari
Microservices at Mercari
 
Performance Optimization in Drupal 8
Performance Optimization in Drupal 8Performance Optimization in Drupal 8
Performance Optimization in Drupal 8
 
Joomla! Performance on Steroids
Joomla! Performance on SteroidsJoomla! Performance on Steroids
Joomla! Performance on Steroids
 
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
 
Zero Downtime JEE Architectures
Zero Downtime JEE ArchitecturesZero Downtime JEE Architectures
Zero Downtime JEE Architectures
 

KĂŒrzlich hochgeladen

Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...apidays
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel AraĂșjo
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vĂĄzquez
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024The Digital Insurer
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 

KĂŒrzlich hochgeladen (20)

Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 

How to speed up Your Magento Site

  • 2. ● Many Features ● Complex Architecture ● Flexible Development Performan ce © 2014 Netstarter
  • 3. How to Speed up your Magento Site © 2014 Netstarter
  • 4. Databas e © 2014 Netstarter
  • 5. Case Study (3rd Party Product Listing PPargoej eIsc Rt)EALLY Slow, Client is Unhappy, SEO issues Default Magento Client’s Magento System response time TTFB (without FPC) 0.9 s 7 sec © 2014 Netstarter
  • 6. His Questions ● Is it a problem of Magento ? ● 150,000 Products now, is it a problem ? ● Do we need additional CPU and RAM or Bandwidth ? ● Any issue with the configuration ? ● Someone has Hacked our System ? 1 Query © 2014 Netstarter
  • 7. Data Types
.  INT, TINYINT,VARCHAR etc
.  INT column to store value from 1-10  VARCHAR to store Integers What is the Rationale then ? © 2014 Netstarter
  • 8. Spaghetti Query How can I do this with a single query? It’s not always better, Why? ‱ Difficult to do changes ‱ Cannot use Mysql cache ‱ Mysql poor performance with some queries © 2014 Netstarter
  • 9. Spaghetti Query (Contd.) ‱ Hide dangerous issues - Better to Divide and conquer What is the Rationale then ? © 2014 Netstarter
  • 10. Use of Indexes Use Indexes with a plan, mistakes that we do.. ● Define no indexes, or not enough indexes ● Defining too many indexes ● Running queries that no indexes can be used ○ SELECT * FROM table WHERE column LIKE ‘%test%’ What is the Rationale then ? © 2014 Netstarter
  • 11. Monitor Your Database ● Check the slow query log (in MySql) ● Use EXPLAIN in Mysql to Check the Query Execution Path ● Rebuild Indexes : OPTIMIZE TABLE tbl_name © 2014 Netstarter
  • 12. Tools ● pt-index-usage ● pt-query-digest (Slow Query) There are many other
.. © 2014 Netstarter
  • 13. Achievement ‱ Listing page now loads within 1.5 seconds ‱ 85% Gain © 2014 Netstarter
  • 14. eCommerce Site Performance ‱ Site performance directly affects conversion rate ‱ eCommerce sites has a lot of contents and interactions http://venturebeat.com/http://venturebeat.com/2013/03/26/speed-bump-load-times-at-top-2000-e-commerce-sites-down-22-in-one-year-infographic/ http://www.yottaa.com/blog/bid/286821/eCommerce-and-Website-Performance-A-Look-Into-the-Industry © 2014 Netstarter
  • 15. Backend Caching ● Keeps prepared data ● Minimizes database queries (Reduce database load) What Default Magento Provides
 ● Magento Cache ● Enterprise Edition comes with built in Full Page Cache (FPC) ● Default caching engine is the SLOW File System http://cdn.turnkeye.com/media/wysiwyg/services/performance/performance.png © 2014 Netstarter
  • 16. Optimized Caching Alternative 01: Memcached ● Free & open source ● key-value based object caching ● Configured as 1st level fast cache for Magento Limitations ● Doesn’t support tag based caching ● Database is used as the 2nd level cache ● No replication method implemented http://memcached.org/ © 2014 Netstarter
  • 17. Optimized Caching Alternative 02: Redis ● Free & open source ● Magento officially recommend Redis ● For Enterprise 1.13.x and Community 1.8.x Redis is built in. Why it is so Good? ● Supports tag-based caching/cleanup ● Can work without DB (core_cache/core_cache_tag) tables should stay empty ● Supports on-disk save and master/slave replication. http://redis.io/images/redis-logo.svg https://www.byte.nl/blog/wp-content/uploads/Redis-caching.jpg © 2014 Netstarter
  • 18. Getting the Good of Both - Netstarter Way ● Cache and Full Page Cache - Redis ○ Supports Tag based caching ● User Session Storage - Memcached ○ Key/Value storage system fits sessions ○ Little bit faster than Redis © 2014 Netstarter
  • 19. Op-Code Caching ● Accelerates PHP execution ● No side effects other than extra memory usage ● Recommended for Production environment Which Op-Code Cache? ● APC (Alternative PHP Cache) ● Xcache ● Zend OpCache Bundled with PHP 5.5.0 and later © 2014 Netstarter
  • 20. Content Delivery Network (CDN) ‱ A network of distributed servers deliver content based on the geographic locations of the user ‱ Reduce the load on the main server © 2014 Netstarter
  • 21. General Tips Further Quest for Performance ● Proper Server settings ● Enable Magento Flat Catalog ● Varnish Cache - A Reputed Cache backend ● Host in the country where your customers are ● Minify and Merge Js and CSS ● Enable Gzip Compression in htaccess. ● Minimize redirects ● Have the site W3C compliant. Errors slow down the browser ● Optimize images for web ● Use CSS Sprites © 2014 Netstarter
  • 22. Keep in Touch ● Check your page load with Magento Profiler ● AOE Profiler will be a better option ● Use other web page optimization tools ● Use a server performance analyzer New Relic © 2014 Netstarter
  • 23. Take Away Design Develop Test - for - Performanc © 2014 Netstarter
  • 24. Thank You! © 2014 Netstarter