Your SlideShare is downloading. ×
My tc   website optimization - load time improvement
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

My tc website optimization - load time improvement

561

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.

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
561
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

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

×