Subject | RE: Re[2]: [firebird-support] Re: Using VIEW (or not) |
---|---|
Author | Riho-Rene Ellermaa |
Post date | 2003-11-25T12:17:47Z |
OK, so the problem is not in view.
select distinct currency from v_stat_history where sdate between
'1.10.2003' and '3.10.2003' and accid=2 order by row
(9 sec)
select currency from v_stat_history where sdate between '1.10.2003' and
'3.10.2003' and accid=2 order by row
(1.5 sec)
The statstics and PLAN are exactly the same. Why so big time difference?
Riho Ellermaa
select distinct currency from v_stat_history where sdate between
'1.10.2003' and '3.10.2003' and accid=2 order by row
(9 sec)
select currency from v_stat_history where sdate between '1.10.2003' and
'3.10.2003' and accid=2 order by row
(1.5 sec)
The statstics and PLAN are exactly the same. Why so big time difference?
Riho Ellermaa