17
Magento – performance/optimalisation Marek Borzęcki

Magento performance

  • View
    292

  • Download
    1

Embed Size (px)

DESCRIPTION

5 most common errors in Magento and how to fix them

Citation preview

Page 1: Magento performance

Magento – performance/optimalisation

Marek Borzęcki

Page 2: Magento performance

• Serwer Gearman – it allows to process asynchronically and synchronically

• FACT-finder – advanced search engine• Cacheing on many levels• Clients in 2 types: OPEN and PARTNER

Sklep.tim.pl –elektrotechnical stuff

Conquer the 5 Most Common Magento CodingIssues to Optimize Your Site for Performance - Magento Expert Consultin Group

Page 3: Magento performance

Magento Expert Consulting Group

Top 5 Magento PHP code performance

lSpurce: http://Conquer_the_5_Most_Common_Magento_Coding_Issues_to_Optimize_Your_Site_for_Performance.pdf

Page 4: Magento performance

WRONG

OK

1. SQL queries inside a loop

Page 5: Magento performance

1. SQL queries inside a loop ...

larray of Magento lproductsl12 GB RAMl16x Intel® Xeon® CPU lrunning at 2.40GHzlPHP 5.3.19

Page 6: Magento performance

1. SQL queries inside a loop ...

Page 7: Magento performance

1. SQL queries inside a loop ...

Page 8: Magento performance

2. Loading the same model multiple times

WRONG

OK

Page 9: Magento performance

2. Loading the same model multiple times ...

Page 10: Magento performance

3. Redundant dataset utilization

WRONG

OK

Page 11: Magento performance

3. Redundant dataset utilization ...

WRONG

OK

Page 12: Magento performance

3. Redundant dataset utilization ...

WRONG

OK

Page 13: Magento performance

4. Calculating the size of an array on each iteration of a loop

WRONG

OK

Page 14: Magento performance

4. Calculating the size of an array on each iteration of a loop ...

larray of Magento lproductsl12 GB RAMl16x Intel® Xeon® CPU lrunning at 2.40GHzlPHP 5.3.19

Page 15: Magento performance

5. Inefficient memory utilization

WRONG

OK

Page 16: Magento performance

• Some operations are done with SQL eg. Via WHERE or JOIN

• die() oraz exit() – unexpected system behavior

• It is not allowed to use business logic in PHTML

Others

Page 17: Magento performance

• Always put attention to the critical parts of code

• Think clearly and use reasonable arguments

• Think in advance

Summary