From oracle-l-bounce@freelists.org Wed Apr 13 07:14:18 2005 Return-Path: Received: from air891.startdedicated.com (root@localhost) by orafaq.com (8.12.10/8.12.10) with ESMTP id j3DCEISn005999 for ; Wed, 13 Apr 2005 07:14:18 -0500 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j3DCEHem005993 for ; Wed, 13 Apr 2005 07:14:17 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 9150B94E28; Wed, 13 Apr 2005 06:12:06 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13877-05; Wed, 13 Apr 2005 06:12:06 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1356E952AB; Wed, 13 Apr 2005 06:12:06 -0500 (EST) Date: Wed, 13 Apr 2005 11:10:15 +0000 From: Mladen Gogala Subject: Re: case insensitive select To: jdunn@sefas.com Cc: Oracle-L@freelists.org References: <004a01c54018$03b42ea0$3e04050a@johnman> In-Reply-To: <004a01c54018$03b42ea0$3e04050a@johnman> (from jdunn@sefas.com on Wed Apr 13 07:00:31 2005) Message-Id: <1113390615l.4930l.0l@medo.noip.com> MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8bit X-archive-position: 18418 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: gogala@sbcglobal.net Precedence: normal Reply-To: gogala@sbcglobal.net X-list: oracle-l X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on air891.startdedicated.com X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL autolearn=ham version=2.60 X-Spam-Level: On 04/13/2005 07:00:31 AM, John Dunn wrote: > I am doing a slect on 15 million rows of data. I want to do a case > insensitive serach, but using the TO_UPPER clause just slows performance > dramatically. >=20 > Any other way to do it? Yes. You can try with to_lower or read about function-based indexes. That's a classic example of what they're used for.=20 --=20 Mladen Gogala Oracle DBA -- http://www.freelists.org/webpage/oracle-l