|
|
| <prev next> |
Choosing A Webhost: |
Optimizer - Bug: Ignoring Index: msg#00307db.maxdb
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> |
|---|---|---|
| Previous by Date: | jdbc driver: should a copy ..., Kevin Wilson |
|---|---|
| Previous by Thread: | jdbc driver: should a copy ..., Kevin Wilson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |
Home
| advertise | OSDir is
an inevitable website.
|