Why Your DBA Wishes You
Harm
Or How to Get Along With Your DBA
Mike L Gardner @DataProMike
Mike Gardner
Data Architect/DBA
Sybase/SAP (ASE, HANA, IQ)
SQL Server
and a little bit of Oracle and MySQL
What’s Important to a DBA
Uptime
Performance
Process
Consistency
Predictability
Uptime is THE Most Critical Component
Part of DBA’s performance metrics
DBA’s get the call/blame when problems occur
Untested code or under-tested code is a threat to uptime
Performance matters - just not how you
think
Your code doesn’t have to be great, good is fine
Avoiding bad code is better than writing great code
Do some performance testing on your code
Process - The DBA Security Blanket
Document your code
Follow a consistent release cycle
Use source control
Have Patience
How the DBA will Help You
Sizing and Scalability
Configuration and Architecture
Test/Dev or QA environments
Testing Environment
Don’t have one - enlist the DBA to make your case
Performance
Index Tuning
Covering Indexes
Highlight columns used in queries to save some work for the DBA
Query Tuning
Execution Plans
Database Tuning
Process
Documentation
Code Reviews / Diagram Reviews
DBA may be able to offer hints and insight
Gives DBA a share of ownership in the code
Code Review - Is the DBA Judging Me?
YES!
The DBA’s primary thought is ‘Will this code cause problems for me?’
Things to Avoid
Select (*) or count(*)
(NOLOCK)
WHERE 1=1
select ... from ( select ... from ( select ... from…
ORDER BY (Every column in the statement)
Things to avoid (cont)
DECLARE CURSOR
Implicit Conversions / Inappropriate Data Types
Asking for Admin
Changing column order between releases
BLAME
Same Team: Same Fight
DBA’s and Developers have aligned interests
Take care of each other
Sources
http://www.toptal.com/sql/sql-database-tuning-for-developers
https://dzone.com/articles/advice-developers-how
https://dbareactions.com

More Related Content

PPTX
Oracle performance project public
PPTX
Panaya oatug r12.2-upgrade
PPTX
SAP License Audit Process
PDF
Cloud Based SAP User Provisioning
PPTX
Sage 300 ERP: Environment setup and configuration
PPTX
Oracle demantra on cloud - An Introduction
PDF
Cbig meeting mar2013_whatisabidba_jorgesegarra
PPTX
Carbon Track and Trace – CTT (A brief overview)
Oracle performance project public
Panaya oatug r12.2-upgrade
SAP License Audit Process
Cloud Based SAP User Provisioning
Sage 300 ERP: Environment setup and configuration
Oracle demantra on cloud - An Introduction
Cbig meeting mar2013_whatisabidba_jorgesegarra
Carbon Track and Trace – CTT (A brief overview)

Viewers also liked (10)

PPT
Immigrant Youth Justice League, 2009-2012, Chicago, IL.
PPT
EDF2013: Keynote Knut Sebastian Tungland: We need to understand (our) data
DOCX
08bisi pelajaran interaksi-2
PPT
Smidig 2008 Slik Samarbeider Du Med UX - med kommentarer
PDF
Lee Ming-Hui PCP 1507 PPP Presentation
PPTX
EDF2013: Invited Talk Bastiaan Deblieck: Who remembers EDP?
PDF
Kti nailul khoiriyah
PDF
Benchmarking the Modern Meeting Planner
PPT
V01 anatomy class_pelvis
Immigrant Youth Justice League, 2009-2012, Chicago, IL.
EDF2013: Keynote Knut Sebastian Tungland: We need to understand (our) data
08bisi pelajaran interaksi-2
Smidig 2008 Slik Samarbeider Du Med UX - med kommentarer
Lee Ming-Hui PCP 1507 PPP Presentation
EDF2013: Invited Talk Bastiaan Deblieck: Who remembers EDP?
Kti nailul khoiriyah
Benchmarking the Modern Meeting Planner
V01 anatomy class_pelvis
Ad

Similar to Why Your DBA Wishes You Harm (20)

PPTX
SQL Server Integration Services and Analysis Services
PDF
SW Engineering Primer for MBAs
PPT
Oracle OpenWorld 2009 AIA Best Practices
PPT
Optimizing Callidus TrueComp Suite: Tips and Tricks
PDF
Software Reliability Engineering Learning
PPT
Understanding System Performance
PPTX
2010/09 - Database Architechs - Performance & Tuning Tool
PPT
Oracle 11i OID AD Integration
PPTX
Using Compass to Diagnose Performance Problems in Your Cluster
PPTX
Using Compass to Diagnose Performance Problems
PPT
SQL Server 2008 Security Overview
PPT
Beyond Requirements Software Metrics Process
PPT
The Magic Of Application Lifecycle Management In Vs Public
PPTX
Technical Without Code
PPT
Callidus Software Product Installation And Performance Tuning
PPTX
SQL Server and System Center Advisor
PPT
Performance Of Callidus TrueComp Pipeline And Datamart ETL And Reports
PPTX
Productivity gains with Visual Studio ALM.PPTX
PPTX
Everything you need to know about SQL Server 2016
SQL Server Integration Services and Analysis Services
SW Engineering Primer for MBAs
Oracle OpenWorld 2009 AIA Best Practices
Optimizing Callidus TrueComp Suite: Tips and Tricks
Software Reliability Engineering Learning
Understanding System Performance
2010/09 - Database Architechs - Performance & Tuning Tool
Oracle 11i OID AD Integration
Using Compass to Diagnose Performance Problems in Your Cluster
Using Compass to Diagnose Performance Problems
SQL Server 2008 Security Overview
Beyond Requirements Software Metrics Process
The Magic Of Application Lifecycle Management In Vs Public
Technical Without Code
Callidus Software Product Installation And Performance Tuning
SQL Server and System Center Advisor
Performance Of Callidus TrueComp Pipeline And Datamart ETL And Reports
Productivity gains with Visual Studio ALM.PPTX
Everything you need to know about SQL Server 2016
Ad

Recently uploaded (20)

PPTX
Module 1 Introduction to Web Programming .pptx
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PDF
EIS-Webinar-Regulated-Industries-2025-08.pdf
PDF
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PDF
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
PDF
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
PDF
SaaS reusability assessment using machine learning techniques
PDF
Comparative analysis of machine learning models for fake news detection in so...
PDF
Co-training pseudo-labeling for text classification with support vector machi...
PDF
“The Future of Visual AI: Efficient Multimodal Intelligence,” a Keynote Prese...
PPTX
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PDF
Planning-an-Audit-A-How-To-Guide-Checklist-WP.pdf
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PPTX
Training Program for knowledge in solar cell and solar industry
PDF
4 layer Arch & Reference Arch of IoT.pdf
Module 1 Introduction to Web Programming .pptx
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
Rapid Prototyping: A lecture on prototyping techniques for interface design
EIS-Webinar-Regulated-Industries-2025-08.pdf
AI.gov: A Trojan Horse in the Age of Artificial Intelligence
Convolutional neural network based encoder-decoder for efficient real-time ob...
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
NewMind AI Weekly Chronicles – August ’25 Week IV
Accessing-Finance-in-Jordan-MENA 2024 2025.pdf
Dell Pro Micro: Speed customer interactions, patient processing, and learning...
SaaS reusability assessment using machine learning techniques
Comparative analysis of machine learning models for fake news detection in so...
Co-training pseudo-labeling for text classification with support vector machi...
“The Future of Visual AI: Efficient Multimodal Intelligence,” a Keynote Prese...
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
Lung cancer patients survival prediction using outlier detection and optimize...
Planning-an-Audit-A-How-To-Guide-Checklist-WP.pdf
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
Training Program for knowledge in solar cell and solar industry
4 layer Arch & Reference Arch of IoT.pdf

Why Your DBA Wishes You Harm

Editor's Notes

  • #7: DBA’s prefer slow and predictable change. They are much more attuned to the impact of downtime, so be patient.
  • #8: They understand the load that users will create Dashboards to keep people from pestering them with questions DBA can be a strong voice to support test and development environments
  • #12: select * or select count(*) --Developer is being lazy, or sloppy (NOLOCK) -- Attempt to increase performance, but points to potential issues in query - duct tape WHERE 1=1 -- Looks like test code that was forgotten ORDER BY (complete result set) -- 2 - 3 columns max - can be expensive
  • #13: Too many nested select statements -- Probably could be represented more efficiently DECLARE CURSOR -- Shows row based thinking, as opposed to set based which is more efficient Implicit Coversions and Inappropriate data types -- Make sure you are using the right data type in your table - best fit Asking for Administrative privileges on production -- Don’t take it personal, remember who will be called in during off hours should a problem occur BUT… Changing column order between releases -- ESPECIALLY if you are doing any sort of data migration as a result Blame -- You are responsible for your code, even after it moves to production. Step up when your code is at fault, and the DBA will appreciate it and likely return the favor in the future -- If your application stops working, ensure you eliminate other possibilities (network, application server) before blaming the DBA.