HINTS and VIEWS question

Hi
I trying to optimise the query on a 6 table view.  From looking at the way the view is queried and the columns that some tables provide (several tables only provide a single column in the view definition) I have created indexes for 3 of the tables to optimise the query.
I've broken down the view into a series of SELECTs in ABAP and using hints I can get about a 30% improvement.  If I can get MaxDB to use the same hints when using the view the query would even be faster as it wouldn't have the ABAP overhead.
I've tried /*+ JOIN( INDEXACCESS("TAB3Z00"), INDEXACCESS("TAB4Z00"), INDEXACCESS("TAB6~Z00")) */.
Does the JOIN hint work with views? Would a hint be likely to work?
Thanks
Doug

Continued from previous post:
I have simulated the view using a number of select statements and loops of internal tables.  Creating the indexes and using the
hint eg INDEXACCESS("ILOA~TEMP")  in the relevant SELECT had a positive impact in the query performance:
JOIN           TIME               TIME(WITH INDEX AND HINT)      ROWS
T_00 and T_01     180s               180s                     73K
*T_03*          122s                71s                    73K
*T_02*          169s                47s                    73K
T_04          292s               292s                    141K
*T_05*          318s               134s                    141K
The explain plan
OWNER     TABLENAME     COLUMN OR INDEX          STRATEGY                    PAGECOUNT
     T_00          AFIH~Z01          RANGE CONDITION FOR INDEX          13042
                              MANDT (USED INDEX COLUMN)                          
                              IWERK (USED INDEX COLUMN)                          
                              MANDT (USED KEY COLUMN)                            
     T_01                         JOIN VIA MULTIPLE KEY COLUMNS          33127
                              MANDT (USED KEY COLUMN)                            
                              AUFNR (USED KEY COLUMN)                            
     T_02                         JOIN VIA MULTIPLE KEY COLUMNS          42874
                              MANDT (USED KEY COLUMN)                            
                              AUFNR (USED KEY COLUMN)                            
     T_03                         JOIN VIA MULTIPLE KEY COLUMNS          20135
                              MANDT (USED KEY COLUMN)                            
                              ILOAN (USED KEY COLUMN)                            
     T_04                         JOIN VIA RANGE OF MULTIPLE KEY COLUMNS     75552
                              MANDT (USED KEY COLUMN)                            
                              AUFPL (USED KEY COLUMN)                            
     T_05                         JOIN VIA MULTIPLE KEY COLUMNS          85860
                              MANDT (USED KEY COLUMN)                            
                              AUFPL (USED KEY COLUMN)                            
                              APLZL (USED KEY COLUMN)                            
                         NO TEMPORARY RESULTS CREATED                 
          SHOW               RESULT IS COPIED   , COSTVALUE IS          35012
Thanks
Doug

Similar Messages

  • EUL and Viewer Question

    Hi,
    I've multiple EUL's(OASIS_US, XXXEUL_US) on the database. I'm able to access both the EUL's from Discoverer Administrator and Discoverer Desktop 9i to create folders and workbooks. However, from iViewer I'm able to access XXXEUL_US - EUL only and not OASIS_US. Could you please shed light on what I could be missing asap.
    Thanks
    T

    Hi T,
    Looks like you are using Oracle E-Business. If you launch
    discoverer viewer from E_Business then your ICX profile settings determine
    which EUL you be connecting to.
    The ICX profile settings is in your E-Business profile settings.
    Regards
    Roelie

  • Viewing and purchasing on Desktop / Web Viewer Question.

    I understand that if you share free content via your iOS app it can be viewed in a browser (with some features missing like swiping of images .)
    My question is this....
    I have a Professional account... Can a person purchase the magazine and view the whole magazine via a Desktop computer with the DPS Web Viewer? Or its only limited to free content on your web browser but they have to have a iPad to view the whole mag?  Do they get full access on the desktop if they purchase.
    Thanks
    Ron

    For a professional customers, only the free content that was shared can be viewed on the web viewer/desktop. For enterprise customers, restricted content can be accessed via entitlement using the Content Viewer for Web SDK

  • Comments and hints in view query

    Hi,
    how can i use hints and comments in view?
    after saving and reopening view all my comments and hints are lost...
    thanks.

    Hi Philip,
    please not that the "PRECEDINGAND" (missing space) bug, which had a comment workaround (see Re: wrong convertation of script in view editor is still there and that because of the removed comments, it is actually not possible to get around this one.
    Best regards,
    Blama

  • When I go to youtube and view a video clip it usually asks if i want to save the video I'm watching. Now all of a sudden it no longer asks the question. How do I get it back?

    when I go to youtube and view a video clip it usually asks if i want to save the video I'm watching. Now all of a sudden it no longer asks the question. How do I get it back?

    I believe that might be related to this:
    See: http://real.custhelp.com/app/answers/detail/a_id/7303/p/3/c/2222/r_id/119487
    Real is always, it seems, late in releasing updates for new browser updates. They are given the same opportunity during the Firefox pre-release testing as other developers to be sure that their products will work with new Firefox releases.
    But, alas, always the same problem!

  • Newbie question about entity and view objects

    Hi everyone,
    My first ADF application in JDeveloper is off to a difficult start. Having come from a forms background, I know that it is necessary avoid using post-query type lookups in order to have full filtering using F11/Ctrl+F11. This means creating an CRUDable view and getting as much of the lookup data as possible into the view without losing the ability to modify the data. In JDeveloper, I do not know how to build my data model to support that. My thought was to start with a robust updateable view as my main CRUD EO and then create a VO on top of that with additional EOs or VOs. But, I have found that I cannot add VOs to another VO. However, if I link the VOs then I have a master-detail which will not work for me.
    For example, I have two joins to CSI_INST_EXTEND_ATTRIB_V shown in the queries below and need to have that show in the table displaying the CRUD VO’s data. It seemed that the best way to do this is to create a CSI_INST_EXTEND_ATTRIB_V entity object and view object. The view object would have two parameters, P_INSTANCE_ID and P_ATTRIBUTE name. Both the building and the unit are needed on the same record, and this is not a master-detail even though it might look that way. (A master-detail data control will not work for me because I need all this data to appear on the same line in the table.) So, I need help figuring out the best way to link these to the main (CRUD) view; I want as much of this data as possible to be filterable.
    select
    cieav.attribute_value
    from
    csi_inst_extend_attrib_v cieav
    where cieav.instance_id = p_instance_id
    and cieav.attribute_code = 'BUILDING NAME'
    select
    cieav.attribute_value
    from
    csi_inst_extend_attrib_v cieav
    where cieav.instance_id = p_instance_id
    and cieav.attribute_code = 'UNIT NAME'
    Ultimately, I need to display a ton of data in each record displayed in the UI table, so a ton of joins will be needed. And, I need to be able to add records using the UI table also.
    James

    Hi Alejandro,
    Sorry if I caused confusion with my first post. What I had in mind assumed that I could have a single CSI_INST_EXTEND_ATTRIB_V EO with a BuildingVO and UnitVO on top of it. So, I wrote the queries individually to show how I would invoke each view. When I realized that confused the issue, I rewrote the query to explain things better.
    Now having seen your 2 queries. You need to create 2 EO. One for each table. Then create an association between the 2 aeO (this will be the join you are talking about). Then, you need to create a VO based on one of the EO and after you can modify and add the second EO (in here you select the join type).
    After your done with this, youll have 1 VO that supports CRUD in both tables.
    There were three tables in the query: CIEAV_BUILDING, CIEAV_UNIT, and T -- the main CRUD table. When you say that I should create two EOs, do you mean that they are to be for CIEAV_BUILDING and CIEAV_UNIT? Or, CIEAV and T? Assuming CIEAV and T, that sounds like it would allow me to show my building or unit on the record but not both.
    By the way, everything is a reference except for the main CRUD table.
    Look forward to hearing from you. Thanks for your help (and patience).

  • Hi, i am trying to open and view a report that comes from another server with different odbc connection

    hi, i am trying to open and view a report that comes from another server with different odbc connection
    i created a crystal report for a mysql database on my machine and everything works great
    but we have other reports that come from other machines with different odbc connection
    and this its not working when opens the report asks for credentials
    and i cannot use the remote ip for these reports that come from other machine
    question
    if i cannot connect to remote ip to open the report
    for each report i have to create a database the report database on my machine and then open the report ?
    or there is some other way to open the report ?
    i am using visual studio 2013 and mysql and
       <add key="MYSQLODBCDRIVER" value="{MySQL ODBC 5.3 UNICODE Driver}"/>
    thanks

    short
    i have a report that it was created on another server with a specific dsn
    now i am trying to open the report on my machine
    the database from the other server does not exist on my machine
    the server machine where the report was created the ip its not accessible
    question ?
    can i open the report on my machine or its impossible ?
    thanks

  • How to use Device Profiles and Viewing Conditions Profile in Photoshop Elements 11?

    In trying to get to grips with the Colour management aspects of PSE11, I have encountered the following problems:
    Having selected "Display" a sequence of clicks (Change display settings -> Advanced settings -> Colour Management -> Colour Management tab -> Colour Management)
    gives a screen which includes the headings:
    Device Profile  and Viewing Conditions Profile.
    1. Device Profile. Besides sRGB and ARGB, the profile list includes the profiles for all of the Epson papers. (I have an Epson Stylus Photo PX810FW).
    I changed the Profile to an Epson Grayscale, this was accepted within the menu, but there are no changes from normal when I viewed the image on the Windows screen or within
    PSE11. ("normal" is sRGB or ARGB).
    I thought it worth a try to test that, if I wanted the display image to closely represent what I would get on a particular Epson paper, this may be a way to do it.(I suspected this approach because I have never
    seen it in the literature!).
    So what is the purpose of all of the paper Profiles appearing in the Display listing?
    2. The Viewing Conditions Profile has also several options. I have tried to find the criteria for choosing one rather than the other, but failed to find any information. Can anyone help? I seek general guidance
    rather than the details of the Profiles.
    As a seperate question:
    Selecting Image on the PSE11 menu across the top of the displayed image, and then Convert Colour Profile, I tried this process on an image, converting tiff to sRGB. When saved there was an extra asterisk in the saved title but in this case,
    the file was still labelled tiff and there was no change in the number of Mbs. If a conversion has taken place, how is one to know?  Does saving a tiff file as jpeg change its colour profile? When is it useful to use this feature?
    Many thanks to all responders! 

    Addressing your second question, you are confusing two different things.
    tiff is an image file format, as is jpeg, as is psd, as is png, as are dozens (if not hundreds, http://en.wikipedia.org/wiki/Image_file_formats) of other formats.
    A colour profile represents the colour characteristics of devices so that, for example, displays know how to display the colours, printers know how to print them.
    Image files MAY, but do not have to, contain colour profiles.
    For details:
    http://help.adobe.com/en_US/creativesuite/cs/using/WS52323996-D045-437d-BD45-04955E987DFB. html
    http://en.wikipedia.org/wiki/Color_management#Color_profiles
    http://en.wikipedia.org/wiki/ICC_profile
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • How to set my favorite tv chanels and view schedule on internet?

    How to set my favorite tv chanels and view schedule on internet?

    That's a good question - I've been trying since fios came out with fios tv central to view the tv guide online. It keeps saying "invalid user name/password". I've changed them numerous times, contacted online help, talked to phone help (who's also baffled), all to no avail. I actually saw the guide once when I first visited the site, so it exists. Please let me know if you figure out how to get on there because setting the favorites has to be a breeze compared to that.

  • Control Hints and Locales

    We are trying to set the label hints for entity and view objects in a BC4J project. One developer set them using the "English (Canada)" locale and another developer tried to edit the application using "English (United States)" but the hints did not appear because of the different locales.
    We tried setting a label under the "English" locale to work for both, but it didn't seem to work for either US or CA. Is there some way to set a locale for English in general so it will work for English regardless of the region?
    Thanks,
    Bill

    This is not possible in 9.0.2. In our 9.0.3 release we moved the UI hints to Java resource bundles which mayour current scenario possible.

  • Diff between Component controller,Custome controller and  View controller

    hi,
        Can any body tell me the following details,
    1.difference between the Component controller,Custome controller and  View controller in WD-ABAP.?
    2.what is Lead Selection?   
    Regards,
    Ravi

    Hi Ravi.
    The component controller is visbile to all views in a component. So all context nodes and methods you create here can be accessed from all views in the component. This way you can share data between the views by mapping context nodes or thru method calls. You can also mark methods and nodes as interface so that they are acessable from other components that define component usages to this cmponent.
    Custom controller is quiet similar to the component controller. You can define it if you want to group some views with a custom controller for a certain functionality.
    If you want to access a custom controller in a view you have to define the usage first on the properties tab of the view.
    A view controller is only visible in the view itself. So all methods or context nodes you define here are only accesable by the current view.
    The lead selection is in most cases the current selected element in a context node. The lead selection is used by many UI elements to determine which element has to be shown (e.g drop down).
    If you have a table with single selection the current selected table row is the lead selection element of the bound context node.
    SO you can get the lead selection element easily in any mthod by calling context_node->get_element( ).
    Hope this clears your questions.
    Cheers,
    Sascha

  • Flash Security Settings and Random Questions not Displaying

    Hey folks,
    I created a Captivate 4 project with 3 slides and a question pool of about 70 questions in which I am randomly pulling in. I am using IE7 and Flash 10. Publishing in Flash 10. If I publish or view in Preview in a web browser the project launches, plays the first 3 slides, and then goes blank when the first question should appear. Note: previewing the project AND publishing the project as an .exe does launch and display all the questions correctly. It ends up being a flash security issue. I went to the adobe site and via the Adobe Flash Player Security Manager" I entered in the main .SWF captivate-generated file as a trusted file and then re-ran the published captivate project and it ran correctly. Question is ... what do I need to do to set up flash or my project so I don't have to do this for every new project that I deploy? I don't want to have the users have to go in and add whatever I deploy as a trusted file. It's also a little confusing as to why the first three slides played and it stopped at the questions ... seems like if it's not a trusted file, that it wouldn't run at all.
    Thanks for any help!
    Chris

    Hello again
    I think I'd be investigating a temporary web server to host on until things are ready. Here's where it will help.
    By providing files to the end users, if you are copying files over you end up having to explain how to save the files. You then have to walk them through setting the Flash Security so they can properly view. It all just becomes a pain in the kazoo.
    If you can find some server space, you simply upload the content and provide a link for the users to view the content.
    Other than that, if you are insistent that copying is the way to fly, I might suggest you establish a known location where you want everyone to copy their files. Perhaps C:\TestFolder. Then provide some instruction on how to configure the folder with the relaxed Flash Security. From there forward, anything they copy to the folder should need no security adjustment.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Create sequence, function and view all at once -script or something similar

    Hi I would like to know in what way can I write a script or something like that which would define names for a sequence, function and a view in the beginning (for example TEST_SEQ, TEST_FJ, TEST_VIEW...) and after that create this sequence, function and view with definitions like
    CREATE SEQUENCE  TEST_SEQ
    MINVALUE 1 MAXVALUE 999999999999999999999999999
    INCREMENT BY 1 START WITH 1 NOCACHE  NOORDER  NOCYCLE;
    create or replace FUNCTION TEST_FJ RETURN NUMBER AS
    tmp number;
    BEGIN
    select TEST_SEQ.NEXTVAL  into tmp from dual
    RETURN tmp;
    END TEST_FJ;
    and so on...
    In the end I would also like to grant some rights on these objects I just created:
    grant select on TEST_SEQ to public;
    grant execute on TEST_FJ to public;
    So my question is how to package all these things together so I can execute them from a single file in SQL Developer, and if i need to change the names of these tables I want do it in one place in the beginning of this script (or something like a script, I'm not sure what)...
    Thanks in advance!

    hi,
    hope help you...
    this is my basic generic solution...
    create or replace procedure createSequence( psequenceName in varchar2 ) is
    begin
    execute immediate 'create sequence ' || psequenceName ;
    execute immediate 'grant select on ' || psequenceName || ' to public ';
    end ;
    create or replace function getNextVal( psequenceName in varchar2 ) return number is
    queryText varchar2(100) := 'select <sequence_name>.nextval into :next_value from DUAL' ;
    next_value number ;
    begin
    queryText := replace(queryText,'<sequence_name>',psequenceName);
    execute immediate queryText into next_value ;
    return( next_value ) ;
    end ;
    Edited by: edogt on Nov 27, 2008 5:33 AM
    Edited by: edogt on Nov 27, 2008 5:35 AM
    Edited by: edogt on Nov 27, 2008 5:35 AM

  • Saving and viewing aspx/pdfs in iBooks or other apps

    I am having trouble saving some aspx files in iBooks and other apps (airsharing, goodreader, zoomit).  The links to the files look like links to pdfs.   Safari displays them fine. However, once the file is displayed on the screen and I click on "open in iBooks, etc" either nothing happens, or it gets saved as an aspx file, which  the app cannot read.
    My question is there any browser / app that can save and VIEW the saved files?
    My Mac displays and SAVES them as PDF (all browsers). Both acrobat and preview handle them fine.  Nothing unusual, been accessing the web site for years. Problem is my Mac just died. I was naively hoping to put off buying a new computer (at least for a while) and use the iPad as my main computer...
    Thanks

    Don't know if you are still having this issue, or of you tried Terra browser like jpw1 suggested, but that just worked for me.  I was having the same problem with aspx files.  Used to be able to open directly in iBooks, stopped working when I tabbed OS5 on my iPad 1.
    In Terra browser you just open the file, do a "save page as file" (using the "forward arrow" icon to the left of the web address at the top of the browser). This will save the file as a PDF.  Then you just open the new PDF file from your saved docs (found in the bookmark menu) and you have a PDF file that will open in iBooks as before.

  • "File" and "View" are missing from the ribbon in Excel, MS Office 2011, please help!

    "File" and "View" are missing from the ribbon in Excel, I'm running MS Office 2010.  Please help!

    Post your question on the MS Mac forums as it's their software you're having issues with:  http://answers.microsoft.com/en-us/mac?auth=1

Maybe you are looking for

  • IPhoto 11 doesn't load my old photo library

    I have an old iphoto library and my new iphoto 11 allows me to locate and load the 1.5 GB file, but when it loads there ia nothing? No events or photos? The library doesn't upgrading, so how do I load my old photos? Thanks Ant.

  • Relationship of iViews with HR Organization Structure

    In an HR SAP Portal what is the relationship of iViews with HR Organization Structure. Does the iViews and org structure pull from tables or the infotype data?

  • Is anyone using Pilot Fiber in NYC?

    It's similar to Verizon FiOS. Fiber optic but not dedicated fiber. We have customers that have looked into Pilot but never pulled the trigger. It's a no brainer compared to TWC, but you won't get the same performance as a dedicated fiber circuit. I d

  • Homogenous sys copy

    Hi all i am doing a sys copy from PRD to QAS  maxdb 7.6.4  build 16  ECC6.0 I run sapinst successfully until i get to the part to restore the DB After the database is restored and i continue sapinst When starting sapinst again it fails when trying to

  • CS4 Fireworks says an internal error has occurred

    When starting CS4 Fireworks, it locks up saying "an internal error has occurred". Have to use Task Manager to close it. Fireworks will not re-ininstall from disk, it just sits there on "Installing" screen. Please assist.