who needs stored procedures anyway?

Post on 18-Dec-2014

2.264 Views

Category:

Technology

1 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

Who needs Stored Procedures anyway?Niko Neugebauer

http://netponto.org23ª Reunião Lisboa - 24/09/2011

Patrocinadores desta reunião

Patrocinadores desta reunião

Niko NeugebauerSQL Server MVPMCITP Developer 2005Líder e fundador da comunidade SQLPort (http://www.sqlport.com)Mentor Regional PASS para «Western Europe» Consultor da Novabase

Agenda

• Query Analizer• Queries (aka «Ad Hoc»)• Parametrization: Simple/Forced• Stored Procedures• Memory• Justin Bieber

Query Analizer

• Analise do Query, Compilação, Geração do plano e ... Execução

QueryPlano de Execução

Compiler

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

Queries «Ad Hoc»

Demo

Parametrization

• Simple• Forced

Stored Procs

• In da House• É como Java vs Native Code

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

Optimizaçãoexec sp_configure 'show advanced options', 1;reconfigure;

exec sp_configure 'optimize for ad hoc workloads', 1Reconfigure;

Questões?

Patrocinadores desta reunião

Patrocinadores desta reunião

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! :)

Obrigado!

Niko Neugebauerinfo@webcaravela.comhttp://pt.linkedin.com/in/webcaravelahttp://sqlport.comhttp://twitter.com/NikoNeugebauer

top related