What resources exist for Database performance-tuning?

Oracle's very own Tom Kyte has a fantastic repository on every type of performance problem imaginable on asktom.oracle.com He usually takes the time to recreate specific problems and gives very detailed explanations.

Oracle's very own Tom Kyte has a fantastic repository on every type of performance problem imaginable on asktom.oracle.com. He usually takes the time to recreate specific problems and gives very detailed explanations.

2 +1 In any domain there's usually a shining star of wisdom. You're lucky if you can find one. For Oracle, that person is Tom Kyte.

– jplindstrom May 12 '09 at 22:28.

This guy's answer to a not-the-same-inquiry is probably a good start. stackoverflow.com/questions/368858/hidde....

And something for PostgreSQL: "Performance Optimization" at the official wiki.

If you are using an Oracle database, this guide may also help. download.oracle.com/docs/cd/B28359_01/se....

For MySQL, the performance tuning 'bible' is .

I would add that besides having your database theoretically tuned, you should profile your application using a profiler that tracks SQL calls. Despite your best intentions, a few bad calls will sneak into your application and will often cause 90% of your performance-related problems.

Quick PostgreSQL Optimization (query optimizing) Short read, explains a lot of things well and 'works' a real example which is nice for those of us that learn better that way. After seeing the wiki link to PostgreSQL, figured I'd edit this post with links for mysql/oracle docs, not really an optimization guides specifically but both are good resources, especially the mysql one. For optimization and any other tuning features.

If you are looking for SQL Server specific Performance tuning references there are an absolute shed load of quality resources available online, ranging from white papers on implementing specific technologies such as partitioning, to excellent Blogs that detail step by step instruction on how to performance tune a sql server platform. Shameless plug follows: You can start you research by reviewing the performance tuning area of my personal Blog, or for any specific SQL Server requirements/issues feel free to fire me an email. SQL Server Resources.

SQL Performance Tuning" http://books.google.com/books?id=3H9CC54qYeEC&dq=sql+performance+tuning&printsec=frontcover&source=bn&hl=en&ei=1dDoSYmjMOrlnQfX-bSYBw&sa=X&oi=book_result&ct=result&resnum=4 covers most of the major DBMS -- how to write high performing cross platform SQL queries, etc.

SQL Server Performance Decent site for MSSQL specific info.

A lot of good MySQL specific tips can be found at mysqlperformanceblog.com.

Here is another highly-regarded book that is platform-neutral: Dan Tow's SQL Tuning: Generating Optimal Execution Plans Contains some specific examples for Oracle, MS SQL, and IBM DB2, but the techniques involved should apply to other platforms, too.

For SQL Server, I primarily use: Brent Ozar's Perf Tuning Page SqlServerPedia's Perf Tuning Page.

Book: Troubleshooting Oracle Performance (Antognini Christian).

Xaprb is a must-read blog for MySQL DBAs. The author has written a book on high-performance MySQL For the happy few working with Sybase SQL Anywhere I can only recommend Breck Carter's blog and his SQL Anywhere Studio 9 Developer's Guide.

I was pretty happy when I saw this way of quickly seeing what happened with a SQL statement you are tuning under Oracle. Change the first SQL statement below to your SELECT statement and keep that hint in there. SELECT /*+ GATHER_PLAN_STATISTICS */ * FROM DUAL; SELECT * FROM TABLE(dbms_xplan.

Display_cursor( NULL, NULL, 'RUNSTATS_LAST')) ; PLAN_TABLE_OUTPUT ----------------------------------------------------- SQL_ID 5z36y0tq909a8, child number 0 ------------------------------------- SELECT /*+ GATHER_PLAN_STATISTICS */ * FROM DUAL Plan hash value: 272002086 --------------------------------------------------------------------------------------------- | Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | Reads | --------------------------------------------------------------------------------------------- | 1 | TABLE ACCESS FULL| DUAL | 1 | 1 | 1 |00:00:00.02 | 3 | 2 | --------------------------------------------------------------------------------------------- 12 rows selected. Where: E-Rows is estimated rows. A-Rows is actual rows.

A-Time is actual time. Buffers is actual buffers. Where the estimated plan varies from the actual execution by orders of magnitude, you know you have problems.

How to Identify Slow Running Queries with SQL Profiler is a good tutorial on how to go about identifying slow running queries. This will allow one to focus their attention where it is most needed.

explain.depesz.com/ helps you interpret PostgreSQL's EXPLAIN ANALYZE output. The whole Performance Tips chapter in the PostgreSQL docs is worth reading.

For people working with Oracle I recommend this link............. download.oracle.com/docs/cd/B19306_01/se... From my experiences with Oracle database development, I have found that building up a knowledge of how to use SQL, how it works and knowing what is available (supplied functions, clauses that you didn't know existed or enhanced from the last version) means I spend a lot less time having to tune sql.

I'd start out by understanding how the database works at a fundamental level. How is data stored on disk, what does creating an index do, how does query plan optimization work, how are plans cached, when to cached plans expire. If you can commit all that to memory, most of the advice about tuning seems obvious.

Here's a great book for MSSQL SQL Server Internals.

For Oracle, Cost-Based Oracle: Fundamentals by Jonathan Lewis.

Sometimes you need to know to how to fix the problem once it is identified. This will show ways to replace a badly performing cursor with a set-based operation: wiki.lessthandot.com/index.php/Cursors_a... It was specific to SQL Server but many of the techniques might transalte to other dbs as well.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions