Subject | Re: [firebird-support] Re: Why the difference? |
---|---|
Author | Mark Rotteveel |
Post date | 2013-03-01T13:31:59Z |
On Fri, 1 Mar 2013 09:29:55 -0400, W O <sistemas2000profesional@...>
wrote:
general I'd advise against specifying ORDER BY in a view.
Mark
wrote:
> The view V_ABM_PERSONAS is:...
>
> CREATE VIEW V_ABM_PERSONAS(
> PER_IDENTI,
> FROM...
> PERSONAS P
> ORDER BYits
> P.PER_CEDULA;
>
> There is an index on the column PER_CEDULA and all the tables are using
> Primary Key or an Unique Key.What happens when you remove the ORDER BY from the view definition? In
>
> CREATE INDEX IDX_PERSONAS1 ON PERSONAS(PER_CEDULA);
general I'd advise against specifying ORDER BY in a view.
Mark