MyTC Challenges, Solutions, Report, and Analysis Integral Solutions – Indra Kurniawan – 04 Sept 2010
MyTC Challanges <ul><li>MyTC has more than 87 page component. </li></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
MyTC Challanges <ul><li>MyTC has 615 K page weight </li></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
MyTC Challanges <ul><li>Search function running slowly (~15 s) </li><ul><li>Based on human perception
Visitors feedback
Comparator myretiredbackpackers.com
Inefficient scripting </li></ul></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
MyTC Challanges <ul><li>Inefficient SQL Query </li><ul><li>Query statistics: Since its start up, 2,631,399 queries have be...
has a lot of queries that require MySQL to scan whole tables or have joins that don't use keys properly.  </li></ul></ul>T...
MyTC Challanges <ul><li>Inefficient DB Architecture </li><ul><li>Tables are not properly indexed or that your queries are ...
55 joins query that do not use indexes. </li></ul></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
MyTC Solutions <ul><li>Reducing page component and weight ( done )
Search function running slowly (~15 s), it's true, but.... </li></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
Integral Solutions – Indra Kurniawan – 04 Sept 2010
Integral Solutions – Indra Kurniawan – 04 Sept 2010
Integral Solutions – Indra Kurniawan – 04 Sept 2010
Integral Solutions – Indra Kurniawan – 04 Sept 2010
Integral Solutions – Indra Kurniawan – 04 Sept 2010
Integral Solutions – Indra Kurniawan – 04 Sept 2010
Integral Solutions – Indra Kurniawan – 04 Sept 2010
Integral Solutions – Indra Kurniawan – 04 Sept 2010
Integral Solutions – Indra Kurniawan – 04 Sept 2010
Integral Solutions – Indra Kurniawan – 04 Sept 2010
Integral Solutions – Indra Kurniawan – 04 Sept 2010
Integral Solutions – Indra Kurniawan – 04 Sept 2010
MyTC Solutions <ul><li>But, my old website (myretiredbackpackers.com) load very quick. I think, this just matter of script...
Here the fact: </li><ul><li>The page has a total of 33 components and a total weight of 241.5K bytes (retired)
Upcoming SlideShare
Loading in …5
×

My tc website optimization - load time improvement

711 views
644 views

Published on

This presentation to show and demonstrate the problem and solution based on real case. This presentation will talk about how to optimize website, and the other.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
711
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

My tc website optimization - load time improvement

  1. 1. MyTC Challenges, Solutions, Report, and Analysis Integral Solutions – Indra Kurniawan – 04 Sept 2010
  2. 2. MyTC Challanges <ul><li>MyTC has more than 87 page component. </li></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
  3. 3. MyTC Challanges <ul><li>MyTC has 615 K page weight </li></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
  4. 4. MyTC Challanges <ul><li>Search function running slowly (~15 s) </li><ul><li>Based on human perception
  5. 5. Visitors feedback
  6. 6. Comparator myretiredbackpackers.com
  7. 7. Inefficient scripting </li></ul></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
  8. 8. MyTC Challanges <ul><li>Inefficient SQL Query </li><ul><li>Query statistics: Since its start up, 2,631,399 queries have been sent to the server.
  9. 9. has a lot of queries that require MySQL to scan whole tables or have joins that don't use keys properly. </li></ul></ul>Total ø per hour ø per minute ø per second 3 M 71.03 k 1.18 k 19.73 Integral Solutions – Indra Kurniawan – 04 Sept 2010
  10. 10. MyTC Challanges <ul><li>Inefficient DB Architecture </li><ul><li>Tables are not properly indexed or that your queries are not written to take advantage of the indexes you have. ( 481 MB )
  11. 11. 55 joins query that do not use indexes. </li></ul></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
  12. 12. MyTC Solutions <ul><li>Reducing page component and weight ( done )
  13. 13. Search function running slowly (~15 s), it's true, but.... </li></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
  14. 14. Integral Solutions – Indra Kurniawan – 04 Sept 2010
  15. 15. Integral Solutions – Indra Kurniawan – 04 Sept 2010
  16. 16. Integral Solutions – Indra Kurniawan – 04 Sept 2010
  17. 17. Integral Solutions – Indra Kurniawan – 04 Sept 2010
  18. 18. Integral Solutions – Indra Kurniawan – 04 Sept 2010
  19. 19. Integral Solutions – Indra Kurniawan – 04 Sept 2010
  20. 20. Integral Solutions – Indra Kurniawan – 04 Sept 2010
  21. 21. Integral Solutions – Indra Kurniawan – 04 Sept 2010
  22. 22. Integral Solutions – Indra Kurniawan – 04 Sept 2010
  23. 23. Integral Solutions – Indra Kurniawan – 04 Sept 2010
  24. 24. Integral Solutions – Indra Kurniawan – 04 Sept 2010
  25. 25. Integral Solutions – Indra Kurniawan – 04 Sept 2010
  26. 26. MyTC Solutions <ul><li>But, my old website (myretiredbackpackers.com) load very quick. I think, this just matter of scripting.
  27. 27. Here the fact: </li><ul><li>The page has a total of 33 components and a total weight of 241.5K bytes (retired)
  28. 28. The page has a total of 63 components and a total weight of 648.7K bytes (mytc) </li></ul></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
  29. 29. MyTC Solutions <ul><li>If it is because scripting then, this value (page generation time) must be greater than 1 second.
  30. 30. The Fact: </li><ul><li>Based on data gathered from 25 random pages, it take less than 500ms to finish the query to DB and then generate the pages. </li></ul></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
  31. 31. So, What should I do? <ul><li>Rewrite the search script, 75 % done. </li><ul><li>Result reduced the slow query from 2.95% to 0,000040% </li></ul><li>Reducing page component, done. </li><ul><li>Component reduced from 2454.9K to 615.3K </li></ul><li>Using AJAX to avoid re-loading page component
  32. 32. Improve the design, considering load order. </li></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
  33. 33. So, What should I do? <ul><li>Since slow loading page occurred because of connection speed and location, then I believed that using CDN will solve your problem. </li></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
  34. 34. So, What should I do? <ul><li>Naveen: “my suggestion for those 3 solutions is you can eliminate the 3 one all together that won't be making any much different here because it can be slow because of the data in DB and the queries that written to fetch the data.”
  35. 35. Naveen: “any case so I would suggest go with scripting which I believe is revising the search code for better performance.” </li></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
  36. 36. So, What should I do? Integral Solutions – Indra Kurniawan – 04 Sept 2010
  37. 37. Q&A <ul><li>Do you have any question? </li></ul>Integral Solutions – Indra Kurniawan – 04 Sept 2010
  38. 38. Integral Solutions <ul><li>If you have any question, please don't hesitate to contact us at: </li><ul><li>[email_address]
  39. 39. Phone: 62-274-4435038 </li></ul><li>Client overview: </li><ul><li>Website optimization, scripting, re-writing, and server tune-up.
  40. 40. Location: London, United Kingdom </li></ul></ul>

×