View is affecting the perfomance

Hi all,
I have a query that retrives the data from two views.
SELECT
DISTINCT
di.emp_name,
di.age,
di.department
FROM
data.v_employee di
JOIN
data.v_role r USING (emp_id)
WHERE
r.roll_name = 'manager' AND
di.age='50' AND
di.experience >20
r.supervisor is null;
This query is taking more time to execute.when i am executing this views with inputs individualy, the query is running too fast,but when joining the two views the query takes more than 30 minutes some times results not coming while an hour.
I am not supposed to change the views for perfomance.the only option i have to make this query faster with out changing the views.
Does an optimizer hints will we works for the view select query to improve perfomance?
Is there any other way to re write query that improve perfomance.
Please help to understand the view perfomance in a select query.
Thanks in advance for your response.
Regards,
Senthur

HOW To Make TUNING request
SQL and PL/SQL FAQ
NOTHING forces you to actually use either VIEW

Similar Messages

  • I need to change the size of the view for easier reading.  Is there a way to make the page view larger without affecting the form?

    Hi Guys, good product beginning however it's not as good as many of the other Adobe product's workspaces.  I cannot change the size of the view during form design work, so it's a visual strain to work in Forms Central.  Is there a way to modify the view (not affecting the width, size or font when presented on website or on paper)?

    In Photoshop CC 2014 (Windows only) it is possible to use a setting of 200% to scale the UI. On some monitors it improves readability and on others it cuts part of the application screen. To give it a try go to:
    Edit >> Preferences >> Experimental Features
    Put a check-mark in the box and click OK
    Then close PS and re-start for the change to take effect.

  • Regarding the perfomance of a join .

    Hi,
    I have a join with tables MARD,MVKE,MAKT,MARA .
    Is it a bad habit to join more than 3 tables , is it inversely affect the perfomance.
      SELECT dmatnr AS material dwerks AS plant dlgort AS slocation dumlme dlabst rmeins  k~maktx AS descr
                          INTO CORRESPONDING FIELDS OF TABLE        it_data2 FROM mard AS d INNER JOIN mvke AS m
                          ON dmatnr = mmatnr
                          INNER JOIN mara AS r
                          ON rmatnr = dmatnr
                          INNER JOIN makt AS k
                          ON kmatnr = dmatnr
                          WHERE
                          d~matnr IN r_matnr
                          AND d~werks IN r_plant
                          AND m~vkorg IN r_sales.
    Thanks & Regards,
    Ratheesh BS

    I have tried to re-arrange your join statement. Let me know if this helps. It all really depends on which of your ranges / select-options you intend to make mandatory. You need to make some of your range / select-options mandatory.
    SELECT d~matnr AS material
           d~werks AS plant
           d~lgort AS slocation
           d~umlme
           d~labst
           r~meins
           k~maktx AS descr
    INTO CORRESPONDING FIELDS OF TABLE it_data2
    FROM       mara AS r
    INNER JOIN makt AS k ON r~matnr = k~matnr
    INNER JOIN mvke AS m ON m~matnr = r~matnr
    INNER JOIN mard AS d ON d~matnr = r~matnr
    WHERE r~matnr IN r_matnr
    AND   d~werks IN r_plant
    AND   m~vkorg IN r_sales
    AND   k~spras EQ sy-langu.

  • Sharepoint 2010 permission The following factors also affect the level of access for

    hello,
    In my development server ,suddently from no where all users ,even full control group users
    cannot able to add or edit any list or any content.
    The following factors also affect the level of access for user1(domain\user1)
    Deny
    Manage Permissions
    Create and change permission levels on the Web site and assign permissions to users and groups.
    Deny
    Create Subsites
    Create subsites such as team sites, Meeting Workspace sites, and Document Workspace sites.
    Deny
    Manage Web Site
    Grants the ability to perform all administration tasks for the Web site as well as manage content.
    Deny
    Add and Customize Pages
    Add, change, or delete HTML pages or Web Part Pages, and edit the Web site using a Microsoft SharePoint Foundation-compatible editor.
    Deny
    Manage Lists
    Create and delete lists, add or remove columns in a list, and add or remove public views of a list.
    Deny
    Apply Themes and Borders
    Apply a theme or borders to the entire Web site.
    Deny
    Apply Style Sheets
    Apply a style sheet (.CSS file) to the Web site.
    Deny
    Override Check Out
    Discard or check in a document which is checked out to another user.
    Deny
    Manage Personal Views
    Create, change, and delete personal views of lists.
    Deny
    Add/Remove Personal Web Parts
    Add or remove personal Web Parts on a Web Part Page.
    Deny
    Update Personal Web Parts
    Update Web Parts to display personalized information.
    Deny
    Add Items
    Add items to lists and add documents to document libraries.
    Deny
    Edit Items
    Edit items in lists, edit documents in document libraries, and customize Web Part Pages in document libraries.
    Deny
    Delete Items
    Delete items from a list and documents from a document library.
    Deny
    Create Groups
    Create a group of users that can be used anywhere within the site collection.
    Deny
    Use Self-Service Site Creation
    Create a Web site using Self-Service Site Creation.
    Deny
    Approve Items
    Approve a minor version of a list item or document.
    Deny
    Delete Versions
    Delete past versions of a list item or document.
    Deny
    Create Alerts
    Create alerts.
    Deny
    Manage Alerts
    Manage alerts for all users of the Web site.
    Deny
    Edit Personal User Information
    Allows a user to change his or her own user information, such as adding a picture.
    For all the users this happened ,How i need to fix this issue
    please help.
    thanks

    Take a look at the user policy settings for the web application.  I suspect someone has added a User Policy that covers the user which denies all these permissions.  The User Policy at the web app level is the only place where you can deny permissions.
     But that setting applies to every site collection in the web application and takes precedence over every other setting.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • When I change size of icons or icon vs list display, why does it affect the whole computer?

    When I change size of icons, or icon vs list display, why does it affect the whole computer? In some folders I want to see a list and others I want to see an icon and I don't need a large icon in all folders. I used to be able to set each folder separately in the old OS. How do I fix this?

    I can hilight an item, go to the finder/file/getinfo but there is no box next to icon view.
    I can go to view/options and adjust the icon size etc, but this applies to every folder in the whole computer. I need varied options in different folders, i.e., I want to view images as icons and text as text. I have to change it every time I open a folder. I used to be able to set it per folder in the old OS.

  • Using iPad to view eBeam in the classroom

    I work with Visually Impaired children and we were wondering if it is possible to use an iPad with eBeam software to just view what the teacher is displaying.  We dont want the pupil able to affect the teachers display by touching their iPad - but may still require the iPads zoom facility to operate.  Is this possible?

    gillaroo wrote:
    and am for the first time I am considering a Mac. Probably a top spec  mac book pro 15 inch for portability - the current one is 17 inch with a power supply the size of  a house brick (and heavier an than a brick!)  and I am trying to reduce the weight and physical volume of kit I am carrying to events. Can I replicate my windows set up using ipads and a macbook pro?  Is so, would  first generation ipads (which  I could pick up second hand on a well known auction site perhaps?) suffice or would it need to second gen?
    Yes, though personally, I would avoid the "well known auction" sites.
    You can get Apple refurbished iPads here -> http://store.apple.com/us/browse/home/specialdeals/ipad?mco=OTY2ODY4NQ
    They come with full warranty, same as new products.

  • Enhance the view "InboxSearch" in the cpmpoent "ICCMP_INBOX/InboxSearch"

    Dear Expert,
    I need to enhance the view "InboxSearch" in the cpmpoent "ICCMP_INBOX/InboxSearch" with new field for example: Affected employee (Partner number and Partner Function both as F4 Search.
    Could you give a step by step description, how to do this?
    As far I know I should:
    1. Extend the Structure: CRMST_AUINBOX_SEARCH with needed field
    2. Add field to the UI
    But I am not sure how to move foreward. Some threads are mentioning the Badi: CRM_IC_INBOX_BADI.
    Thank you very much in advance for your help.
    Best regards
    Ahmed Hadi

    Ahmed,
    Apologies for delay replying, SDN was unavailable when I tried to reply yesterday.
    Our team does not shy away from developing SAP CRM to meet our requirements, but the Agent Inbox is very complicated and very difficult to enhance, so it's not something we've done many changes with.
    If the request is a 'nice to have' then I would advise the business that the change would require a large amount of development and testing (it is very easy to reduce Inbox search performance and/or not return the correct results). 
    Most changes to the Inbox can be accomplished through the BADI you've mentioned and using either the BEFORE_SEARCH or AFTER_SEARCH methods.  However, with your requirements I suspect you will need to enhance the context of the Inbox to bring in the two new fields (created using the Easy Enhancement Workbench).  You'll need to take a Z copy of CL_ICCMP_IN_INBOXSEARCH_CN00 in order to include getters and setters for your new fields along with any lookup help attributes.
    I'm sure there are many ways to skin your cat, but I'm sure you'll need to use the Inbox BADI.  I'm not a developer though, so I may be totally wrong in what I've said here.
    Hope this helps, all the best and good luck with your project,
    Andrew Griffin.

  • If I charge my laptop with 21V charger, does it affect the device. the original charger 18.5V

    Product name is Compaq nx6310
    if I charge my laptop with 21V charger, does it affect the device. the original charger 18.5V
    This question was solved.
    View Solution.

    Hi,
    I would not do this, the variance is acceptable around plus/minus 5%, in this case up to 13%.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems n

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

    Since installing LTR 5.4, which I've now upgraded to 5.6, I've encountered repeated slowness and malfunctions in operations, especially when using the Compare View function and the Tab key to open and close the right and left side panels.  Such problems never arose during two years of using LTR-4 and nothing else has changed on my computer.  I have a pretty simple system with only a few plug-ins, which are usually not in operation.  I have 12GB of RAM in my Windows 7 PC.  I could illustrate these problems with screen shots if you would tell me how to submit screen shots.  Otherwise I will try to describe the problems in words.
    The problem is clearly cumulative, growing worse as usage time passes.  Compare View feature gradually slows down and eventually seems to choke as my work session proceeds. If I Exit LTR and re-enter and start all over, things will work normally for maybe 30 minutes, but then the Compare View feature begins to become very slow to respond.   In a recent example with my screen full of thumbnails in Library mode I highlighted two images to compare. LTR started to open the Compare View screen by first having the top row of thumbnails disappear to be replaced by the "SELECT" and "CANDIDATE" words in their spaces  (but no images), but Compare View never succeeded in gaining control of the screen. After some seconds the top row of thumbnails reasserted its position and the Compare View windows disappeared. But LTR kept trying to bring them back. Again the top row of thumbnails would go away, Select and candidate would reappear, try again, and give up. This went on for at least 2-3 minutes before I tried to choose File and Exit, but even that did not initially want to respond. It doesn't like to accept other commands when it's trying to open Compare View. Finally it allowed me to exit.
    To experiment I created a new catalog of 1100 images.  After 30-40 minutes, the Compare View function began to operate very slowly. With left and right side panels visible and two thumbnails highlighted, hitting Compare View can take half a minute before the two mid-size  images open in their respective SELECT and CANDIDATE windows. When the side panels are open and two images are in the Select/Candidate spaces, hitting the Tab button to close the side panels produces a very delayed response--25-30 seconds to close them, a few more seconds to enlarge the two images to full size. To reverse the process (i.e., to recall the two side panels), hitting Tab would make the two sides of the screen go black for up to a minute, with no words visible. Eventually the info fields in the panels would open up.
    I also created a new user account and imported a folder of 160 images. After half an hour Compare View began mis-placing data.  (I have a screen shot to show this.)  CANDIDATE appears on the left side of SELECT, whereas it should be on the right. The accompanying camera exposure data appears almost entirely to the left of the mid-screen dividing line. Although the Candidate and Select headings were transposed, the image exposure data was not, but the data for the image on the right was almost entirely to the left of the line dividing the screen in two.
    Gurus in The Lightroom Forum have examined Task Manager data showing Processes running and Performance indicators and they see nothing wrong.  I could also send screen shots of this data.
    At this point, the only way I can process my images is to work 30-40 minutes and then shut down everything, exit, and re-start LTR.  This is not normal.  I hope you can find the cause, and then the solution.  If you would like to see my screen shots, tell me how to submit them.
    Ollie
    [email protected]

  • How to ensure that an accrual (FBS1) that was cleared and reversed/reset (FBRA) does not affect the books while being in open items (FAGLB03)?

    At first the user created an accrual using FBS1 for reversal on 5/1/2015.
    This created a clearing document.
    Then it was mistakenly reversed by the user for 5/1/2015 by using F.81
    This also created a clearing document.
    Based on advice in the following thread: Delete reverse accrual/defferal documents | SCN ,
    the user used FBRA to reset and reverse the document. We are unsure if the reset and reverse command was used or just the reset choice.
    Now the accrual value is in the respective accounts with an open status (i.e. red button). Does this mean that the entry has already been discarded and it won't affect the accounts? Or does one then use FB50 to reverse the effects of the accrual in the current and next month?

    Hi
    I guess that the user has not reverse the transaction as its still shows as open item in 30 /4 .. so I belive that you need to use fb50 or simply use FBR2 and enter the original entry no and the choose (generate reversal posting option )..
    regards
    mahmoud el nady

  • Acrobat Pro 9.0 freezes when viewing/scrolling through the table of contents of a document

    I am hoping someone can help me or has experienced the same problem I'm about to describe. I belong to the technical publications group of a fairly large company and I review a lot of PDF documents. I just installed Acrobat 9.0.0 (via CS4 Design Standard) and I've noticed on larger documents where there's a full page or several pages worth of Table of Contents, Acrobat 9.0.0 seems to freeze up when I begin scrolling through the TOC. For example, if I want to use the Text Edit tools or use a sticky note, when I press on an icon, Acrobat will freeze for a good 10 seconds, then will allow you to press the icon. It tends to freeze each time I want to make my next edit or even pressing the up/down arrow buttons to go to the next page. Once I get through the TOC pages, Acrobat seems to function normally--no freezes.
    Has anyone experienced this? Would appreciate any kind of advice on how to fix--perhaps there's a patch or update?
    I didn't experience any of this using Acrobat 8.0--I never had any real problems with Acrobat until 9.0.0.

    Your issue may not be related to a difference between v8 and 9.
    I have not had this problem on my computers, but a coworker had this issue. For many documents that others were able to open and scroll through without issue, his computer was freezing and unfreezing.  IT determined his graphics capabilities were not able to keep up with the requirements of working with larger documents and gave his computer a RAM upgrade and a new graphics card. Particularly during scrolling, higher demands are made on the computer to graphically render and re-render page content. Documents giving him problems before became a non-issue.
    A new graphics card is obviously a $$$ solution, but you might want to check to see if your RAM meets the minimum requirements and check to see if there are any program updates (Help > Check for Updates).
    I have had an issue of pdfs freezing, but not specifically in the table of contents areas. If your document has pages with images that have an unusually high number of layers, it may affect the ability to work effectively in the document.

  • I have a macbook air bought in 2010 wit liquid damage that might has affected the SSD card. I need to get my data but apple won't help. Authorized dealers never seem to have the same model to try whether the SSD card works. How can I get my data quickly?

    Hi
    I have a macbook air bought in 2010. It has liquid damage that might or might not affected the SSD card. I need the data on my SSD card for work and I need it urgently. Apparently Apple won't get the data out, even if I have apple care... Licensed apple dealers need to have the same macbook air model so they can insert the SSD card and check whether the data is there, and they never seem to have one...
    I'm really disappointed with apple. It's been two weeks and I haven't been able to find out whether the SSD card is holding my data. It can't take that long to do it in store... How can they sell a product and then wash their hands on the matter?
    Anyway, enough with the apple rant. I need to get this data urgently so I need to find out how I can get it out of the card. The SSD card and data might be fine so I don't want to take it to a data recovery centre and get charged loads.
    Thanks for your help.
    Olatz

    See this link for a 4870 card, best instructs for flashing for a noob like me. (last lowest price was $150 for a 1GB vRAM 4870 from TigerDirect).
    http://web.me.com/jacobcroft/4870Flash/4870Flash.html
    However, not every 4870 card will work with the ROM currently floating around out there. BEWARE!
    Link to recovering a bricked card:
    http://forums.techpowerup.com/showthread.php?t=64328

  • Unable to view data in the InfoCube as well as in the query

    Hi all,
    I have done the Init Load into an InfoCube 0Pur_c01. The Monitoring status is Green. I checked the Qm status which is green. There is data in the PSA.
    However, I am unable to view data in the InfoCube. Also when I execute the report I am receiving 'Application Data not found'error.
    It looks to be a strange sitaution.
    Please help me out
    Regards
    YJ

    Hi,
    I hope, some times the the unavailability of "PROCESSKEY" value for the records delivers like this.
    Refer the note: 353042
    And also refer the links:
    Re: Problem extracting 2LIS_03_BX into 0IC_C03
    Re: Records Not Added
    And also search this forum with "PROCESSKEY"
    With rgds,
    Anil Kumar Sharma .P

  • Can i upgrade my laptop's graphic card? and how does this upgrading affect the other functions?

    is it possible to upgrade my HP Split 13-m111TU x2 PC's graphic card? how does one go about this upgrading process? does it affect the other functions and features of the laptop? 

    Hi:
    The graphics adapter in your model cannot be upgraded.

  • In two page view preview shows the first page on its own

    In two page view preview shows the first page on its own. I have recently downloaded an ebook which has image based tutorials and the pages are in such a way that pages 3 and 4 should be seen next to each other. Preview seems to want to have pages 1 on its own therefore making this rather difficult. Any help on resolving this issue would be appreciated.

    Try selecting the first page, and then from the "Edit" menu select "insert blank page". This should put a blank page at the beginning of the document, shifting all pages down one and putting them in the order you want for your display.

Maybe you are looking for

  • Can't connect to the music store - tried most everything - help!

    When I try to connect, itunes says it can't and asks me to check my internet connection. Same thing happens when I click on check for updates. Radio works fine. When I put a music CD in my PC, itunes gets the CD info. FYI, Quicktime won't go to updat

  • How to add check box to the forms in scripts

    Hello experts,          i got one requirement. to add a check box to the form. how can we add a check box in form. is it possible to adda check box in scripts? thanks in advance.

  • How to type diactrics (special characters)

    Short of installing a localized version of OS X, is there any way to type diacritics on a Mac? I'm mostly intersted in Polish special characters: ą ę ł ó ś ż ż.

  • Problem starting managed server using Node Manager/WL 7

    I have just configured Node Manager for the first time to start a managed server, following the documentation 'Managing Server Availability with Node Manager'. However when I attempt to start the managed server from the Administration Console I alway

  • ISE-3315, license

    Hi all, I hope someone can help me out with the following question; We want to buy a ISE-3315-K9 for 500 end-devices. In the price-list I found the ISE-3315-K9 but cannot find the base license: L-ISE-BSE-500=. (I think I need this license) Will the s