Who Needs Stored Procedures Anyway?

2,475 views

Published on

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
2,475
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Who Needs Stored Procedures Anyway?

  1. 1. Who needs Stored Procedures anyway? Niko Neugebauer http://netponto.org23ª Reunião Lisboa - 24/09/2011
  2. 2. Patrocinadores desta reunião
  3. 3. Patrocinadores desta reunião
  4. 4. Niko Neugebauer SQL Server MVP MCITP Developer 2005 Líder e fundador da comunidade SQLPort (http://www.sqlport.com) Mentor Regional PASS para «Western Europe» Consultor da Novabase
  5. 5. Agenda • Query Analizer • Queries (aka «Ad Hoc») • Parametrization: Simple/Forced • Stored Procedures • Memory • Justin Bieber
  6. 6. Query Analizer • Analise do Query, Compilação, Geração do plano e ... Execução Query Plano de Execução Compiler
  7. 7. Memory • I just can’t get enough • I just can’t get enough • .... • I just can’t get enough • I just can’t get enough
  8. 8. Queries «Ad Hoc» Demo
  9. 9. Parametrization • Simple • Forced
  10. 10. Stored Procs • In da House • É como Java vs Native Code
  11. 11. Memory • SQL Server 2008 and SQL Server 2005 SP2 * 75% of visible target memory from 0-4GB + 10% of visible target memory from 4Gb-64GB + 5% of visible target memory > 64GB • SQL Server 2005 RTM and SQL Server 2005 SP1 * 75% of visible target memory from 0-8GB + 50% of visible target memory from 8Gb-64GB + 25% of visible target memory > 64GB • SQL Server 2000 * SQL Server 2000 4GB upper cap on the plan cache
  12. 12. Optimização exec sp_configure 'show advanced options', 1; reconfigure; exec sp_configure 'optimize for ad hoc workloads', 1 Reconfigure;
  13. 13. Referências Procedure Cache and Optimization for Adhoc Workloads (Kim Tripp) – http://www.sqlskills.com/BLOGS/KIMBERLY/post/Procedure-cache-and- optimizing-for-adhoc-workloads.aspx Query Parametrization – http://weblogs.sqlteam.com/dang/archive/2009/06/27/Forced- Parameterization-A-Turbo-Button.aspx
  14. 14. Questões?
  15. 15. Patrocinadores desta reunião
  16. 16. Patrocinadores desta reunião
  17. 17. Próximas reuniões presenciais • 24/09/2011 – Setembro (2 anos!) • 29/10/2011 – Outubro • 19/11/2011 – Outubro (Coimbra) • 26/11/2011 – Novembro Reserva estes dias na agenda! :)
  18. 18. Obrigado! Niko Neugebauer info@webcaravela.com http://pt.linkedin.com/in/webcaravela http://sqlport.com http://twitter.com/NikoNeugebauer

×