Msdn optimizando la performance en la web

986 views
923 views

Published on

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

  • Be the first to like this

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

No notes for slide
  • Enviar info de compiled linq query para EF.
  • Enviar info de compiled linq query para EF.
  • Msdn optimizando la performance en la web

    1. 1. Optimizando la Performance en la Web http://blogs.msdn.com/aiturralde
    2. 2. Agenda• ¿Por qué es importante el rendimiento?• Desafíos comunes de rendimiento• Analizando problemas de rendimiento• Tácticas para Mejorar el Rendimiento
    3. 3. http://blog.kissmetrics.com/loading-time/
    4. 4. − No son problemas exclusivos de ASP .NET
    5. 5. Región Average Round-Trip Time (ms) Average Packet Loss (%)Africa 469 3.70Australia 204 0.23Balkans 202 0.74Central Asia 597 1.24East Asia 192 0.68Europa 178 0.48Latin America 270 1.15Middle East 279 0.87North America 59 0.09Russia 243 2.48South Asia 424 1.89South East Asia 254 0.03
    6. 6. HTML Recurso de la páginaArchivos Tiempo
    7. 7. − Mal patrón de asignación− Leaks de memoria
    8. 8. http://www.fiddler2.comhttp://bit.ly/JF3osxhttp://bit.ly/JvrrGz
    9. 9. http://bit.ly/L9MGirhttp://bit.ly/vZldlThttp://bit.ly/JeocF5http://bit.ly/H8ntr0
    10. 10. SELECT P.FirstName, P.LastName,SC.AccountNumber, SC.ModifiedDateFROM Sales.Customer AS SCJOIN Person.Person PON SC.PersonID =P.BusinessEntityIDWHERE P.LastName in (Adams)ORDER BY P.LastName, P.FirstName ;
    11. 11. Query 1 Se compila y se almacena en el cacheSelect * from Person.Address where AddressID in(1, 2)Query 2 Se compila y se almacena en el cacheSelect * from Person.Address where AddressID in(2, 1)Query 3 Se reutilizaSelect * from Person.Address where AddressID in(1, 2)
    12. 12. SELECT qs.sql_handle, qs.statement_start_offset,qs.statement_end_offset, qs.creation_time, qs.last_execution_time,SUBSTRING(qt.text,qs.statement_start_offset/2+1, (CASE WHEN qs.statement_end_offset = -1 THEN LEN(CONVERT(nvarchar(max), qt.text)) * 2 ELSE qs.statement_end_offset end - qs.statement_start_offset )/2 ) AS query_text FROM sys.dm_exec_query_stats qs CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) qt
    13. 13. dbcc freesystemcache(all)

    ×