Database performance tuning strategies | eWeek

Database performance tuning strategies

Verfasst von
eWEEK EDITORS
eWEEK EDITORS
Feb 22, 2002
1 minute read
eWeek Inhalte und Produktempfehlungen sind redaktionell unabhängig. Wir können Geld verdienen, wenn Sie auf Links zu unseren Partnern klicken. Mehr erfahren
  • Check that all columns where searches or sorts take place are indexed unless tables are very small or have high levels of updates. One place where indexes are overlooked (and very necessary) is on the parent column of a foreign key relationship.
  • Consider adding to an index all the columns needed by frequent queries so those queries dont have to look up both index and table data.
  • Tables physical order on disk should reflect the order needed by queries that retrieve the largest number of rows (this could result in a table thats not in primary key order).
  • Column order matters when creating indexes. The column that does the most to narrow down the size of the final result set should be first in the index.
  • Be sure that table data distribution statistics are calculated and kept up-to-date. Missing or incorrect statistics can result in disastrously slow queries.
  • Once the database is in final shape, inspect query execution plans and use provided query and index analysis tools to be sure nothing major was missed.
  • For better performance, rewrite SQL queries to remove subselects.
  • Continue to monitor performance issues (such as tracking the most resource-intensive queries) to see how tuning might change to support current usage.
eWeek Logo

eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site's focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

Eigentum von TechnologyAdvice. © 2026 TechnologyAdvice. Alle Rechte vorbehalten

Werbetreibenden-Offenlegung: Einige der auf dieser Website erscheinenden Produkte stammen von Unternehmen, von denen TechnologyAdvice eine Vergütung erhält. Diese Vergütung kann beeinflussen, wie und wo Produkte auf dieser Website erscheinen, einschließlich beispielsweise der Reihenfolge, in der sie erscheinen. TechnologyAdvice schließt nicht alle Unternehmen oder alle auf dem Marktplatz verfügbaren Produkttypen ein.