Re: WHERE 1=2 with performance nightmares
- From: "Craig Stuntz [TeamB]" <craig_stuntz@xxxxxxxxxxxxx [a.k.a. acm.org]>
- Date: 2 Aug 2007 11:19:12 -0700
Kyle A. Miller wrote:
The Interbase needs a fix. In a simple where condition, like
CustomerId=5, the database knows it needs to search the CustomerId
field looking for the value 5. It should resolve the phrase before
the search begins. It needs to know what to search for before it
actually searches. No?
No; see my other post. The "fix" proposed would not only be
hard-coding for a nonsense query but would probably violate the SQL
standard.
Moreover, the SQL standard already provides a standardized way of
retrieving metadata via system views, and doing a SELECT with an empty
result set is a lousy way of inserting a record, which is only
seriously considered here because of the design of TDataSet.
--
Craig Stuntz [TeamB] · Vertex Systems Corp. · Columbus, OH
Delphi/InterBase Weblog : http://blogs.teamb.com/craigstuntz
IB 6 versions prior to 6.0.1.6 are pre-release and may corrupt
your DBs! Open Edition users, get 6.0.1.6 from http://mers.com
.
- Follow-Ups:
- Re: WHERE 1=2 with performance nightmares
- From: Dennis Landi
- Re: WHERE 1=2 with performance nightmares
- From: Kyle A . Miller
- Re: WHERE 1=2 with performance nightmares
- References:
- WHERE 1=2 with performance nightmares
- From: Sarah
- Re: WHERE 1=2 with performance nightmares
- From: Kim Madsen
- Re: WHERE 1=2 with performance nightmares
- From: Craig Stuntz [TeamB]
- Re: WHERE 1=2 with performance nightmares
- From: Kim Madsen
- Re: WHERE 1=2 with performance nightmares
- From: Craig Stuntz [TeamB]
- Re: WHERE 1=2 with performance nightmares
- From: Kyle A . Miller
- WHERE 1=2 with performance nightmares
- Prev by Date: Re: WHERE 1=2 with performance nightmares
- Next by Date: Re: WHERE 1=2 with performance nightmares
- Previous by thread: Re: WHERE 1=2 with performance nightmares
- Next by thread: Re: WHERE 1=2 with performance nightmares
- Index(es):
Relevant Pages
|