‎2007 Oct 16 7:20 PM
Hi Friends,
when i am executing the database view(contents)..
its taking so much time.
what is the reason..and i am giving max no.of hits are only 10.
why its taking so much time.
pls. anyone explain.
regards,
‎2007 Oct 16 7:24 PM
Database views are implemented with an equivalent view on the database.
Database views should be created if want to select logically connected data from different tables simultaneously.
Database views implement an inner join.
Application programs can access the data of a database view using the database interface. (Just as we write select queries on database tables, we can write them for views as well.)
So when you execute view, it executes the definition.This definition execution is taking a long time. Which db view are you executing?
ashish
‎2007 Oct 16 8:14 PM
Hi Ashish,
it is a zview .. not standard view...
the zview is created bt 3 tables ..
that are cobk , coep and CE4HINC_ACCT tables..
i am executing this vew directly.. its exection time very slow.
help me.. what is the reason.
regards,
‎2007 Oct 16 8:16 PM
Would you post the code of the SELECT statement from your program?
Rob
‎2007 Oct 16 8:21 PM
hi rob,
i am not executing the view from report.
i am exceting view directly..
it is taking so much time..
in this view .. there are 3 tables are used.(joined)
regards,
‎2007 Oct 16 8:23 PM
‎2007 Oct 16 8:36 PM
COPA tables contain huge data. you need to be very specific while joining the tables.
Please check JOIN conditions. And try to be as specific as you can by adding more conditions.
ashish
‎2007 Oct 16 7:25 PM
Hi Venu,
Check whether you have JOIN condition on primary key of tables. Sometimes it will take lot of time if you have JOIN condition on non-primary key values.
Thanks,
Vinay
‎2007 Oct 16 7:26 PM