on 01-21-2013 10:27 PM
Do they both have the same advantages and disadvantages? Should I create views (in the database) to include them in my universe instead of derived tables? why or why not?
Hi Erika,
It is up to you to go for either View or derived table.
Derived tables InLine views that are created at Universe level aginst the views created at DB level.
The additional benefit of derived tables is to use @prompt syntax in a derived table which enables you to pass parameters to the report dynamically during run time.
You also need to consider the maintainence of business logic whether to keep it in Univese or in Database.
Our general approach would be
Also refer here.
http://scn.sap.com/thread/1705193
Hope this helps.
Regards,
Mani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the case I have a SQL that needs to use @prompts I understand I can use a derived table, but what if I had to materialize this derived table to a physycal view or table? How do I do? If I transform this SQL to a view how do I do with the prompts? If I drop them from the view the view will be fed with all the records, because it won't have the filters the prompts were providing. Since the view will have all the records with no filters won't it be slower or just as slow as using a derived table with prompts?
Erika,
Yes, As view is going to deal with more number of rows, there could be a performance difference.
Utilization of the prompt is the advantage of derived tables against DB views. try consider using materialized view instead of views for improved performance. But again you have maintainence overhead as you need to manage the MV refresh as well.
It is suggested to transform the derived tables with prompts to a Materialized view or a Aggreagate table without prompt and make them as Aggregate aware at universe level to improve performance.
Hope am clear.
Regards,
Mani
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.