On Wed, 18 Sep 2002, Aaron Held wrote: > I am running into a serious performance issue with some basic queries. > > If I run something like > > select * from "Calls" WHERE > ( ("CallType" = 'LONG DIST' )) > > The search takes about 15 seconds > > if I run > select * from "Calls" WHERE > ( ( "DateOfCall"='06/19/02') ) > AND ( ( "CallType" = 'LONG DIST' )) > [DateOfCall is a DateTime field] > > it takes 15 minutes! > > both columns are indexed individually and expalain reports and Index scan for both > queries. > > Any pointers where to look next?
Are they using the same index? Have you done analyze recently? ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]