View of views, what will speed faster or slower why ?

we can create view of view.But will it work faster or it will be slower.
Can any one tell me the reasons.

So it is (I think) generally accepted best practice
to always write views which work only with tables and
not other views. Of course this can lead to lots of
duplication, if you have many views which are
variations on a theme. That seems a bit excessive to me, but perhaps I'm in the minority here.
I would much, for example, have no problem creating multiple layers of views in order to prevent identical logic from getting spread across lots of different views because it's almost inevitable that when the logic changes, the "variation on a theme" views are going to get out of sync.
If you have some concept of "pipeline orders" for orders that are in various stages of the pipeline, I'd have no problem creating a PIPELINE_ORDERS view and having the CUSTOMER_PIPELINE, SALESMAN_PIPELINE, and WAREHOUSE_PIPELINE views reference that view rather than embedding the "what qualifies as a pipeline order" logic in all the views in order to ensure that everyone is using the same definition. I've seen way too many cases where a simple test got coded in slightly different ways in different views resulting in subtly different output that caused subtly different bugs.
Of course, depending on the logic, you might be able to create an IS_PIPELINE function that could be put in all the views in order to centralize the same logic, but that may cause bigger problems if Oracle decides it now has to call the function a bazillion times for the bazillion closed orders in your table. To which, of course, you might decide to create a function-based index on the IS_PIPELINE function, which may or may not be an option depending on the function signature and whether all the criteria are columns in the same table. And you'll probably need to ensure the optimizer knows the return value for this function is skewed (which may be more or less difficult depending on the Oracle version). But you're pretty quickly dealing with performance issues that are at least as complicated as the performance issues you've created for the optimizer by having nested views.
Justin

Similar Messages

  • What will be the output and why

    Hi All,
    Can anyone help me in this.
    package javatests.test;
    import java.util.HashMap;
    import java.util.Map;
    public class CopyOfHashFunction1 {
         private int hashCode;
         public static void main(String[] args) {
                Map hashTable = new HashMap();
                String key1 = new String("a");
                String key2 = new String("a");
                System.out.println(key1.hashCode());
                System.out.println(key2.hashCode());
                System.out.println(key1 == key2);
                hashTable.put(key1, 1);
                hashTable.put(key2, 2);
                System.out.println("Size = " + hashTable.size());
                System.out.println("Value when key1 is searched:"+hashTable.get(key1));
                System.out.println("Value when key2 is searched:"+hashTable.get(key2));
    }Output:
    97
    97
    false
    Size = 1
    Value when key1 is searched:2
    Value when key2 is searched:2I feel there should be two entries in the HashTable, because when putting the second entry in the HashTable hash collision will happen and equals() method of String will be called. As the equals() method is returning false because the object references are different so HashTable should make another entry in the same bucket.
    Please let me know the answer.
    Thanks
    Jitendra

    Yes you are right jverd because the code in String.java is like, so it used to compare the string character by character.
    854       public boolean equals(Object object) {
      855           if (object == this) {
      856               return true;
      857           }
      858           if (object instanceof String) {
      859               String s = (String) object;
      860               int hash = hashCode;  // Single read on hashCodes as they may change
      861               int shash = s.hashCode;
      862               if (count != s.count || (hash != shash && hash != 0 && shash != 0)) {
      863                   return false;
      864               }
      865               for (int i = 0; i < count; ++i) {
      866                   if (value[offset + i] != s.value[s.offset + i]) {
      867                       return false;
      868                   }
      869               }
      870               return true;
      871           }
      872           return false;
      873       }

  • What Download Speed Do I Need to View HD Movies?

    What download speed do I need to view HD movies on Apple TV?

    The first thing to check would be your internet download speed, you can do this at www.speedtest.net.
    1080p HD movies require a recommended speed of 8 Mbps, 720p HD movies require a recommended speed of 6 Mbps, while SD movies require a recommended speed of 2.5 Mbps.

  • What will happen when I lock a view?

    When I lock a view using lock table* statement, what will happen?*
    Is the view get locked?
    Or all the base tables are locked from which view is created?
    Or no lock is applied?
    :D

    OrionNet wrote:
    Sohil,
    Exact what lock statement you are using.
    If following statement used, then you will able to query (select) both the table and view.
    ??? Oracle table lock never keeps other users from querying a table, and a query never acquires a table lock. So I am not sure what were you trying to say. Anyway, locking a view locks all base tables:
    SQL> create or replace
      2  view emp_dept_vw
      3  as
      4  select ename,dname
      5  from emp e,dept d
      6  where d.deptno = e.deptno;
    View created.
    SQL> select object_name
      2  from user_objects
      3  where object_id in(select id1 from v$lock where sid=(select sid from v$mystat where rownum=1))
      4  /
    no rows selected
    SQL> lock table emp_dept_vw in share update mode;
    Table(s) Locked.
    SQL> select object_name
      2  from user_objects
      3  where object_id in(select id1 from v$lock where sid=(select sid from v$mystat where rownum=1))
      4  /
    OBJECT_NAME
    DEPT
    EMP
    SQL> SY.

  • How do you get timeline view on imovie 08  and speed up a clip on imovie 08

    how do you get timeline view on imovie 08  and speed up a clip on imovie 08

    Hi
    You can not - Nobody else (if not a very selected few at Apple dev.group)
    TimeLine was lost in iMovie'08 and 09 and a very simple one re-introduced in iMovie'11
    Speed Change - Was omitted in iMovie'08 - and returned in iMovie'09 - BUT has to be used in a certain way - the glider/slide if used - will destroy the audio (a Known BUG - in both iM'09 and iM'11) but use of pre-set fixed no. 25% 50% 100% 200% etc. will work.
    Yours - still using iMovie HD6 - and LOVE it - Bengt W

  • My macbook is going to sleep while I'm working or viewing something. I will sometimes have to open and close it several times to get it to "wake up" again. Any suggestions?

    my macbook is going to sleep while I'm working or viewing something. I will sometimes have to open and close it several times to get it to "wake up" again. Also, no sound comes out of my Macbook. I only hear with earbuds or headphones. Any suggestions?

    If you have more than one user account, you must be logged in as an administrator to carry out these instructions.
    Triple-click anywhere in the line below to select it:
    syslog -k Sender kernel -k Message CSeq "Previous Shutdown" | tail | open -f -a TextEdit
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
    A TextEdit window will open with the output of the command. Post the contents of that window, if any — the text, please, not a screenshot. The title of the window doesn't matter, and you don't need to post that.

  • I have one HDMI port on my television that is currently used for my hard drive/free view box.  What kind of adaptor can I buy so I can have the hard drive and my apple tv device plugged into the same HDMI PORT?

    I have one HDMI port on my television that is currently used for my hard drive/free view box.  What kind of adaptor can I buy so I can have the hard drive and my apple tv device plugged into the same HDMI PORT? Is it a switch or a splitter?  And where is it best to buy one?  Thanks!

    Welcome to the Apple Community.
    You need an HDMI switch.

  • I cant view attached vidoes what can I do ?

    I cant view attached vidoes what can I do ?

    you may have broken something inside, although you cant see much damage on the outside.  You can bring it somewhere to get it looked at, but iPhones are generally replaced, not fixed.

  • View Links? What do they offer?

    I'm new to BC4J and I may be misunderstanding what view
    links are for but it seems to me that I can accomplish
    the same thing with a View Object.
    What I mean is:
    It seems that the main purpose of View Links is to join View
    Objects.
    Why join the Views when you can join the Entity Objects in a View
    Object.

    Athough there are some indications that Apple is expanding the AppleTV product line (and have added a number of apps to it over the last few months), until such time as an official annoucement is made, no one here would be able to tell you what is in store (this is a user-to-user forum).
    If you think Roku serves your needs better, perhaps that is what you should purchase.

  • BOE XI 3.0 CR Viewer Problem: Parent window will wrongly refresh

    It's a common scenario in XI R2 version: Link "Level1.rpt(with parameter)"  to "Level2.rpt" and pass one field's value to Level2, and Level2 need to be opened in a new window. But in XI 3.0, I can't find a way to achieve that.
    Steps to Reproduce: 
    Level1.rpt has a datatime parameter and a field called country. On "country" field, create an Enterprise Link and choosing "new window" and pass the field value to "Level2.rpt". Viewing in InfoView, showing Level1.rpt after input the datetime, then click one country, will open new window to see "level2.rpt", but closing the new window, will find "Level1.rpt" has been refreshed, again it prompts the parameter input dialog for user to input, but actually we don't need level1.rpt to be refreshed.

    Hi,
    - the user that is supposed to publish a report needs to be part of a role that has been imported
    - that role needs to have the rights to view, edit, add, modify object as part of the role folder (or higher in the folder structure like the SAP system ID Folder).
      detailed list of rights :
         Add objects to the folder that the user owns
         Add objects to the folder
         Copy objects to another folder that the user owns
         Copy objects to another folder
         Delete objects that the user owns
         Delete objects
         Edit objects
         Edit objects that the user owns
         Modify the rights users have to objects
         View objects
         View objects that the user owns
    - you then need to assign a principal to the user group in BOE (CMC > Users and Groups > select the group > add principal) and assign the same rights
    - then go to the Access Levels and use the Manage > user security option and give the role the following rights :
         View objects
         View objects that the user owns
         Edit Objects
         Edit objects that the user owns
         Use Access level for security assignment
    Ingo

  • Why the every time Empty view is created. what is the  use of Empty view?

    Hai Experts,
                         im working  on Web Dynpro ABAP i have doubt when ever we create the component One window and
                         one View created by default.but logicaly one empty view also created (not physically).
                         can u please explain me why the empty view is created what is the usde of it.
                           this is not a interview question .i searched the forums i cant get answer.
    Thanks in adv.

    hi ,
    empty is not a mandatory thing in webdynpro component ..  but to get the perfect picture about  the importance and usage of this  Empty views and Empty windows. * i suggest you to check the statefull stateless webdynpro componet and relate the same*
    pl find the same in below URL:
    [http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/e0/202d4108f08739e10000000a1550b0/content.htm]
    hope it helps you,
    Regards,
    Kranthi.

  • I'm trying to update my apps on my iphone 4s, but it keeps telling me to tap continue and view billing information, what do I do?

    I'm trying to update my apps on my iphone 4s, but it keeps telling me to tap continue and view billing information, what do I do?

    Sounds like the credit card you have on file is probably invalid/expired.   You'd need to correct that or set the payment method to None.

  • Powerpoint Mac 11.3.2 version converting to Google Docs Presentation, I'm told I need Quicktime and a compressor to view images. What does this mean?

    Starting with files in
    Powerpoint Mac 11.3.2 version converting to Google Docs Presentation, I'm told I need Quicktime and a compressor to view images. What does this mean?

    Were you using third-party software when the panic occurred? Is the panic repetitive or it just happened once? IN the latter case it could simply be a software glitch. But if it's repetitive then there's some other problem either hardware or software. Use the Console application in the Utilities folder and review the console log around the time of the panic to see if there are additional clues to the cause of the panic.
    The error indicates that the problem was a failure to respond to an interrupt by the CPU. Now this could simply be caused by a software glitch, but it could be a hardware problem related to the CPU. In the latter case the panic would probably become repetitive, in which case you would want to take the computer in for service to be sure the CPU isn't failing.

  • What r the trns code for maintenance view, help view and projection view

    hi all
    what r the transaction code for maintenance view, help view and projection view
    can anyone tell me how to create maitenance, help and projection view.
    with an example
    regs
    hari

    <b>What is the Different Types and Usage of Views
    The followings are different types of views:</b>
    - <b>Database View   (SE11)</b>
    Database views are implement an inner join, that is, only records of the primary table (selected via the join operation) for which the corresponding records of the secondary tables also exist are fetched. Inconsistencies between primary and secondary table could, therefore, lead to a reduced selection set. 
    In database views, the join conditions can be formulated using equality relationships between any base fields. In the other types of view, they must be taken from existing foreign keys. That is, tables can only be collected in a maintenance or help view if they are linked to one another via foreign keys.
    - <b>Help View    ( SE54)</b>
    Help views are used to output additional information when the online help system is called. 
    When the F4 button is pressed for a screen field, a check is first made on whether a matchcode is defined for this field. If this is not the case, the help view is displayed in which the check table of the field is the primary table. Thus, for each table no more than one help view can be created, that is, a table can only be primary table in at most one help view. 
    -<b> Projection View  (SE11)</b>
    Projection views are used to suppress or mask certain fields in a table (projection), thus minimizing the number of interfaces. This means that only the data that is actually required is exchanged when the database is accessed.
    A projection view can draw upon only one table. Selection conditions cannot be specified for projection views.
    <b>- Maintenance View   ( SE54 )</b>
    Maintenance views enable a business-oriented approach to looking at data, while at the same time, making it possible to maintain the data involved. Data from several tables can be summarized in a maintenance view and maintained collectively via this view. That is, the data is entered via the view and then distributed to the underlying tables by the system.
    reward   points if it is usefull...
    Girish

  • HT3209 Purchased DVD in US for Cdn viewing. Digital download will not work in Cda or US? please help with new Digital code that will work

    Purchased DVD in US for Cdn viewing. Digital download will not work in Cda or US? please help with new Digital code that will work

    You will need to contact the movie studio that produced the DVD and ask if they can issue you a new code valid for Canada. Apple cannot help you, and everyone here in these forums is just a fellow user.
    Regards.

Maybe you are looking for

  • Problem with mail 4.6

    Just installed the new security patch and now mail doesn't work.  Help!

  • How to get Locale from Character.UnicodeBlock

    Hi All, For Ex: I enter Japanese language (Hiragana/KATAKANA characters) in the text field. My expected result is Locale: 'ja' (this is belongs to Japaneses language) How to get locale value from Character.UnicodeBlock. or we have any other way to ge

  • Livecycle Javascript

    I built a XFA based dynamic form template using livecycle. I heavily use javascript to look through the xml bound to a page and add rows to tables dynamically. Example below: var locationTotal = xfa.resolveNodes("Page1.dataNode.Location[*]").length;

  • Memory monitor exception

    I am working on a mobile game using JSR-184 and WTK 2.2.0. When I try to run the program with the memory monitor enabled (on emulator) I always end up with the following exception: Exception in thread "Thread-5" java.lang.RuntimeException: Inconsiste

  • Sync. VO

    Hi, I'm new to Jdeveloper and I'm strugling with a problem concerning VOs. I've created a VO like: String amDef = "model.AppModule"; String config = "AppModuleLocal"; ApplicationModule am = Configuration.createRootApplicationModule(amDef,config); Vie