DB View Performance

Dear all,
I have a View which is formed out of six DB tables and , my problem is when I try to run the select comand agnist this view it takes a long time to process data.
Is there any way I can add Index to this View and speed up this process.
any ideas as to how to address this issue.
Regards,
Vj

First...make sure that all tables are connected by primary keys on view....second, access the view by using it's primary keys....
Greetings,
Blag.

Similar Messages

  • [ADF-11.1.2] Proof of view performance tuning in oracle adf

    Hello,
    Take an example of : http://www.gebs.ro/blog/oracle/adf-view-object-performance-tuning-analysis/
    It tells me perfectly how to tune VO to achieve performance, but how to see it working ?
    For example: I Set Fetch size of 25, 'in Batch of' set to 1 or 26 I see following SQL Statement in Log
    [1028] SELECT Company.COMPANY_ID,         Company.CREATED_DATE,         Company.CREATED_BY,         Company.LAST_MODIFY_DATE,         Company.LAST_MODIFY_BY,         Company.NAME FROM COMPANY Companyas if it is fetching all the records from table at a time no matter what's the size of Batch. If I am seeing 50 records on UI at a time, then I would expect at least 2 SELECT statement fetching 26 records by each statement if I set Batch Size to 26... OR at least 50 SELECT statement for Batch size set to '1'.
    Please tell me how to see view performance tuning working ? How one can say that setting batch size = '1' is bad for performance?

    Anandsagar,
    why don't you just read up on http://download.oracle.com/docs/cd/E21764_01/core.1111/e10108/adf.htm#CIHHGADG
    there are more factors influencing performance than just query. Btw, indexing your queries also helps to tune performance
    Frank

  • I can no longer use all of the "Computer Management" tools against a remote computer. "Local Users and Groups", "Event Viewer", "Performance Logs and Alerts" and "Device Manager"

    Hello All,
    I can no longer use all of the "Computer Management" tools against a remote
    computer. "Local Users and Groups", "Event Viewer", "Performance Logs and
    Alerts" and "Device Manager"
    kindly see the below snapshot for assistance
    REGARDS DANISH DANIE

    This link may help....
    http://windowsxp.mvps.org/admintools.htm
    Freeman

  • How to Improve Report View performance

    Hi All, i have a webi report which runs about 3 minutes. But when i click on view the report takes about 21 seconds(average) or so to open up. Any ideas on how to improve the report view performance? Does it have anything to do with server load? Any server settings to tweak to speed it up? Any ideas are appreciated.
    The requirement is that my web team has to strip off the Business Objects logo etc(using sdk), and display the report in my company web page, so its
    looking sort of ugly as the web page is taking about 21 seconds just to display the report.
    Some Report statistics:
    Report size is about 90 MB, as it has about 300 k rows of data(which i am aggregating using formulas)
    Report has about 15 simple division formulas
    Report is in Drill Mode. There are about 5 drill filters
    Thanks,
    Kon

    Hi Larry,
    I'll assume you are scheduling this report and viewing the instance in ~21 seconds.  Is that correct?
    We definitely need some environment info to go along with this post.  Like Simone said, Product Version, Patch Level, and other OS, Hardware, App Server details would help as well.
    There are certain properties of a document that can slow down the rendering of a report but we generally have to look at the logs to determine what part of the report is taking the longest time to process.  Assuming this is an instance, I would be curious to know if it is quicker to come up if you immediately view it a second time?
    If you were to turn on a trace, you would see a number of lines like this:
    2011/06/15 20:11:54.153|>=| | | 7676|7436|{|||||||||||||||C3_DPSerialization:ContextPromptList_StreamUnit_SerializeOut
    2011/06/15 20:11:54.153|>=| | | 7676|7436|}|||||||||||||||C3_DPSerialization:ContextPromptList_StreamUnit_SerializeOut: 0
    2011/06/15 20:11:54.153|>=| | | 7676|7436|{|||||||||||||||C3_DPSerialization:cdbSQLStreamUnit_SerializeOut
    2011/06/15 20:11:54.168|>=| | | 7676|7436|}|||||||||||||||C3_DPSerialization:cdbSQLStreamUnit_SerializeOut: 0.015
    2011/06/15 20:11:54.168|>=| | | 7676|7436|}|||||||||||||||C3_DPSerialization:QTDP_StreamUnit_SerializeOut: 0.015
    2011/06/15 20:11:54.168|>=| | | 7676|7436|}|||||||||||||||C3_QTDataprovider:SaveMe_Serial: 0.015
    2011/06/15 20:11:54.168|>=| | | 7676|7436|}|||||||||||||||C3_QTDataprovider:SaveAll_Serial: 0.015
    The numbers at the end are how long the function took to run.  Generally the function gives us an idea of what the engine was doing.
    When evaluating performance issues, you can occasionally find a function that is taking long to run within the logs and based on the function and module names, it can sometime lead you to the reason it is taking longer than expected.
    Another good test might be to run a very basic report to see how long it takes to come up.  Even a report without a datasource would suffice as that will give you your baseline time on how long it takes to load the viewer, convert the WID file to XML and send it up through the application server to your browser.  If a test report takes 15 seconds to view, then you are really only looking at 6 seconds for this other report.
    Hope this helps and gets you started.  More environment info would help take it further.
    Thanks
    Jb

  • Materialized views performance gain  estimation

    Hi;
    I have to estimate the performance gain of a materialized view for a particular query without creating it.
    that means, i have:
    - A query with initial execution plan
    - A select statement with is considered as a probable MV
    i need to show what is the performance gain of creating the MV for the previous Query.
    I see the DBMS_MVIEW.EXPLAIN_REWRITE but it shows the performance gain for a yet created MV.
    any idea .
    Thanks

    Hi Bidi,
    - for the first (agregation ones), i don't know how to estimate the performance gain.It's the difference in the elapsed time between the original aggregation and the time required to fetch the pre-computed summary, ususally a single logical I/O (if you index the MV).
    i want to determinate the impact of creating materialized views on the performance of a workload of queries. Perfect! Real-world workload tests are always better than contrived test cases!
    If you have the SQLAccess advisor, you can define a SQL Tuning Set, and run a representative benchmark with dbms_sqltune:
    http://www.dba-oracle.com/t_dbms_sqltune.htm
    Hope this helps. . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference":
    http://www.dba-oracle.com/bp/s_oracle_tuning_book.htm

  • View performance

    Hello gurus,
    I have a view which selects data directly from the table (which has the same structure as table) when the execution flag is ‘Y’. It has around 2 million records. Is there a way to increase the performance of the view? It has index on the primary key. I thought of doing portioning based on the period but it has only one period, the base table will get loaded on daily basis with max period. They do analyze table after every day load. I am pasting the view definition below for reference.
    CREATE OR REPLACE FORCE VIEW vw_fvo_employee_search (
       employee_gci,
       employee_name,
       country,
       period,
       inserted_date,
       industry_subgroup_name
    AS
       SELECT employee_gci,
              employee_name,
              country,
              period,
              inserted_date,
              industry_subgroup_name
       FROM fvo_employee_search
       WHERE EXISTS
                (SELECT NULL
                 FROM fvo_job_execution_status f
                 WHERE f.table_name = 'FVO_employee_SEARCH'
                       AND f.execution_flag = 'N')
       UNION ALL
       SELECT employee_gci,
              employee_name,
              country,
              period,
              inserted_date,
              industry_subgroup_name
       FROM fvo_employee_search_data
       WHERE EXISTS
                (SELECT NULL
                 FROM fvo_job_execution_status f
                 WHERE f.table_name = 'FVO_employee_SEARCH'
                       AND f.execution_flag = 'Y')
    /Edited by: user3636719 on Feb 3, 2010 11:33 AM
    Edited by: user3636719 on Feb 3, 2010 3:07 PM

    Thanks ORDBA
    Here is the explain plan for my query, could someone explain me how to improve the performance of my view?
    PLAN_TABLE_OUTPUT
    Plan hash value: 4083697037
    | Id  | Operation                     | Name                        | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT              |                             |  3939K|   236M|  9101  (52)| 00:01:50 |
    |   1 |  UNION-ALL                    |                             |       |       |            |          |
    |*  2 |   FILTER                      |                             |       |       |            |          |
    |   3 |    TABLE ACCESS FULL          | FVO_FAMILY_SEARCH           |  1998K|   120M|  4614   (4)| 00:00:56 |
    |*  4 |    TABLE ACCESS BY INDEX ROWID| FVO_JOB_EXECUTION_STATUS    |     1 |    22 |     1   (0)| 00:00:01 |
    |*  5 |     INDEX UNIQUE SCAN         | FVO_JOB_EXECUTION_STATUS_PK |     1 |       |     0   (0)| 00:00:01 |
    |*  6 |   FILTER                      |                             |       |       |            |          |
    |   7 |    TABLE ACCESS FULL          | FVO_FAMILY_SEARCH_DATA      |  1941K|   116M|  4485   (4)| 00:00:54 |
    |*  8 |    TABLE ACCESS BY INDEX ROWID| FVO_JOB_EXECUTION_STATUS    |     1 |    22 |     1   (0)| 00:00:01 |
    |*  9 |     INDEX UNIQUE SCAN         | FVO_JOB_EXECUTION_STATUS_PK |     1 |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - filter( EXISTS (SELECT 0 FROM "FVO_JOB_EXECUTION_STATUS" "F" WHERE
                  "F"."TABLE_NAME"='FVO_family_SEARCH' AND "F"."EXECUTION_FLAG"='N'))
       4 - filter("F"."EXECUTION_FLAG"='N')
       5 - access("F"."TABLE_NAME"='FVO_family_SEARCH')
       6 - filter( EXISTS (SELECT 0 FROM "FVO_JOB_EXECUTION_STATUS" "F" WHERE
                  "F"."TABLE_NAME"='FVO_family_SEARCH' AND "F"."EXECUTION_FLAG"='Y'))
       8 - filter("F"."EXECUTION_FLAG"='Y')
       9 - access("F"."TABLE_NAME"='FVO_family_SEARCH')

  • Query vs View Performance

    Hello All,
    I am looking for some guidance on teh performance overhead of using Queries versus Views.
    If we create a "Super Query" Query_1 :
    Characteristic A
    Characteristic B
    Characteristic X
    KF C
    Then a "minimal view" Query_1_View_1:
    Characteristic A
    KF C
    Then a "minimal query" Query_2:
    Characteristic A
    KF C
    So view Query_1_View_1 and query Query_2 deliver the same results to the end-user ......
    Which will be the best performer?
    Query_1_View_1 or Query_2
    I am guessing that the answer will be Query_2, because the view Query_1_View_1 has to return all the Characterics of Query_1 before forming the View representation Query_1_View_1 and returning result to the end-user.
    ( and any aggregates that satisfy Query_2, but not Query_1, will never be invoked)
    Are these assumptions correct, or is "view processing" smarter than we think?
    Will Query_1_View_1 and Query_2 in fact perform the same?
    All comment appreciated, thanks.
    Ian Reid

    Performance wise it may not be significat.
    But if you the queries differe only by the characteristic values, it is better to keep them as views so that it is less query to be upgraded.
    Ravi Thothadri

  • Stored Procedures VS Indexed Views - Performance?

    Hey folks,
    In the past, one of the factors I'd consider when choosing to use a Stored Procedure over a View was the fact that the Stored Procedure would get optimized by storing the query execution path (I'm a developer so I understand this at a higher level than a
    DBA would).  But I've recently become aware of the fact that you can now Index your Views.  This has now raised new questions for me as to when I'd get better performance out of the Indexed View versus the Stored Procedure?
    Take for example the following:
    SELECT colA, colB, sum(colC), sum(colD), colE
    FROM myTable
    WHERE colFDate < '9/30/2011'
    GROUP BY colA, colB, colE
    The date will be different every time it's run, so if this were a view, I wouldn't include the WHERE in the view and instead have that as part of my select against the View.  If it were a stored procedure, the date would be a parameter.
    If this were an Indexed View, should I expect to get better performance out of it then a stored procedure that's had an opportunity to cache the execution path?  Or would the proc be faster?  Or would
    the difference be negligible?  I know we could say "just try both out" but there are too many factors that could falsely bias the results, so I'd like to hear more of the theory behind it and what the expected outcomes are instead.
    Thanks!

    Very cool.  Thanks Dan.  One question though.  You said "
    If you are using SQL Server Enterprise Edition, you do not need to select from the view directly. "  I'm not sure what you mean here.  Where would I selecting from if not from the view?
     Thanks again!
    What I mean is that if your query is semantically similar to the same query encapsulated in the view, the optimizer may be able to use the view index even though you specify the table in the query.  For example, each of the queries below will scan
    the view index in Enterprise (or Developer) edition instead of the underlying table:
    CREATE VIEW dbo.vw_myTable
    WITH SCHEMABINDING
    AS
    SELECT colFDate, colA, colB, SUM(colC) AS colC, SUM(colD) AS colD, colE, COUNT_BIG(*) AS countbig
    FROM dbo.myTable
    GROUP BY colA, colB, colE, colFDate
    GO
    CREATE UNIQUE CLUSTERED INDEX cdx_vw_myTable ON
    dbo.vw_myTable(colA, colB, colE, colFDate);
    GO
    SELECT colA, colB, SUM(colC), SUM(colD), colE
    FROM dbo.myTable
    WHERE colFDate < '20110903'
    GROUP BY colA, colB, colE;
    GO
    SELECT colA, colB, SUM(colC), SUM(colD), colE
    FROM dbo.vw_myTable
    WHERE colFDate < '20110903'
    GROUP BY colA, colB, colE;
    GO
    SELECT colA, colB, SUM(colC), SUM(colD), colE
    FROM dbo.vw_myTable WITH (NOEXPAND)
    WHERE colFDate < '20110903'
    GROUP BY colA, colB, colE;
    GO
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • How to view performance in Oracle10gAS Portal

    hi to all
    I need your help out there. Do anyone noe how to view all the performance logs in Oracle10gAS Portal? It means in Oracle10gAS how can i see all the no. of hit counter for per page, the most popular website/portlet at the end of the day, portal usage reports and etc. And the reports on the usage of the services and resources? Pls help
    Many thanks to you sll out there

    Hi Sally,
    Sorry I misinterpreted your question. It sounds like what you are looking for is a data warehouse on top of your web logs. Oracle used to sell a product that did this out of the box for Oracle Application Server... but we do not anymore. There are however partners that you may want to look at to find default mappings between a web log format and individual attributes. I know for example SyncSort provides these.
    Alternatively, you can evaluate your logs and build something yourself...
    Not sure if this addresses your question entirely... There is actually another product that is related to this subject: Oracle Personalization (http://otn.oracle.com/products/personalization/index.html). You may want to take a look at what they provide.
    Thanks,
    Mark.

  • AIR for iOS View performance

    In using FB4.6 with AIR 3.4 for iOS on Mac OS X 10.7.4 and when I run this on an iPad 2, one of my views is taking 3.2 secs before it's displayed. I've search for references to things to do to improve the performance
    I have a View containing a TabbedViewNavigator with 2 tabs:-
    <s:TabbedViewNavigator width="100%" height="100%">     <s:ViewNavigator label="tabOne" firstView="TabOneView" width="100%" height="100%"/>     <s:ViewNavigator label="tabTwo" firstView="TabTwoView" width="100%" height="100%"/></s:TabbedViewNavigator>
    The the first view is:-
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            actionBarVisible="false"
            title="TabOneView"
            render="trace(DateUtils.currentTime()+'TabOneView.render')"
            preinitialize="trace(DateUtils.currentTime()+'TabOneView.preinitialize')"
            contentCreationComplete="trace(DateUtils.currentTime()+'TabOneView.contentCreationComplet e')"
            creationComplete="trace(DateUtils.currentTime()+'TabOneView.creationComplete')"
            width="100%" height="100%">
            <fx:Script>
                <![CDATA[
                    import DateUtils;
                ]]>
            </fx:Script>
            <s:layout>
                <s:ConstraintLayout>
                    <s:constraintColumns>
                        <s:ConstraintColumn id="leftPadding" width="10"/>
                        <s:ConstraintColumn id="leftColumn" width="100%"/>
                        <s:ConstraintColumn id="gutterColumn" width="20"/>
                        <s:ConstraintColumn id="rightColumn" width="100%"/>
                        <s:ConstraintColumn id="rightPadding" width="10"/>
                    </s:constraintColumns>
                    <s:constraintRows>
                        <s:ConstraintRow id="topPadding" height="10"/>
                        <s:ConstraintRow id="mainRow" height="67.5%"/>
                        <s:ConstraintRow id="operationRow" height="18.75%"/>
                        <s:ConstraintRow id="gutterRow" height="10"/>
                        <s:ConstraintRow id="commentsRow" height="18.75%"/>
                        <s:ConstraintRow id="bottomPadding" height="10"/>
                    </s:constraintRows>
                </s:ConstraintLayout>
            </s:layout>
            <s:Label id="field1" height="44" fontSize="40" fontWeight="bold" textAlign="right"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:0"/>
            <s:Label id="field2" fontSize="20" fontWeight="bold"
                     left="leftColumn:0" right="leftColumn:0" top="mainRow:50"/>
            <s:Label id="field3" fontSize="20" fontWeight="bold" textAlign="right"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:50"/>
            <s:Label text="FIELD 1" left="leftColumn:0" top="mainRow:74" mouseEnabled="false" cacheAsBitmap="true" maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF" />
            <s:Label text="FIELD 2" right="rightColumn:0" top="mainRow:74" textAlign="right" cacheAsBitmap="true" maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF"/>
            <s:Label id="field4" left="leftColumn:0" top="mainRow:94" fontSize="20" fontWeight="bold"/>
            <s:Label id="field5" right="rightColumn:0" top="mainRow:94" fontSize="20" fontWeight="bold" textAlign="right"/>
            <s:Label text="FIELD 4" left="leftColumn:0" top="mainRow:117" cacheAsBitmap="true"/>
            <s:Label text="FIELD 5" right="rightColumn:0" top="mainRow:117" textAlign="right" cacheAsBitmap="true"/>
            <!-- left side -->
            <s:Label id="field6" fontSize="20" fontWeight="bold" textAlign="right" width="100%"
                     left="leftColumn:0" right="leftColumn:0" top="mainRow:157"/>
            <s:Label text="FIELD 6" textAlign="right" width="100%" mouseEnabled="false"  maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF" cacheAsBitmap="true"
                     left="leftColumn:0" right="leftColumn:0" top="mainRow:180"/>
            <s:Label id="field7" fontSize="20" fontWeight="bold" textAlign="right" width="100%"
                     left="leftColumn:0" right="leftColumn:0" top="mainRow:204"/>
            <s:Label text="FIELD 7" textAlign="right" width="100%" mouseEnabled="false"  maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF"  cacheAsBitmap="true"
                     left="leftColumn:0" right="leftColumn:0" top="mainRow:227"/>
            <s:Label id="field8" fontSize="20" fontWeight="bold" textAlign="right" width="100%"
                     left="leftColumn:0" right="leftColumn:0" top="mainRow:251"/>
            <s:Label text="FIELD 8" textAlign="right" width="100%" mouseEnabled="false"  maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF" cacheAsBitmap="true"
                     left="leftColumn:0" right="leftColumn:0" top="mainRow:274"/>
            <s:Label id="field9" fontSize="20" fontWeight="bold" textAlign="right" width="100%"
                     left="leftColumn:0" right="leftColumn:0" top="mainRow:298"/>
            <s:Label text="FIELD 9" textAlign="right" width="100%" mouseEnabled="false"  maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF" cacheAsBitmap="true"
                     left="leftColumn:0" right="leftColumn:0" top="mainRow:321"/>
            <s:Label id="field10" fontSize="20" fontWeight="bold" textAlign="right" width="100%"
                     left="leftColumn:0" right="leftColumn:0" top="mainRow:345"/>
            <s:Label text="FIELD 10" textAlign="right" width="100%" mouseEnabled="false"  maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF" cacheAsBitmap="true"
                     left="leftColumn:0" right="leftColumn:0" top="mainRow:368"/>
            <s:Label id="field11" fontSize="20" fontWeight="bold" textAlign="right" width="100%"
                     left="leftColumn:0" right="leftColumn:0" top="mainRow:392"/>
            <s:Label text="FIELD 11" textAlign="right" width="100%" mouseEnabled="false"  maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF" cacheAsBitmap="true"
                     left="leftColumn:0" right="leftColumn:0" top="mainRow:415"/>
            <!-- right side -->
            <s:Label id="field12" fontSize="20" fontWeight="bold" textAlign="right" width="100%"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:157"/>
            <s:Label text="FIELD 12" textAlign="right" width="100%" mouseEnabled="false"  maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF" cacheAsBitmap="true"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:180"/>
            <s:Label id="field13" fontSize="20" fontWeight="bold" textAlign="right" width="100%"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:204"/>
            <s:Label text="FIELD 13" textAlign="right" width="100%" mouseEnabled="false"  maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF" cacheAsBitmap="true"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:227"/>
            <s:Label id="field14" fontSize="20" fontWeight="bold" textAlign="right" width="100%"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:251"/>
            <s:Label text="FIELD 14" textAlign="right" width="100%" mouseEnabled="false"  maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF" cacheAsBitmap="true"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:274"/>
            <s:Label id="field15" fontSize="20" fontWeight="bold" textAlign="right" width="100%"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:298"/>
            <s:Label text="FIELD 16" textAlign="right" width="100%" mouseEnabled="false"  maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF" cacheAsBitmap="true"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:321"/>
            <s:Label id="field17" fontSize="20" fontWeight="bold" textAlign="right" width="100%"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:345"/>
            <s:Label text="FIELD 17" textAlign="right" width="100%" mouseEnabled="false"  maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF" cacheAsBitmap="true"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:368"/>
            <s:Label id="field18" fontSize="20" fontWeight="bold" textAlign="right" width="100%"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:392"/>
            <s:Label text="FIELD 18" textAlign="right" width="100%" mouseEnabled="false"  maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF" cacheAsBitmap="true"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:415"/>
            <s:Label id="field19" fontSize="20" fontWeight="bold" textAlign="right" width="100%"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:439"/>
            <s:Label text="FIELD 19" textAlign="right" width="100%" mouseEnabled="false"  maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF" cacheAsBitmap="true"
                     left="rightColumn:0" right="rightColumn:0" top="mainRow:462"/>
            <!-- bottom groups -->
            <s:Label text="FIELD 20" width="100%" left="leftColumn:0" right="rightColumn:0" top="operationRow:0" mouseEnabled="false"  maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF" cacheAsBitmap="true"/>
            <s:Label id="field20" fontSize="16"
                     opaqueBackground="0xffffff"
                     paddingLeft="5" paddingRight="5" paddingTop="5" paddingBottom="5"
                     left="leftColumn:0" right="rightColumn:0" top="operationRow:20" bottom="operationRow:0"/>
            <s:Label text="FIELD 21" width="100%" left="leftColumn:0" right="rightColumn:0" top="commentsRow:0" mouseEnabled="false"  maxDisplayedLines="1"
                     fontSize="12" fontWeight="bold" color="0x0D71FF" cacheAsBitmap="true"/>
            <s:Label id="field21" fontSize="16"
                     opaqueBackground="0xffffff"
                     paddingLeft="5" paddingRight="5" paddingTop="5" paddingBottom="5"
                     left="leftColumn:0" right="rightColumn:0" top="commentsRow:20" bottom="commentsRow:0"/>
    </s:View>
    What am I missing in terms of performance?

    Thanks for reporting it here, could you please consider it logging via bugbase.adobe.com and share the bug number here for reference.
    -Pahup

  • Dblink + materialized views performance

    Hi guys,
    Here´s my problem. I have a table with a Lob column and I need to use it remotely
    via dblink.
    so I created a view changing this column to varchar2(3999) and I was able to acess it
    remotely without problems. first problem solved :-)
    But performance acessing via DBlink is really bad in this environment, because there´s a lot of queries with joins using this table. So I tried to create a materialized view localy with these data. no sucess.
    After that I returned to the first view( the one with varchar2 3999) and changed it to Materialized view and then created a Mview log in this table. so I tried to create a materialized view in my other database acessing data of the first materialized
    view . but it failed again.
    Any suggestions what can I do ? Maybe exporting a dump every day with this table should solve my problem, but it´s not the best option
    thanks,
    Felipe

    Hi Felipe,<br>
    <br>
    It it the continuing post from some days ago dblink + query with join = poor performance ?<br>
    Anyway, what did you mean by "no sucess." or "it failed again." ?<br>
    <br>
    Please, tell us more information about what you tried.<br>
    <br>
    Nicolas.

  • Materialized View performance

    Hi all
    I'm creating some MVs for performance reasons. First I created the following view:
    CREATE OR REPLACE VIEW XXHR_PERSON_INFO_V AS
    SELECT
    per.person_id person_id
    ,per.effective_start_date person_effective_start
    ,per.effective_end_date person_effective_end
    ,pptu.effective_start_date person_usage_eff_start
    ,pptu.effective_end_date person_usage_eff_end
    ,hr_general.decode_lookup('TITLE', per.title) title
    ,per.last_name surname
    ,per.first_name forename
    ,per.middle_names middle_names
    ,per.full_name full_name
    ,hr_general.decode_lookup('SEX', per.sex) gender
    ,ppt.user_person_type person_type
    ,per.employee_number employee_number
    ,per.applicant_number applicant_number
    ,per.national_identifier national_insurance_number
    ,per.date_of_birth date_of_birth
    ,per.town_of_birth town_of_birth
    ,per.region_of_birth county_of_birth
    ,(select territory_short_name country_of_birth
    from fnd_territories_tl
    where territory_code = per.country_of_birth) country_of_birth
    ,hr_general.decode_lookup('MAR_STATUS', per.marital_status) marital_status
    ,hr_general.decode_lookup('NATIONALITY', per.nationality) nationality
    ,hr_general.decode_lookup('REGISTERED_DISABLED', per.registered_disabled_flag) registered_disabled
    ,hr_general.decode_lookup('ETH_TYPE', per.per_information1) ethnic_origin
    ,per.email_address email
    ,per.resume_last_updated hr_record_last_checked
    ,per.honors honors
    ,per.known_as preferred_name
    ,per.previous_last_name previous_surname
    ,per.correspondence_language correspondence_language
    ,per.date_of_death date_of_death
    ,per.student_status student_status
    ,per.on_military_service on_military_service
    ,per.second_passport_exists second_passport_exists
    ,per.original_date_of_hire date_of_joining_met
    ,per.current_employee_flag current_employee_flag
    ,per.current_applicant_flag current_applicant_flag
    ,per.current_emp_or_apl_flag current_emp_or_apl_flag
    ,per.creation_date person_creation_date
    ,per.created_by person_created_by
    ,per.last_update_date person_last_update_date
    ,per.last_updated_by person_last_updated_by
    ,ppt.system_person_type
    ,per.per_information_category
    ,per.per_information1
    ,per.per_information2
    ,per.per_information3
    ,per.per_information4
    ,per.per_information5
    ,per.per_information6
    ,per.per_information7
    ,per.per_information8
    ,per.per_information9
    ,per.per_information10
    ,per.per_information11
    ,per.per_information12
    ,per.per_information13
    ,per.per_information14
    ,per.per_information15
    ,per.per_information16
    ,per.per_information17
    ,per.per_information18
    ,per.per_information19
    ,per.per_information20
    ,per.per_information21
    ,per.per_information22
    ,per.per_information23
    ,per.per_information24
    ,per.per_information25
    ,per.per_information26
    ,per.per_information27
    ,per.per_information28
    ,per.per_information29
    ,per.per_information30
    ,per.attribute_category per_attribute_category
    ,per.attribute1 per_attribute1
    ,per.attribute2 per_attribute2
    ,per.attribute3 per_attribute3
    ,per.attribute4 per_attribute4
    ,per.attribute5 per_attribute5
    ,per.attribute6 per_attribute6
    ,per.attribute7 per_attribute7
    ,per.attribute8 per_attribute8
    ,per.attribute9 per_attribute9
    ,per.attribute10 per_attribute10
    ,per.attribute11 per_attribute11
    ,per.attribute12 per_attribute12
    ,per.attribute13 per_attribute13
    ,per.attribute14 per_attribute14
    ,per.attribute15 per_attribute15
    ,per.attribute16 per_attribute16
    ,per.attribute17 per_attribute17
    ,per.attribute18 per_attribute18
    ,per.attribute19 per_attribute19
    ,per.attribute20 per_attribute20
    ,per.attribute21 per_attribute21
    ,per.attribute22 per_attribute22
    ,per.attribute23 per_attribute23
    ,per.attribute24 per_attribute24
    ,per.attribute25 per_attribute25
    ,per.attribute26 per_attribute26
    ,per.attribute27 per_attribute27
    ,per.attribute28 per_attribute28
    ,per.attribute29 per_attribute29
    ,per.attribute30 per_attribute30
    FROM
    per_person_types ppt
    ,per_person_type_usages_f pptu
    ,per_people_f per
    WHERE 1 = 1
    AND ppt.person_type_id = pptu.person_type_id
    AND pptu.person_id = per.person_id;
    I then used this script to create a MV with the indexes shown:
    CREATE MATERIALIZED VIEW APPS.XXHR_PERSON_INFO_MV
    NOCACHE
    LOGGING
    NOPARALLEL
    BUILD IMMEDIATE
    REFRESH FORCE
    START WITH TO_DATE('09-Aug-2008 06:00:00','dd-mon-yyyy hh24:mi:ss')
    NEXT TRUNC(SYSDATE) + 1
    AS
    SELECT *
    FROM XXHR_PERSON_INFO_V;
    CREATE INDEX APPS.XXHR_PERSON_INFO_MV_N1 ON APPS.XXMPHRI_PERSON_INFO_MV
    (PERSON_ID)
    LOGGING
    NOPARALLEL;
    CREATE INDEX APPS.XXHR_PERSON_INFO_MV_N2 ON APPS.XXMPHRI_PERSON_INFO_MV
    (PERSON_EFFECTIVE_START, PERSON_EFFECTIVE_END)
    LOGGING
    NOPARALLEL;
    CREATE INDEX APPS.XXHR_PERSON_INFO_MV_N3 ON APPS.XXMPHRI_PERSON_INFO_MV
    (EMPLOYEE_NUMBER)
    LOGGING
    NOPARALLEL;
    CREATE INDEX APPS.XXHR_PERSON_INFO_MV_N4 ON APPS.XXMPHRI_PERSON_INFO_MV
    (SYSTEM_PERSON_TYPE)
    LOGGING
    NOPARALLEL;
    CREATE INDEX APPS.XXHR_PERSON_INFO_MV_N5 ON APPS.XXMPHRI_PERSON_INFO_MV
    (PERSON_tYPE)
    LOGGING
    NOPARALLEL;
    CREATE INDEX APPS.XXHR_PERSON_INFO_MV_N6 ON APPS.XXMPHRI_PERSON_INFO_MV
    (PERSON_USAGE_EFF_START, PERSON_USAGE_EFF_END)
    LOGGING
    NOPARALLEL;
    This creates a MV with about 900,000 records in it.
    If I then run the following SQL, the report takes about 2 minutes to run:
    SELECT employee_number,
    person_effective_start,
    person_effective_end
    FROM xxhr_person_info_mv
    WHERE TRUNC(SYSDATE) between person_effective_start and person_effective_end
    Is there any way to improve the performance of this query?
    I'm then joining this mV to two other MVs, one with 1 million rows, and another with 3 million rows. Performance is not great!
    Any help appreciated.
    Thanks
    Alex

    If you are on 9i or later, could you please post a properly formatted (using pre tags), complete output of DBMS_XPLAN.DISPLAY for your statement?
    In addition run an SQL*Plus autotrace and post the output, too:
    SET AUTOTRACE TRACEONLY TIMING ON
    <Run your statement>
    This should also include the information how many rows your statement actually returns.
    How long does it take if you use a full table scan instead of an index range scan?
    SELECT /*+ full(xxhr_person_info_mv) */
    employee_number,
    person_effective_start,
    person_effective_end
    FROM xxhr_person_info_mv
    WHERE TRUNC(SYSDATE) between person_effective_start and person_effective_end;Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle:
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Oracle query / view performing very slow.

    Hello,
    I had created a view in my application for example
    CREATE OR REPLACE VIEW EmpTransfer
    ( EMPID,EMPNAME,EMPMANAGER,EMPDOB,EMPTRANSFER)
    AS
    SELECT EMPID,EMPNAME,EMPMANAGER,EMPDOB,EMPTRANSFER
    FROM EMP ;
    After couple of months if we changed a columnname in the table EMP and added a new column.
    We changed column name EMPTRANSFER to OldEMPTRANSFER and added a new column as NEWEMPTRANSFER.
    The indexes were recreated on OldEMPTRANSFER and new index is creatd on NEWEMPTRANSFER column.
    the view is again recreated.
    CREATE OR REPLACE VIEW EmpTransfer
    ( EMPID,EMPNAME,EMPMANAGER,EMPDOB,OldEMPTRANSFER,NEWEMPTRANSFER )
    AS
    SELECT EMPID,EMPNAME,EMPMANAGER,EMPDOB,OldEMPTRANSFER ,NEWEMPTRANSFER
    FROM EMP ;
    This view is working as expected but some times this view is working very slow.
    The performance of this view is randomly slow.
    Is it possible that column name change will cause slowness...?

    What's the explain plans for both before and after the column change? It could possibly be running slow the first time because of a hard parse due to the query change, which will remain until it's in the shared_pool.
    Edited by: DaleyB on 07-Oct-2009 04:53

  • Viewer performance with DV clips

    Hi,
    I'm using Final Cut Pro in an environment where most of my source material is recorded from SDI video sources by an Omneon Spectrum system. The Omneon produces a QuickTime reference movie that references a DV and AIFF file and the DV file contains interleaved audio. The DV and AIFF are moved from the Omneon to a media asset management system and the MOV file is discarded. The DV files are often several GB in size, and are stored on a SAN which is accessed via a Gigabit Ethernet network.
    When a DV file (NOT the reference movie file) is dragged from the SAN to the browser and then opened in the viewer and played, the performance is very poor (stutters, stops, etc.). This is true even if the clip is dragged the desktop and played from there rather than from the SAN.
    However, when the clip is inserted into a sequence and played in the viewer then no performance issues are encountered.
    I've checked all the obvious things like scratch disks and am a little bit stumped!
    Has anybody else seen this issue or have any suggestions to what the cause might be?

    Thank you for the replies, here is an update and some additional information... (as it turns out, the plot thickens).
    Jerry: I no longer had the DV deck that I used to capture (plus it had no readouts anyway), so it took a few days but I found another DV deck with an onscreen display. I can now confirm that the DV tapes in question all have a 48kHz audio sample rate (which confirms what the camera operator told me, so he seems to be off the hook).
    *Studio X* & bogiesan: at this point, I do not think that 32kHz audio is implicated here. Today's DV deck re-verification indicates 48kHz audio recorded on these tapes.
    To re-iterate... as I pointed out in my original post, the clips play perfectly in sync all the way through using Quicktime Player (which displays 48kHz for the audio in the Inspector panel). The clips also stay in proper sync all the way through when played in Cinema Tools (which also indicates 48.00 Khz).
    Only when imported and played in FCP do these exact same media clips exhibit this progressive audio sync slippage (in both the Viewer and Canvas).
    Now here's where things get even more interesting: I decided to create a new timeline in FCP, using a framerate of exactly 24fps (rather than 23.98). When I tried to drop the problematic 23.98fps clips on that timeline, FCP asked me if I wanted to change the framerate of the timeline to match the framerate of the clips. I took a chance and said NO. Guess what — the clips now play in proper sync within that timeline, all the way to the end... amazing.
    Although this is neither a real solution, nor a full explanation as to what is happening, the fact that the clips only play in sync within an 'exact' 24fps timeline may shed some light as to what is going on within FCP.
    Any ideas? Thanks again.
    PS. this is clearly not the issue that the DVX100 Audio Sync Tool (allegedly) fixes; that 2-frame sync issue is described very well in the following article (near the end): http://www.adamwilt.com/24p/#AVsync

  • View Performance Issues

    Basically I have created a View that I can Select count(*) on and it returns the number of rows, I use the view for an Insert query to one table only pulling through several fields and after a bit of a pause it works...
    I then Insert the whole view to another table and Oracle seems to hang and temp space increases until it uses all 2.5 GB it was on 700 MB when I started the second Insert. We are only talking about 50,000 rows or so.
    The View is quite complex but surely Oracle has to create the whole view in order to Insert a few fields? So why does it hang on a Select * ?
    CREATE OR REPLACE VIEW VW_FAMITY_TRANSFORM AS
    SELECT CC_REF || '-' || RTrim(FAM_B_Prefix) AS CD_PROP, FAM_Surv_date AS CD_DATE, FAM_Unique_no AS CD_SEQ, TYP_TYPE AS CD_TYPE, FAM_SK_no AS CD_REF, FAM_E_no AS CD_OPT, FAM_SP_no AS CD_SUBOPT,
    FAM_Unique_no AS CD_NO, FAM_R_no AS CD_UREF, FAM_R_Name AS CD_UNAME, FAM_R_no AS CD_ALLOCUREF,
    FAM_SP_name AS CST_DESC, FAM_SK_name AS CSC_DESC, SUBSTR(FAM_Condition,1,3) AS CD_COND, FAM_PriorityVal AS CD_REP, NULL AS CD_REPDATE,
    FAM_Cost AS CD_M1, NULL AS CD_EST, FAM_Types AS CD_SHED, NULL AS CD_ACTION, NULL AS CD_INF, NULL AS CD_START, NULL AS CD_COMP,
    NULL AS CD_FAULT, Null AS CD_CHARGE, RTrim(FAM_SK_name) || ' ' || RTrim(FAM_E_name) || ' ' || RTrim(FAM_SP_name) AS CD_RACTION, FAM_R_Usage AS CD_CONSEQUENCE,
    FAM_FailYearVal AS CD_FAILYR, NULL AS CD_SCHYEAR, NULL AS CD_SCHPERD, FAM_Surv_Name AS CD_SURVEYOR, FAM_Units AS CD_C1, FAM_Dim AS CD_C2, FAM_Mg_dim AS CD_C3,
    FAM_Qty AS CD_M2, FAM_Mg_qty AS CD_M3, NULL AS CD_D1, NULL AS CD_D2, NULL AS CD_D3, FAM_Surv_Status AS CD_STATUS, NULL AS CD_ORIGIN, NULL AS CD_IND, NULL AS CD_BEDESC,
    NULL AS CD_CAT, FAM_Notes AS CD_DESC, FAM_E_name AS CD_CDESC, NULL AS CD_NEWSEQ, 'Y' AS CD_CANPROCESS
    FROM LD_FAMITY2, LD_CCENT, LD_TYPE, UNIT
    WHERE (CC_AREA = FAM_AREA) AND (FAM_SK_no = TYP_SK_no)
    AND (CC_REF || '-' || RTrim(FAM_B_Prefix) = RTrim(UN_BREF) AND TO_CHAR(FAM_R_no) = RTrim(UN_UREF));
    INSERT INTO CSURV_ADD (CS_SURVEYOR, CS_PROP, CS_PNAME, CS_DATE, CS_SEQ, CS_UREF, CS_UNAME, CS_ALLOCPROP, CS_ALLOCUREF, CS_STATUS, CS_CANPROCESS) SELECT CD_SURVEYOR, CD_PROP, PR_NAME, CD_DATE, CD_SEQ, CD_UREF, CD_UNAME, CD_PROP, CD_UREF, CD_STATUS, CD_CANPROCESS FROM VW_FAMITY_TRANSFORM, PROP WHERE (CD_PROP = RTRIM(PR_SNAM));
    INSERT INTO CDOTD_ADD SELECT * FROM VW_FAMITY_TRANSFORM;
    Basically I need to know why the temp space is fine for the first Insert and not for the second or any way to optimise.

    It is not a SQL*Plus tool issue; your question
    is posted in the wrong forum. Please ask again in
    the Database forum at http://www.oracle.com/forums/forum.jsp?forum=61
    or the SQL forum at http://www.oracle.com/forums/forum.jsp?forum=75
    -- CJ

Maybe you are looking for