Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Optimizer - Bug: Ignoring Index: msg#00307

db.maxdb

Subject: Optimizer - Bug: Ignoring Index

Hi,

I was wondering, whether it is a bug or normal behavior:

Having a table foo containing a date-field named "bar", and defined as an index, I run a select as:

explain select * from foo where bar between '2005-01-01' and '2005-01-31'

the index over bar is used. But since I don't know the maximum number of days I used subdate('2005-02-01', 1) for calculating the last day of the Month. But when using this inside my query as:

explain select * from foo where bar between '2005-01-01' and subdate('2005-02-01', 1)

maxdb performs a tablescan instead of using the index. This behavior started after upgrading from 7.3.??? to 7.5.21 - as far as I can remember.

From my point of view, there is no point in doing a tablescan, so I would call it a bug..

Thanks,

Dirk Zugenmaier

-------------------------------
Universitätsklinikum Freiburg
Klinikrechenzentrum, Abt. PDV
Agnesenstr. 6-8
79106 Freiburg
-------------------------------

--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo