SlideShare a Scribd company logo
1 of 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

More Related Content

What's hot

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
 

What's hot (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
 

Similar to 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
 

Similar to 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
 

Recently uploaded

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
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
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
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
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
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
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
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
 
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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 

Recently uploaded (20)

Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
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
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
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
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
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...
 
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...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 

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