Subject | Re: View or stored procedure |
---|---|
Author | Adam |
Post date | 2006-02-05T22:40:13Z |
--- In firebird-support@yahoogroups.com, Damir Tesanovic <tdamir@...>
wrote:
view, stored procedure or trigger, then use a stored procedure. There
is currently no alter view statement which means that you will need to
write a several hundred line script to add a line to the where clause
of it! (talking from experience)
Otherwise, the view will generally give the optimiser a bit more room
to move.
Adam
wrote:
>tables
> Hi!
> If I just need to retrieve (no inserts...) some data from multiple
> should I create VIEW or Procedure? Which one is faster?If you are creating dependencies on it by using it inside another
>
> Damir
>
view, stored procedure or trigger, then use a stored procedure. There
is currently no alter view statement which means that you will need to
write a several hundred line script to add a line to the where clause
of it! (talking from experience)
Otherwise, the view will generally give the optimiser a bit more room
to move.
Adam