1 Keep It Simple - Common, Overlooked Performance Tuning Tips Paul Jackson Hotsos
2 Who Am I? Senior Consultant at Hotsos Oracle Ace Co-Author of Oracle Applications DBA Field Guide Co-Author of Oracle R12 Applications DBA Field Guide Vice President of Application Technology Stack SIG Blog: pjacksondba.blogspot.com Twitter: pjackson_dba
3 Keep It Simple Where are my glasses?
4 Agenda Database Configuration Patch Levels Database Performance Specifics Purge Options Server Monitoring New Features Continuing Education
5 Database Configuration Review Initialization Parameters Can be done anytime, especially as part of an upgrade. For EBS customers there are specific My Oracle Support notes : Database Initialization Parameters for Oracle Applications Release 12 (ID ) bde_chk_cbo.sql - EBS initialization parameters - Healthcheck (ID )
6 Database Configuration Document non-standard settings Utilize the Comment feature to specify reason for setting the value. This column can later be queried from the table. ALTER SYSTEM SET Param_name= Value COMMENT= For SR , set on 03-Mar-12 ;
7 Patch Levels Staying up to date on patches not only resolves security issues, but can also help to improve performance on the system. For more details see: e_patches.html
8 Patch Levels Database patches: Applying the latest CPUs or PSU are recommended. In addition, Oracle provides some notes for performance specific patches. Oracle Recommended Patches -- Oracle Database [ID ]
9 Patch Levels Application patches: Some additional Database and Application patches are recommended by Oracle. It is also advisable to stay current with the latest Technology Stack patches. Oracle E-Business Suite Recommended Performance Patches [ID ]
10 Database Performance Specifics Top SQL Top Segments Top wait events Memory advisors Miscellaneous
11 Database Performance Specifics Top SQL The Top SQL statements should be reviewed on a regular basis. The filtering criteria should use at least Logical Reads, Elapsed Time, and Executions.
12 Database Performance Specifics Top SQL If Database Diagnostic pack is not licensed, then query the data dictionary: select buffer_gets, elapsed_time, cpu_time, executions, sql_id, sql_text from (select buffer_gets, elapsed_time, cpu_time, executions, sql_id, sql_text, rank() over (order by buffer_gets desc --Change here for filter ) as rank from v$sqlstats ) where rank <=20;
13 Database Performance Specifics Top SQL If Database Diagnostic pack is licensed, then query the AWR repository: select b.sql_text, a.snap_id, a.instance_number, a.module, a.action, a.executions_delta, a.buffer_gets_delta, a.cpu_time_delta, a.elapsed_time_delta from ( select snap_id, sql_id, instance_number, module, action, executions_delta, buffer_gets_delta, cpu_time_delta, elapsed_time_delta, rank() over (order by buffer_gets_delta desc) as rank from dba_hist_sqlstat where buffer_gets_delta is not null ) a, dba_hist_sqltext b where a.sql_id=b.sql_id and a.rank <=20;
14 Database Performance Specifics Top SQL Review the top SQL for tuning opportunities. Identify source for the SQL statements. Using the Program/Module/Action columns from v$sql or awr_hist_sqlstat can help to identify the code. If the code is not well instrumented, then you still may be able to identify the source using the program id and program line in v$sql.
15 Database Performance Specifics Top SQL Using the following query will return information for a given SQL_ID select parsing_schema_name, service,module,action,program_id,program_line# from v$sql where sql_id=&sql_id; The program_id corresponds to object_id in dba_objects. This can identify what Function, Procedure or Package Body calls the specific SQL statement. The program_line# tells what line the call occurs.
16 Database Performance Specifics Top SQL If the query you are investigating uses bind variables, you can identify what variables were recently used by the following query: Select child_number, position, name, datatype_string, value_string from v$sql_bind_capture where sql_id=&sql_id order by child_number, position; With this information you can trace the query using the appropriate variable values.
17 Database Performance Specifics Top SQL Trace either specific statements or slow processes with level tracing. The trace file can then be analyzed with tkprof or with a more robust tool such as Hotsos Profiler. Analyze the trace file to determine where the system time is being spent. Recommended Method for Obtaining trace for Tuning [ID ]
18 Database Performance Specifics Top SQL Common issue, the Module AUTO_SPACE_ADVISOR_JOB is sometimes at the top of the list of queries sorted by Logical Reads. If the results of the Segment Advisor are not being reviewed, it can be unscheduled and run as needed.
19 Database Performance Specifics Top Segments Querying the top segments based upon criteria such as Logical Reads, Physical Reads, and Row Lock Waits can help identify busy objects. This can lead to investigations of required indexes, partitioning options, additional SQL tuning or other maintenance activity.
20 Database Performance Specifics Top Segments Sample query for 11g: with pivot_stats as ( select owner,object_name,statistic_name,value from v$segment_statistics ) select * from pivot_stats PIVOT (sum(value) for statistic_name in ('logical reads', 'physical reads','row lock waits' )) order by 5 desc;
21 Database Performance Specifics Top Wait Events This is key information to determine where the database is spending its time. The top events can be found in the AWR report or in Statspack reports and querying v$system_event. Common top wait events include CPU Time and DB File Sequential Read. Focusing on tuning the largest Wait Events will yield the most benefit.
22 Database Performance Specifics Top Wait Events One example was the appearance of enq HW Contention as the second highest wait event on a 10g version of Oracle. Researching this wait event on My Oracle Support returned information about bug Additional example will be provided later
23 Database Performance Specifics Memory Advisors In Enterprise Manager Grid Control or in AWR reports, Oracle provides Memory Advisors that gives recommendations on sizing memory structures in Oracle. Before making any adjustments, ensure there is enough available memory on the server.
24 Database Performance Specifics Memory Advisors
25 Database Performance Specifics Miscellaneous Statistics Make sure statistics are up to date. Numerous presentations focus solely on this topic. The last_analyzed column in dba_tables will show when the table was last analyzed. For EBS customers be sure to use FND_STATS calls instead of DBMS_STATS.
26 Database Performance Specifics Miscellaneous Invalid Objects The number of invalid objects in your system should be zero. If not then the invalid objects should be known and explainable. select owner, object_name, object_type from dba_objects where status='invalid';
27 Database Performance Specifics Miscellaneous Run Away Sessions Check for long running sessions in the database. Depending on the processing being done, these can cause a lot of overhead. select count(1) from v$session_longops where username not in ('SYS','SYSTEM','DBSNMP') AND time_remaining > 30 AND elapsed_seconds > 30;
28 Database Performance Specifics Miscellaneous Number of sessions It s useful to track both the active and inactive number of sessions on your system. Some application problems can result in a larger than average number of inactive sessions. If the active number of sessions increases rapidly then it could be a sign that the database has become overloaded.
29 Database Performance Specifics Miscellaneous Number of sessions by status and total number of sessions. select count(1) from v$session where status='active'; select count(1) from v$session where status='inactive'; select count(1) from v$session;
30 Database Performance Specifics Miscellaneous Load Profile The AWR report contains a Load Profile near the top of the report. This provides a lot of key information related to number of transactions, number of logical and physical reads, etc for the snapshot period. Having this information available for comparisons with slow time periods will help to troubleshoot issues.
32 Purge Options Review largest objects in the database. The following query will show the 50 largest objects. Use OWNER column and segment_name to search for standard purge procedures. select owner, segment_name, segment_type, bytes from (select owner,segment_name, segment_type, bytes, rank() over (order by bytes desc ) as rank from dba_segments ) where rank <=50;
33 Purge Options Query for any backup tables. If backup tables exist, then they should be investigated to determine if they are still required. select to_char(num_rows,'999,999,999,999'), a.* from dba_tables a where owner not in ('SYS','SYSTEM') and num_rows is not null and table_name like '%BKP%' order by num_rows desc;
34 Purge Options Query for any materialized view logs. There are known issues where these logs can become excessively large. select * from dba_segments where segment_name like MLOG$_% order by bytes desc;
35 Purge Options Note, removing objects will not reclaim space without reorganizing the Tablespace. However this will reduce the need for future growth by providing free space within the Tablespace.
36 Server Monitoring Includes monitoring CPU utilization, Memory usage, and Disk I/O rates. This can be done using Operating System provided tools such as sar, using AWR, Enterprise Manager Host monitoring, or Oracle OS Watcher. OS Watcher User Guide [ID ]
37 Server Monitoring Monitoring CPU processing Don t want to exceed around 85% - 90% busy for extended periods of time. This helps to ensure enough CPU time exists for peak periods. Can monitor with vmstat command, CPU id column
38 Server Monitoring Monitoring Memory usage If the system runs out of active memory then the system will start to Page or Swap. This results in significant overhead on the CPU.
39 Server Monitoring Monitoring Disk I/O Rate This can result in performance problems across the board. Typically Av Rd(ms) should be less than 10. The following example shows a client whose performance deteriorated over the course of a week.
40 Server Monitoring Monitoring Disk I/O Example Day with good performance -
41 Server Monitoring Monitoring Disk I/O Example Day with poorer performance -
42 Server Monitoring Monitoring Disk I/O Example Day with worst performance -
43 Server Monitoring Monitoring Disk I/O Does Wait Events show this information too? Yes, compare Top 5 Events for all three days, 1 st day:
44 Server Monitoring
45 New Features Paritioning Oracle supports partitioning for EBS tables. This feature has a licensing cost associated. Although partitioning has been available for several releases, Oracle does release new options with this feature. rging_best
46 New Features Native compiled PL/SQL This feature has been available for several releases. The process to enable this feature is simpler in 11g. For programs that perform a lot of work in the database, native compiled code will run much faster. Time spent waiting for SQL to complete will not be affected.
47 New Features Advanced Compression This feature has been available since 11g. There is a cost associated with this feature, but it is worth reviewing if you have large amounts of data. It reduces storage requirements and improves performance of SELECT statements. mpression_with_e-business_suite
48 New Features Test, Test, Test! With any new feature perform ample testing to validate that functionality works as advertised. For features that have a cost, perform a Cost Benefit Analysis to determine if the feature is worth the cost.
49 Continuing Education Numerous blogs available. Good place to start:
50 Continuing Education Oracle provides webcasts available from My Oracle Support. Application Technology Group (ATG) Product Information Center (PIC) [ID ] E-Business Suite Applications Technology Group (ATG) Advisor Webcasts [ID ] Advisor Webcast Current Schedule [ID ]
51 Thank You! Questions? Blog: pjacksondba.blogspot.com Twitter: pjackson_dba Fill out and return surveys!!
Oracle Database 11 g Performance Tuning Recipes Sam R. Alapati Darl Kuhn Bill Padfield Apress* Contents About the Authors About the Technical Reviewer Acknowledgments xvi xvii xviii Chapter 1: Optimizing
Oracle DBA Course Contents Overview of Oracle DBA tasks: Oracle as a flexible, complex & robust RDBMS The evolution of hardware and the relation to Oracle Different DBA job roles(vp of DBA, developer DBA,production
Oracle University Contact Us: + 38516306373 Oracle Database 11g: SQL Tuning Workshop Duration: 3 Days What you will learn This Oracle Database 11g: SQL Tuning Workshop Release 2 training assists database
Oracle University Contact Us: 1.800.529.0165 Oracle Database 12c: Performance Management and Tuning NEW Duration: 5 Days What you will learn In the Oracle Database 12c: Performance Management and Tuning
Proactive database performance management white paper 1. The Significance of IT in current business market 3 2. What is Proactive Database Performance Management? 3 Performance analysis through the Identification
Response Time Analysis A Pragmatic Approach for Tuning and Optimizing Database Performance By Dean Richards Confio Software 4772 Walnut Street, Suite 100 Boulder, CO 80301 866.CONFIO.1 www.confio.com Introduction
ORACLE DATABASE 11G: COMPLETE 1. ORACLE DATABASE 11G: SQL FUNDAMENTALS I - SELF-STUDY COURSE a) Using SQL to Query Your Database Using SQL in Oracle Database 11g Retrieving, Restricting and Sorting Data
Programa de Actualización Profesional ACTI Oracle Database 11g: SQL Tuning Workshop What you will learn This Oracle Database 11g SQL Tuning Workshop training is a DBA-centric course that teaches you how
EZManage V4.0 Release Notes Document revision 1.08 (15.12.2013) Release Features Feature #1- New UI New User Interface for every form including the ribbon controls that are similar to the Microsoft office
Oracle Database 11g: New Features for Administrators DBA Release 2 Duration: 5 Days What you will learn This Oracle Database 11g: New Features for Administrators DBA Release 2 training explores new change
Informix Performance Tuning using: SQLTrace, Remote DBA Monitoring and Yellowfin BI by Lester Knutsen and Mike Walker! Webcast on July 2, 2013! 1! Lester Knutsen! Lester Knutsen is President of Advanced
Plan de cours disponible à l adresse http://www.adhara.fr/.aspx Objectif Use the Oracle Database tuning methodology appropriate to the available tools Utilize database advisors to proactively tune an Oracle
Oracle Database 10g: New Features for Administrators Course ON10G 5 Day(s) 30:00 Hours Introduction This course introduces students to the new features in Oracle Database 10g Release 2 - the database for
Delivering Oracle Success Automatic SQL Tuning in Oracle Database 10g and 11g Lucy Feng RMOUG Training Days February 15-17, 2011 About DBAK Oracle solution provider Co-founded in 2005 Based in Englewood,
Who is my SAP HANA DBA? What can I expect from her/him? HANA DBA Role & Responsibility Rajesh Gupta, Deloitte. Consulting September 24, 2015 Introduction Rajesh Gupta - email@example.com Lead SAP HANA
PERFORMANCE TUNING FOR PEOPLESOFT APPLICATIONS 1.Introduction: It is a widely known fact that 80% of performance problems are a direct result of the to poor performance, such as server configuration, resource
Expert Oracle Exadata Kerry Osborne Randy Johnson Tanel Poder Apress Contents J m About the Authors About the Technical Reviewer a Acknowledgments Introduction xvi xvii xviii xix Chapter 1: What Is Exadata?
Oracle vs. SQL Server Simon Pane & Steve Recsky First4 Database Partners Inc. September 20, 2012 Agenda Discussions on the various advantages and disadvantages of one platform vs. the other For each topic,
COURCE TITLE DURATION DBA 11g Oracle Database 11g: Administration Workshop I 40 H. What you will learn: This course is designed to give students a firm foundation in basic administration of Oracle Database
Response Time Analysis A Pragmatic Approach for Tuning and Optimizing Oracle Database Performance By Dean Richards Confio Software, a member of the SolarWinds family 4772 Walnut Street, Suite 100 Boulder,
Oracle 11g New Features - OCP Upgrade Exam This course gives you the opportunity to learn about and practice with the new change management features and other key enhancements in Oracle Database 11g Release
Oracle University Contact Us: (+202) 35 35 02 54 Oracle Database 11g: Administration Workshop I Release 2 Duration: 5 Days What you will learn This course is designed to give you a firm foundation in basic
Oracle University Entre em contato: 0800 891 6502 Oracle Database 11g: New Features for Administrators Duração: 5 Dias Objetivos do Curso This course gives students the opportunity to learn about-and practice
Evidence-based Best Practices for JD Edwards EnterpriseOne Using Oracle 11gR2 Real Application Testing Dallas Willett & Jeremiah Wilton Technical Leads Blue Gecko, Inc. Evidence-based Best Practices for
Oracle 11g Database Administration Part 1: Oracle 11g Administration Workshop I A. Exploring the Oracle Database Architecture 1. Oracle Database Architecture Overview 2. Interacting with an Oracle Database
ORACLE UNIVERSITY CONTACT US: 00 9714 390 9000 Oracle Database 10g: Administration Workshop II Release 2 Duration: 5 Days What you will learn This course advances your success as an Oracle professional
Oracle Database 11g: Administration Workshop II DBA Release 2 This course takes the database administrator beyond the basic tasks covered in the first workshop. The student begins by gaining a much deeper
Is your database application experiencing poor response time, scalability problems, and too many deadlocks or poor application performance? One or a combination of zparms, database design and application
#9011 GeoMedia WebMap Performance Analysis and Tuning (a quick guide to improving system performance) Messina Thursday, 1:30 PM - 2:15 PM Paul F. Deaver, Sr. Consultant Security, Government & Infrastructure
Oracle 10g Performance Case Studies Martin Frauendorfer Technical Support Consultant, SAP AG firstname.lastname@example.org 1 Table of Contents. Overview Enqueue Analysis Runtime Analysis I/O Analysis Comparison
Monitoring and Diagnosing Oracle RAC Performance with Oracle Enterprise Manager Kai Yu, Orlando Gallegos Dell Oracle Solutions Engineering About Author Kai Yu Senior System Engineer, Dell Oracle Solutions
Oracle University Contact Us: +35929238111 Oracle Database 11g: Administration Workshop II DBA Release 2 Duration: 5 Days What you will learn This course takes the database administrator beyond the basic
Oracle University Entre em contato: 0800 891 6502 Oracle Database 11g: Administration Workshop I Duração: 5 Dias Objetivos do Curso This course is designed to give students a firm foundation in basic administration
1 of 5 1/17/2015 1:28 PM ORACLE DATABASE ADMINISTRATOR RESUME ORACLE DBA Resumes Please note that this is a not a Job Board - We are an I.T Staffing Company and we provide candidates on a Contract basis.
Oracle Database 11g: New Features for Administrators 15-1 Oracle Database 11g: New Features for Administrators 15-2 SQL Monitoring The real-time SQL monitoring feature on Oracle Database 11g enables you
Optimizing the Performance of the Oracle BI Applications using Oracle Datawarehousing Features and Oracle DAC 10.1.3.4.1 Mark Rittman, Director, Rittman Mead Consulting for Collaborate 09, Florida, USA,
SQL Server Training Course Content SQL Server Training Objectives Installing Microsoft SQL Server Upgrading to SQL Server Management Studio Monitoring the Database Server Database and Index Maintenance
ORACLE DATABASE: ADMINISTRATION WORKSHOP I CORPORATE COLLEGE SEMINAR SERIES Date: March 18 April 25 Presented by: Lone Star Corporate College in partnership with Oracle Workforce Development Program Format:
An Oracle White Paper November 2010 SQL Plan Management in Oracle Database 11g Introduction... 1 SQL Plan Management... 2 SQL plan baseline capture... 2 SQL Plan Baseline Selection... 10 Using and managing
Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment
coursemonster.com/us Microsoft SQL Server: MS-10980 Performance Tuning and Optimization Digital View training dates» Overview This course is designed to give the right amount of Internals knowledge and
Oracle Database 10g The Self-Managing Database Benoit Dageville Oracle Corporation email@example.com Agenda Oracle10g: Oracle s first generation of self-managing database Oracle s Approach to
Plan de cours disponible à l adresse http://www.adhara.fr/.aspx Objectif Monitor performance Describe Oracle Database Architecture Install Oracle Grid Infrastructure Install and configure Oracle Database
StreamServe Persuasion SP5 Oracle Database Database Guidelines Rev A StreamServe Persuasion SP5 Oracle Database Database Guidelines Rev A 2001-2011 STREAMSERVE, INC. ALL RIGHTS RESERVED United States patent
Real Application Testing Dave Foster Master Principal Sales Consultant The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated
1 SQL Server 2012 Optimization, Performance Tuning and Troubleshooting 5 Days (SQ-OPT2012-301-EN) Description During this five-day intensive course, students will learn the internal architecture of SQL
Best Practices for Monitoring Databases on VMware Dean Richards Senior DBA, Confio Software 1 Who Am I? 20+ Years in Oracle & SQL Server DBA and Developer Worked for Oracle Consulting Specialize in Performance
DBA Best Practices: A Primer on Managing Oracle Databases Leng Leng Tan Vice President, Systems and Applications Management The following is intended to outline our general product direction. It is intended
Performance Tuning and Optimizing SQL Databases 2016 http://www.homnick.com firstname.lastname@example.org +1.561.988.0567 Boca Raton, Fl USA About this course This four-day instructor-led course provides students
Common Anti Patterns for Optimizing Big Data Oracle Databases Vlado Barun Real World Performance Team March 19 th, 2015 Copyright 2014 Oracle and/or its affiliates. All rights reserved. Safe Harbor Statement
DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop Duration: 4 Days What you will learn Learn how to tune for optimum performance the IBM DB2 9 for Linux, UNIX, and Windows relational
Managing Database Performance Objectives After completing this lesson, you should be able to: Monitor the performance of sessions and services Describe the benefits of Database Replay Oracle Database 11g:
Real Application Testing Fred Louis Oracle Enterprise Architect The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated
Course 55144B: SQL Server 2014 Performance Tuning and Optimization Course Outline Module 1: Course Overview This module explains how the class will be structured and introduces course materials and additional
2013 OTM SIG CONFERENCE Performance Tuning/Monitoring Alex Chang email@example.com July 30, 2013 Agenda General guidelines Effective tuning goal Tuning session Tuning life cycle Common tools Case
Oracle Data Dictionary 1.1 Lesson 1 A DBAs Introduction to the Oracle Data Dictionary SKILLBUILDERS Oracle Data Dictionary 1.2 Lesson Objectives 1.2 Answer the question, what is the data dictionary? Understand
Thank you for choosing to download a Toad for Oracle trial. This guide will enable you to evaluate Toad s key technical features and business value. It can be used to evaluate the database administration
DEMYSTIFY TEMPDB PERFORMANCE AND MANAGEABILITY BY ROBERT L DAVIS Applies to: SQL Server 2008, SQL Server 2008 R2 SUMMARY This whitepaper provides clear guidance on best practices for managing tempdb to
ORACLE CORE DBA ONLINE TRAINING ORACLE CORE DBA THIS ORACLE DBA TRAINING COURSE IS DESIGNED TO PROVIDE ORACLE PROFESSIONALS WITH AN IN-DEPTH UNDERSTANDING OF THE DBA FEATURES OF ORACLE, SPECIFIC ORACLE
Oracle University Contact Us: 1.800.529.0165 Oracle Database 12c: Performance Management and Tuning NEW Duration: 5 Days What you will learn In the Oracle Database 12c: Performance Management and Tuning
MS SQL Server 2014 New Features and Database Administration MS SQL Server 2014 Architecture Database Files and Transaction Log SQL Native Client System Databases Schemas Synonyms Dynamic Management Objects
Oracle Database In-Memory The Next Big Thing Maria Colgan Master Product Manager #DBIM12c Why is Oracle do this Oracle Database In-Memory Goals Real Time Analytics Accelerate Mixed Workload OLTP No Changes
Module 15: Monitoring Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried out to ensure: Maximum availability Optimal performance
March 9 th, 2010 Oracle Total Recall Agenda Flashback Data Archive Why we need Historical Data Pre-11g methods for Historical data Oracle Total Recall overview FDA Architecture Creating and Enabling FDA
AV-004: Administering and Programming with ORACLE Oracle 11g Duration: 140 hours Introduction: An Oracle database is a collection of data treated as a unit. The purpose of a database is to store and retrieve
Upgrade Oracle EBS to Release 12.2 Presenter: Sandra Vucinic VLAD Group, Inc. About Speaker Over 20 years of experience with Oracle database, applications, development and administration tools Director,
1 Collecting Oracle AWR Reports for Database Infrastructure Evaluator Tool (DIET) by Hitachi Data Systems User Guide June 2015 Month Year Feedback Hitachi Data Systems welcomes your feedback. Please share
Course Page - Page 1 of 5 Performance Tuning and Optimizing SQL Databases M-10987 Length: 4 days Price: $ 2,495.00 Course Description This four-day instructor-led course provides students who manage and
Oracle University Contact Us: 001-855-844-3881 & 001-800-514-06-97 Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals
coursemonster.com/au IBM DB2: LUW Performance Tuning and Monitoring for Single and Multiple Partition DBs View training dates» Overview Learn how to tune for optimum performance the IBM DB2 9 for Linux,
Introducción Objetivos Objetivos del Curso Core Concepts and Tools of the Oracle Database The Oracle Database Architecture: Overview ASM Storage Concepts Connecting to the Database and the ASM Instance
D12C-AIU Oracle Database 12c: Admin, Install and Upgrade Accelerated NEW Duration: 5 Days What you will learn This Oracle Database 12c: Admin, Install and Upgrade Accelerated course will provide you with
Oracle Database Auditing Performance Guidelines Anjo Miguel Consultant July 2011 Enabling Oracle Database Audit could potentially have an impact on database performance, but how much? Is it measurable?