Re: WHERE 1=2 with performance nightmares
- From: "Kim Madsen" <kbm@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 2 Aug 2007 21:02:54 +0200
To get the layout?
The fields could easily be a combo of a join, perhaps dynamically created by
the input of a user.
Its perfectly valid to only use the metadata and return no records.
If a db does a full tablescan, then its a flawed optimizer.
Doing where true=false is in no way different to doing
field=somenonexistingvalue in the sense that the result is supposed to be
the same, the constraints are the same, the results from a stored procedure
point of view should be the same etc.
--
best regards
Kim Madsen
kbm@xxxxxxxxxxxxxxxxxxxxxxxxx
www.components4developers.com
www.myc4d.com - Your access to cool code
blogs.myc4d.com - Your access to code tidbits and comments
The best components for the best developers
Application server enabling technology for developers
Also, on further thought: This is arguably a bug in TDataSet, not in
IB. There should be a way to Insert without having to Open first. Why
do a nonsense SELECT at all?
--
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: I.P. Nichols
- Re: WHERE 1=2 with performance nightmares
- From: Craig Stuntz [TeamB]
- 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: Del Murray
- Re: WHERE 1=2 with performance nightmares
- From: Craig Stuntz [TeamB]
- WHERE 1=2 with performance nightmares
- Prev by Date: Re: WHERE 1=2 with performance nightmares
- Next by Date: Re: Screen size
- Previous by thread: Re: WHERE 1=2 with performance nightmares
- Next by thread: Re: WHERE 1=2 with performance nightmares
- Index(es):
Relevant Pages
|