Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Drop database in Oracle 10g Oracle
  • TOP-N Sql to find Nth max or Top N rows Oracle
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix
  • Changing unix system clock when Oracle database is running. Oracle
  • Find nth max and min. Oracle
  • Vivek’s egrep commands to trace problem. (on linux x86-64) Linux/Unix
  • secure crt settings Linux/Unix
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • find_open_cur.sql Find open cursorts per session Oracle
  • V$transaction notes for finding XID composition. Oracle
  • ENQ: KO – FAST OBJECT CHECKPOINT tips Oracle
  • AWR license Oracle
  • proc.sql Oracle
  • Day to day MYSQL DBA operations (Compared with Oracle DBA) MYSQL
  • get_vmstat_solaris Oracle

Composite Index creation tip from Vivek

Posted on 06-Feb-2007 By Admin No Comments on Composite Index creation tip from Vivek

When you create a composite B-tree index, you should consider the following.

The most restrctive condition: The condition that returns the least number of rows. The column that is involved in this condition, should be the leading column of B-tree index.

So for finding the candidate of composite index columns, column order should be..

( Column involved in the most restrictive condition, …….. , column involved in the least restrictive condition).

Also, consider the data distribution while checking restrictive columns. Above analysis will work better for uniformly distributed column values.

Oracle, SQL scripts

Post navigation

Previous Post: Histogram information
Next Post: Another export with Query

Related Posts

  • currwait.sql Oracle
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • refre.sql Oracle
  • Oracle Standby Database Library Index from Metalink Oracle
  • RAC with RHEL4 and 11g Oracle
  • Clean up Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • Oracle Release Explaination Oracle
  • Roles and Stored Procs II Oracle
  • switchover for primary database Oracle
  • CPU speed on Linux Linux/Unix
  • Search and replace editor command in vi Linux/Unix
  • Committing distributed transaction using commit force Oracle
  • findinfo.sql (SQL for getting CPU and Active session info) Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme