Re: Slow query using between

2006-05-05 Thread Dan Buettner
Good morning James - It looks like you have a multi-column index on the startIpNum and endIpNum columns, but it's not doing you any good, at least not for this query. You don't mention how many rows of data you're searching against, which would give a better idea as to what might be

Slow query using between

2006-05-04 Thread James Riordon
Hello, I am running Ver 14.7 Distrib 4.1.12, for redhat-linux-gnu (i386) using readline 4.3 on a Dual Xeon 2.4Ghz RHEL4 box with 4GB of RAM. I have a query that takes anywhere from .25 - .85 seconds to run. Following are the query and the related table structures I have currently set