Performance troubles when fetching the descriptions

Hello,
I have some bad performances in a web interface. I could correct some of them help to aggregates, but I am facing a bizarre situation.
I have one variable for 0EMPLOYEE. I fetch the characteristic values help to an exit function, and this works fast and well.
However, I display the description of the employees and not their key codes. I am not coding anything for fetching the descriptions, I let SAP BPS standard do the job.
When I trace the system, it appears that SAP creates a view joining the tables /BI0/QEMPLOYEE and /BI0/TEMPLOYEE, in order to get TXTMD. I do not understand why ... I already have the key codes needed to fetch the descriptions. I do not use any attributes for the descriptions.
Here is the generated code :
CREATE OR REPLACE VIEW "/BI0/0302679610" AS SELECT "Q"."SOURSYSTEM" ,"Q"."EMPLOYEE" ,"T"."TXTMD" FROM "/BI0/QEMPLOYEE" "Q" , "/BI0/TEMPLOYEE" "T" WHERE "Q"."SOURSYSTEM" = "T"."SOURSYSTEM"() AND "Q"."EMPLOYEE" = "T"."EMPLOYEE"() AND
( "Q"."CHANGED" = ' ' OR "Q"."CHANGED" = 'I' ) AND "Q"."DATETO" >= '20070101' AND "Q"."DATEFROM" <= '20070101' AND "Q"."SOURSYSTEM" = 'R1' AND ( "Q"."EMPLOYEE" = '00904096' OR "Q"."EMPLOYEE" = '00904085' OR "Q"."EMPLOYEE" = '00904077'
OR "Q"."EMPLOYEE" = '00904065' OR
"Q"."EMPLOYEE" = '00904056' OR
"Q"."EMPLOYEE" = '00904053'   ...................
I have the same problem with 0VENDOR, whose variable is not based on exit function but hierarchies. No problem to collect the list of the vendors, but the same problem when fetching their descriptions.
Regards
Laurent

Laurent,
    For a similar problem which I had faced earlier with
Material InfoObject, we had to create indexes on the
Master Data and also we put restrictions on the level
definitions on the Material InfoObject to look at some
selective Materials rather than million of them.This
approach worked and the amount of time it took to
display reduced to one eighth of the original time.
Hope this helps.
Cheers
Srini

Similar Messages

  • When editing my photos in albums (in 9.4.3)I enter descriptions and locations. I have had 2 iPhoto crashes and when reopened the descriptions are gone. Locations survived.  Can I get them back? Or do I have to do over?

    When editing my photos I add descriptions and locations. I have had 2 recent Iphoto crashes. When relaunched the descriptions are missing but locations survived.  Can I get them back somehow?  Have I missed a "save" step on each entry? Using Iphoto '11 version 9.4.3

    backup your iPhoto library, depress andhold the option and command keys, launch iPhoto and use the resulting first aid window to rebuild your iPhoto database
    LN

  • Performance issue when using the same query in a different way

    Hello,
    I have a performance problem with the statement below when running it with an insert or with execute immediate.
    n.b.: This statement could be more optimized, but it is a generated statement.
    When I run this statement I get one row back within one second, so there is no performance problem.
       select  sysdate
             ,5
             ,'testje'
             ,count (1)
             ,'NL' groupby
       from   (select 'different (target)' compare_type
                       ,t.id_org_addr id_org_addr -- ID_ORG_ADDR
                       ,t.vpd_country vpd_country -- CTL_COUNTRY
                       ,t.addr_type addr_type -- ADDRESSTYP_COD
                 from   (select *
                         from   (select t.*
                                 from      ods.ods_org_addr t
                                        left outer join
                                           m_sy_foreign_key m
                                        on m.vpd_country = t.vpd_country
                                        and m.key_type = 'ORGADDR2'
                                        and m.target_value = t.id_org_addr
                                 where  coalesce (t.end_date, to_date ('99991231', 'yyyymmdd')) >= sysdate) /*SGRB*/
                         where  vpd_country = 'NL' /*EGRB*/
                                                  ) t
                 where  exists
                           (select null
                            from   (select *
                                    from   (select m.target_value id_org_addr
                                                  ,s.wkp_id_cegedim || '-' || s.adr_id_cegedim || '-' || s.addresstyp_cod id_cegedim
                                                  ,s.*
                                            from      okc_mdl_workplace_address s
                                                   left outer join
                                                      m_sy_foreign_key m
                                                   on m.vpd_country = s.ctl_country
                                                   and m.key_type = 'ORGADDR2'
                                                   and m.source_value = s.wkp_id_cegedim || '-' || s.adr_id_cegedim || '-' || s.addresstyp_cod
                                            where  coalesce (s.end_val_dat, to_date ('99991231', 'yyyymmdd')) >= sysdate) /*SGRB*/
                                    where  ctl_country = 'NL' /*EGRB*/
                                                             ) s
                            where  t.id_org_addr = s.id_org_addr)
                 minus
                 select 'different (target)' compare_type
                       ,s.id_org_addr id_org_addr -- ID_ORG_ADDR
                       ,s.ctl_country vpd_country -- CTL_COUNTRY
                       , (select to_number (l.target_value)
                          from   okc_code_foreign l
                          where  l.source_code_type = 'TYS'
                          and    l.target_code_type = 'ADDRLINKTYPE'
                          and    l.source_value = upper (s.addresstyp_cod)
                          and    l.vpd_country = s.ctl_country)
                           addr_type -- ADDRESSTYP_COD
                 from   (select *
                         from   (select m.target_value id_org_addr
                                       ,s.wkp_id_cegedim || '-' || s.adr_id_cegedim || '-' || s.addresstyp_cod id_cegedim
                                       ,s.*
                                 from      okc_mdl_workplace_address s
                                        left outer join
                                           m_sy_foreign_key m
                                        on m.vpd_country = s.ctl_country
                                        and m.key_type = 'ORGADDR2'
                                        and m.source_value = s.wkp_id_cegedim || '-' || s.adr_id_cegedim || '-' || s.addresstyp_cod
                                 where  coalesce (s.end_val_dat, to_date ('99991231', 'yyyymmdd')) >= sysdate) /*SGRB*/
                         where  ctl_country = 'NL' /*EGRB*/
                                                  ) s) When I run this statement using a insert by placing
    insert into okc_compare_results (
                   datetime
                  ,compare_tables_id
                  ,compare_target
                  ,record_count
                  ,groupby
                ) before the statement, then the statement runs about *3 to 4 minutes*, The same is happening when running the select part only using execute immediate.
    Below the execution plans of the insert with the select and the select only.
    Could somebody tell me what causes the different behavior of the "same" statement and what could I do to avoid this behavior.
    The database version is: 11.1.0.7.0
    Regards,
    Fred.
    SQL Statement which produced this data:
      select * from table(dbms_xplan.display_cursor ('cuk3uwnxx344q',0 /*3431532430 */))
      union all
      select * from table(dbms_xplan.display_cursor ('862aq599gfd6n',0/*3531428851 */))
    plan_table_output
    SQL_ID  cuk3uwnxx344q, child number 0
    select sysdate          ,:"SYS_B_00"          ,:"SYS_B_01"          
    ,count (:"SYS_B_02")          ,:"SYS_B_03" groupby    from   ( (select
    :"SYS_B_04" compare_type                    ,t.id_org_addr id_org_addr
    -- ID_ORG_ADDR                    ,t.vpd_country vpd_country --
    CTL_COUNTRY                    ,t.addr_type addr_type -- ADDRESSTYP_COD
                 from   (select *                      from   (select t.*   
                               from      ods.ods_org_addr t                 
                        left outer join                                     
       m_sy_foreign_key m                                     on
    m.vpd_country = t.vpd_country ;                                    and
    m.key_type = :"SYS_B_05"                                     and
    m.target_value = t.id_org_addr ;                             where  
    coalesce (t.end_date, to_date (:"SYS_B_06", :"SYS_B_07")) >= sysdate)
    /*SGRB*/                      where  vpd_country = :"SYS_B_08" /*EGRB*/
    Plan hash value: 3431532430
    Id   Operation                                  Name                       Rows   Bytes Cost (%CPU) Time      Pstart Pstop
    0 SELECT STATEMENT                                                                         1772 (100)                           
    1   SORT AGGREGATE                                                        1                                                
    2    VIEW                                                                 3           1772   (1) 00:00:22                
    3     MINUS                                                                                                                      
    4      SORT UNIQUE                                                        3 492   1146   (1) 00:00:14                
    *  5       HASH JOIN OUTER                                                   3 492   1145   (1) 00:00:14                
    6        NESTED LOOPS                                                                                                            
    7         NESTED LOOPS                                                    3 408    675   (1) 00:00:09                
    *  8          HASH JOIN                                                      42 4242    625   (1) 00:00:08                
    9           PARTITION LIST SINGLE                                         3375    148K    155   (2) 00:00:02    KEY    KEY
    * 10            TABLE ACCESS FULL                OKC_MDL_WORKPLACE_ADDRESS 3375    148K    155   (2) 00:00:02    KEY    KEY
    * 11           INDEX RANGE SCAN                  PK_M_SY_FOREIGN_KEY        49537   2709K    469   (1) 00:00:06                
    * 12          INDEX UNIQUE SCAN                  UK_ODS_ORG_ADDR            1              1   (0) 00:00:01                
    * 13         TABLE ACCESS BY GLOBAL INDEX ROWID ODS_ORG_ADDR               1 35      2   (0) 00:00:01 ROWID ROWID
    * 14        INDEX RANGE SCAN                     PK_M_SY_FOREIGN_KEY        49537   1354K    469   (1) 00:00:06                
    15      NESTED LOOPS                                                                                                              
    16       NESTED LOOPS                                                      1 67      9  (12) 00:00:01                
    17        NESTED LOOPS                                                     1 48      8  (13) 00:00:01                
    * 18         HASH JOIN                                                       1 23      6  (17) 00:00:01                
    * 19          TABLE ACCESS BY GLOBAL INDEX ROWID ODS_COUNTRY_SYSTEM         1 11      2   (0) 00:00:01 ROWID ROWID
    * 20           INDEX RANGE SCAN                  PK_ODS_DIVISION_SYSTEM     1              1   (0) 00:00:01                
    * 21          TABLE ACCESS FULL                  SY_SOURCE_CODE             8 96      3   (0) 00:00:01                
    22         TABLE ACCESS BY INDEX ROWID         SY_FOREIGN_CODE            1 25      2   (0) 00:00:01                
    * 23          INDEX RANGE SCAN                   PK_SY_FOREIGN_CODE         1              1   (0) 00:00:01                
    * 24        INDEX UNIQUE SCAN                    PK_SY_TARGET_CODE          1              0   (0)                           
    * 25       TABLE ACCESS BY INDEX ROWID           SY_TARGET_CODE             1 19      1   (0) 00:00:01                
    26      SORT UNIQUE                                                        3375    332K    626   (1) 00:00:08                
    * 27       HASH JOIN OUTER                                                   3375    332K    625   (1) 00:00:08                
    28        PARTITION LIST SINGLE                                            3375    148K    155   (2) 00:00:02    KEY    KEY
    * 29         TABLE ACCESS FULL                   OKC_MDL_WORKPLACE_ADDRESS 3375    148K    155   (2) 00:00:02    KEY    KEY
    * 30        INDEX RANGE SCAN                     PK_M_SY_FOREIGN_KEY        49537   2709K    469   (1) 00:00:06                
    Predicate Information (identified by operation id):
       5 - access("M"."TARGET_VALUE"="T"."ID_ORG_ADDR" AND "M"."VPD_COUNTRY"="T"."VPD_COUNTRY")
       8 - access("M"."SOURCE_VALUE"="S"."WKP_ID_CEGEDIM" :SYS_B_12 S."ADR_ID_CEGEDIM" :SYS_B_13 S."ADDRESSTYP_COD" AND
                  "M"."VPD_COUNTRY"="S"."CTL_COUNTRY")
      10 - filter(COALESCE("S"."END_VAL_DAT",TO_DATE(:SYS_B_14,:SYS_B_15))>=SYSDATE@!)
      11 - access("M"."KEY_TYPE"=:SYS_B_11 AND "M"."VPD_COUNTRY"=:SYS_B_16)
      12 - access("T"."ID_ORG_ADDR"="M"."TARGET_VALUE")
      13 - filter(("T"."VPD_COUNTRY"=:SYS_B_08 AND COALESCE("T"."END_DATE",TO_DATE(:SYS_B_06,:SYS_B_07))>=SYSDATE@!))
      14 - access("M"."KEY_TYPE"=:SYS_B_05 AND "M"."VPD_COUNTRY"=:SYS_B_08)
      18 - access("CS"."ID_SYSTEM"="SK"."ID_SOURCE_SYSTEM")
      19 - filter("CS"."SYSTEM_TYPE"=1)
      20 - access("CS"."VPD_COUNTRY"=:B1 AND "CS"."EXP_IMP_TYPE"='I')
           filter("CS"."EXP_IMP_TYPE"='I')
      21 - filter("SK"."CODE_TYPE"=:SYS_B_18)
      23 - access("FK"."ID_SOURCE_CODE"="SK"."ID_SOURCE_CODE" AND "FK"."SOURCE_VALUE"=UPPER(:B1) AND
                  "CS"."VPD_COUNTRY"="FK"."VPD_COUNTRY")
           filter(("FK"."VPD_COUNTRY"=:B1 AND "FK"."SOURCE_VALUE"=UPPER(:B2) AND "CS"."VPD_COUNTRY"="FK"."VPD_COUNTRY"))
      24 - access("FK"."ID_TARGET_CODE"="TK"."ID_TARGET_CODE")
      25 - filter("TK"."CODE_TYPE"=:SYS_B_19)
      27 - access("M"."SOURCE_VALUE"="S"."WKP_ID_CEGEDIM" :SYS_B_23 S."ADR_ID_CEGEDIM" :SYS_B_24 S."ADDRESSTYP_COD" AND
                  "M"."VPD_COUNTRY"="S"."CTL_COUNTRY")
      29 - filter(COALESCE("S"."END_VAL_DAT",TO_DATE(:SYS_B_25,:SYS_B_26))>=SYSDATE@!)
      30 - access("M"."KEY_TYPE"=:SYS_B_22 AND "M"."VPD_COUNTRY"=:SYS_B_27)
    SQL_ID  862aq599gfd6n, child number 0
    insert into okc_compare_results (                datetime               
    ,compare_tables_id               ,compare_target               
    ,record_count               ,groupby             )                
    select sysdate          ,:"SYS_B_00"          ,:"SYS_B_01"          
    ,count (:"SYS_B_02")          ,:"SYS_B_03" groupby    from   ( (select
    :"SYS_B_04" compare_type                    ,t.id_org_addr id_org_addr
    -- ID_ORG_ADDR                    ,t.vpd_country vpd_country --
    CTL_COUNTRY                    ,t.addr_type addr_type -- ADDRESSTYP_COD
                 from   (select *                      from   (select t.*   
                               from      ods.ods_org_addr t                 
                        left outer join                                     
       m_sy_foreign_key m                                     on
    m.vpd_country = t.vpd_country ;                                    and
    m.key_type = :"SYS_B_05"                                     and
    m.target_value = t.id_org_addr
    Plan hash value: 3531428851
    Id   Operation                                   Name                       Rows   Bytes Cost (%CPU) Time      Pstart Pstop
    0 INSERT STATEMENT                                                                          1646 (100)                           
    1   LOAD TABLE CONVENTIONAL                                                                                                       
    2    SORT AGGREGATE                                                        1                                                
    3     VIEW                                                                 1           1646   (1) 00:00:20                
    4      MINUS                                                                                                                      
    5       SORT UNIQUE                                                        1 163                                        
    6        NESTED LOOPS OUTER                                                1 163   1067   (1) 00:00:13                
    7         NESTED LOOPS                                                     1 135    599   (1) 00:00:08                
    *  8          HASH JOIN                                                       19 1919    577   (2) 00:00:07                
    9           PARTITION LIST SINGLE                                          1535 69075    107   (4) 00:00:02    KEY    KEY
    * 10            TABLE ACCESS FULL                 OKC_MDL_WORKPLACE_ADDRESS 1535 69075    107   (4) 00:00:02    KEY    KEY
    * 11           INDEX RANGE SCAN                   PK_M_SY_FOREIGN_KEY        49537   2709K    469   (1) 00:00:06                
    * 12          TABLE ACCESS BY GLOBAL INDEX ROWID ODS_ORG_ADDR               1 34      2   (0) 00:00:01 ROWID ROWID
    * 13           INDEX UNIQUE SCAN                  UK_ODS_ORG_ADDR            25              1   (0) 00:00:01                
    * 14         INDEX RANGE SCAN                     PK_M_SY_FOREIGN_KEY        1 28    468   (1) 00:00:06                
    15       NESTED LOOPS                                                                                                              
    16        NESTED LOOPS                                                      1 67      8   (0) 00:00:01                
    17         NESTED LOOPS                                                     1 48      7   (0) 00:00:01                
    18          NESTED LOOPS                                                    1 23      5   (0) 00:00:01                
    * 19           TABLE ACCESS BY GLOBAL INDEX ROWID ODS_COUNTRY_SYSTEM         1 11      2   (0) 00:00:01 ROWID ROWID
    * 20            INDEX RANGE SCAN                  PK_ODS_DIVISION_SYSTEM     1              1   (0) 00:00:01                
    * 21           TABLE ACCESS FULL                  SY_SOURCE_CODE             1 12      3   (0) 00:00:01                
    22          TABLE ACCESS BY INDEX ROWID         SY_FOREIGN_CODE            1 25      2   (0) 00:00:01                
    * 23           INDEX RANGE SCAN                   PK_SY_FOREIGN_CODE         1              1   (0) 00:00:01                
    * 24         INDEX UNIQUE SCAN                    PK_SY_TARGET_CODE          1              0   (0)                           
    * 25        TABLE ACCESS BY INDEX ROWID           SY_TARGET_CODE             1 19      1   (0) 00:00:01                
    26       SORT UNIQUE                                                        1535    151K                                        
    * 27        HASH JOIN OUTER                                                   1535    151K    577   (2) 00:00:07                
    28         PARTITION LIST SINGLE                                            1535 69075    107   (4) 00:00:02    KEY    KEY
    * 29          TABLE ACCESS FULL                   OKC_MDL_WORKPLACE_ADDRESS 1535 69075    107   (4) 00:00:02    KEY    KEY
    * 30         INDEX RANGE SCAN                     PK_M_SY_FOREIGN_KEY        49537   2709K    469   (1) 00:00:06                
    Predicate Information (identified by operation id):
       8 - access("M"."SOURCE_VALUE"="S"."WKP_ID_CEGEDIM" :SYS_B_12 S."ADR_ID_CEGEDIM" :SYS_B_13 S."ADDRESSTYP_COD" AND
                  "M"."VPD_COUNTRY"="S"."CTL_COUNTRY")
      10 - filter(COALESCE("S"."END_VAL_DAT",TO_DATE(:SYS_B_14,:SYS_B_15))>=SYSDATE@!)
      11 - access("M"."KEY_TYPE"=:SYS_B_11 AND "M"."VPD_COUNTRY"=:SYS_B_16)
      12 - filter((COALESCE("T"."END_DATE",TO_DATE(:SYS_B_06,:SYS_B_07))>=SYSDATE@! AND "T"."VPD_COUNTRY"=:SYS_B_08))
      13 - access("T"."ID_ORG_ADDR"="M"."TARGET_VALUE")
      14 - access("M"."KEY_TYPE"=:SYS_B_05 AND "M"."VPD_COUNTRY"=:SYS_B_08 AND "M"."TARGET_VALUE"="T"."ID_ORG_ADDR")
           filter("M"."TARGET_VALUE"="T"."ID_ORG_ADDR")
      19 - filter("CS"."SYSTEM_TYPE"=1)
      20 - access("CS"."VPD_COUNTRY"=:B1 AND "CS"."EXP_IMP_TYPE"='I')
           filter("CS"."EXP_IMP_TYPE"='I')
      21 - filter(("SK"."CODE_TYPE"=:SYS_B_18 AND "CS"."ID_SYSTEM"="SK"."ID_SOURCE_SYSTEM"))
      23 - access("FK"."ID_SOURCE_CODE"="SK"."ID_SOURCE_CODE" AND "FK"."SOURCE_VALUE"=UPPER(:B1) AND
                  "CS"."VPD_COUNTRY"="FK"."VPD_COUNTRY")
           filter(("FK"."VPD_COUNTRY"=:B1 AND "FK"."SOURCE_VALUE"=UPPER(:B2) AND "CS"."VPD_COUNTRY"="FK"."VPD_COUNTRY"))
      24 - access("FK"."ID_TARGET_CODE"="TK"."ID_TARGET_CODE")
      25 - filter("TK"."CODE_TYPE"=:SYS_B_19)
      27 - access("M"."SOURCE_VALUE"="S"."WKP_ID_CEGEDIM" :SYS_B_23 S."ADR_ID_CEGEDIM" :SYS_B_24 S."ADDRESSTYP_COD" AND
                  "M"."VPD_COUNTRY"="S"."CTL_COUNTRY")
      29 - filter(COALESCE("S"."END_VAL_DAT",TO_DATE(:SYS_B_25,:SYS_B_26))>=SYSDATE@!)
      30 - access("M"."KEY_TYPE"=:SYS_B_22 AND "M"."VPD_COUNTRY"=:SYS_B_27)Edited by: BluShadow on 20-Jun-2012 10:30
    added {noformat}{noformat} tags for readability.  Please read {message:id=9360002} and learn to do this yourself.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              

    yes, all the used tables are analyzed.
    Thanks, for pointing to the metalink bug, I have also searched in metalink, but didn't find this bug.
    I have a little bit more information about the problem.
    I use the following select (now in a readable format)
    select count (1)
    from   ( (select 'different (target)' compare_type
                    ,t.id_org_addr id_org_addr -- ID_ORG_ADDR
                    ,t.vpd_country vpd_country -- CTL_COUNTRY
                    ,t.addr_type addr_type -- ADDRESSTYP_COD
              from   (select *
                      from   (select t.*
                              from      ods.ods_org_addr t
                                     left outer join
                                        m_sy_foreign_key m
                                     on m.vpd_country = t.vpd_country
                                     and m.key_type = 'ORGADDR2'
                                     and m.target_value = t.id_org_addr
                              where  coalesce (t.end_date, to_date ('99991231', 'yyyymmdd')) >= sysdate) /*SGRB*/
                      where  vpd_country = 'NL' /*EGRB*/
                                               ) t
              where  exists
                        (select null
                         from   (select *
                                 from   (select m.target_value id_org_addr
                                               ,s.wkp_id_cegedim || '-' || s.adr_id_cegedim || '-' || s.addresstyp_cod id_cegedim
                                               ,s.*
                                         from      okc_mdl_workplace_address s
                                                left outer join
                                                   m_sy_foreign_key m
                                                on m.vpd_country = s.ctl_country
                                                and m.key_type = 'ORGADDR2'
                                                and m.source_value = s.wkp_id_cegedim || '-' || s.adr_id_cegedim || '-' || s.addresstyp_cod
                                         where  coalesce (s.end_val_dat, to_date ('99991231', 'yyyymmdd')) >= sysdate) /*SGRB*/
                                 where  ctl_country = 'NL' /*EGRB*/
                                                          ) s
                         where  t.id_org_addr = s.id_org_addr)
              minus
              select 'different (target)' compare_type
                    ,s.id_org_addr id_org_addr -- ID_ORG_ADDR
                    ,s.ctl_country vpd_country -- CTL_COUNTRY
                    , (select to_number (l.target_value)
                       from   okc_code_foreign l
                       where  l.source_code_type = 'TYS'
                       and    l.target_code_type = 'ADDRLINKTYPE'
                       and    l.source_value = upper (s.addresstyp_cod)
                       and    l.vpd_country = s.ctl_country)
                        addr_type -- ADDRESSTYP_COD
              from   (select *
                      from   (select m.target_value id_org_addr
                                    ,s.wkp_id_cegedim || '-' || s.adr_id_cegedim || '-' || s.addresstyp_cod id_cegedim
                                    ,s.*
                              from      okc_mdl_workplace_address s
                                     left outer join
                                        m_sy_foreign_key m
                                     on m.vpd_country = s.ctl_country
                                     and m.key_type = 'ORGADDR2'
                                     and m.source_value = s.wkp_id_cegedim || '-' || s.adr_id_cegedim || '-' || s.addresstyp_cod
                              where  coalesce (s.end_val_dat, to_date ('99991231', 'yyyymmdd')) >= sysdate) /*SGRB*/
                      where  ctl_country = 'NL' /*EGRB*/
                                               ) s)) The select is executed in 813 msecs
    When I execute the same select using execute immediate like:
    declare
       ln_count number;
    begin
       execute immediate q'[<select statement>]' into ln_count;
    end;This takes 3:56 minutes to complete.
    When I change the second coalesce part (the one within the exists) in the flowing way:
    the part
    coalesce (s.end_val_dat, to_date ('99991231', 'yyyymmdd')) >= sysdate
    is replaced by
    s.end_val_dat >= sysdate or s.end_val_dat is nullthen the execution time is even faster (560 msecs) in both, the plain select and the select using the execute immediate.

  • Performance Problem when executing the report for the first time.

    Hi,
    We have a Zreport...to improve the performance i created Index on few Data Base table..before my changes it used to take more than 15 minutes after the changes it taking less than 1 min for the same variant and for other variants also.
    But when executing the first in morning its taking the same time more than 15 min.Please let me know how to increase the performance when executing first time also,
    Thanks,
    Kiran.

    Hi all,
    Appreciate your valuable replies...
    @ Thomas: i do accept with your solution running a background job..but user is not accepting for it..thanks for your reply.
    @Siegfried Boes  : for testing purpose Im running this manytimes..but for user they may
    require when ever they need to know open oders.the volume of the data is barongs 300-350 at
    max.
    @Brad Bohn  : After creating the index the repose time reduced to half ...i hope  i have
    created a right index.
    Observation here...I executed the report in production system more than 5 times it took the
    same time, my changes are still in quality..so i think may be for selecting the right index
    its taking this much time.and for the next time is taking right index n doing it so it taking
    less.
    Do you accept it?.if so Please let me know how to explicitly say the select statement to
    use my index.
    Thanks,
    kiran.

  • Dump when fetching the Parameter.

    Hi Gurus,
    I want to pass some parameter to when i m calling another application in the portal by calling this mehod.
    CALL METHOD l_portal_manager->navigate_to_object
          EXPORTING
            system                      = 'SAP_R3'
            object_type                 = 'com.sap.obn.so'
            operation                   = 'SALESORDER'
            business_parameters         = lt_params
            USE_FORWARDPARAMETERS_OF_AL = abap_true.
    In the lt_params, i ve two element  i.e. REF_DOC and FROM_DATE which contails the value also.And the value are passing successfully.
    But when i m trying to fetch the data from the other component its throwing some exception "REF_DOC contain Invalid Variable". Basically what i did in the other component i have declared the REF_DOC in the inbound parameter and also in the parameter tab of the application.
    Can any body tell , what exactly the problem is ?
    Do i need to do some code for fetching the data .
    Points'll be surely rewarded.
    Thanks!
    -Satya
    Edited by: satya pujahari on Jun 30, 2008 5:16 PM

    >
    satya pujahari wrote:
    > Hi Thomas,
    > Here i am getting the exception.
    > *====================
    > method handledefault.
    > *====================
    > " typecasting from generic to specific arguments
    >
    > * data declaration
    >   data:
    >     !wdEvent like !Event.
    >   field-symbols:
    >     <cur_Param>   type Wdr_Event_Parameter.
    >
    >   wdEvent = Event.
    >
    >   " mandatory parameter sales_order_number
    >   data:
    >     !sales_order_number type String.
    >   read table Event->Parameters[]
    >     with table key Name = `SALES_ORDER_NUMBER` assigning <cur_Param>.
    >   if ( 0 ne sy-Subrc ).
    > >>>    raise exception type Cx_Wd_Bad_Args
    >       exporting
    >          Parameter = `SALES_ORDER_NUMBER`.
    >   endif.
    Maybe I am missing something, but you called it REF_DOC when you exported the parameter but you are trying to read SALES_ORDER_NUMBER when you import it.  Does that make sense?  Have you debugged to see what records are contained in Event->parameters?

  • How to fetch the description of a field

    Hi All,
    Could anybody please tell me , how to fetch the field description for a given field name .Any function module for it or how to fetch it ??
    Thanks in Advance.
    Regards,
    Rakesh.

    Hi,
    Copy paste this code and at the end of the code check the table len_table
    data: len_table type standard table of DFIES .
       CALL FUNCTION 'DDIF_FIELDINFO_GET'
        EXPORTING
        tabname              = 'JKAP'                   {color:red}" change as per your requirement{color}
       FIELDNAME            = 'VBELN'              {color:red}" change as per your requirement{color}
    *   LANGU                = SY-LANGU
    *   LFIELDNAME           = ' '
    *   ALL_TYPES            = ' '
    *   GROUP_NAMES          = ' '
    *   UCLEN                =
    * IMPORTING
    *   X030L_WA             =
    *   DDOBJTYPE            =
    *   DFIES_WA             =
    *   LINES_DESCR          =
    TABLES
       DFIES_TAB            = len_table
    *   FIXED_VALUES         =
    * EXCEPTIONS
    *   NOT_FOUND            = 1
    *   INTERNAL_ERROR       = 2
    *   OTHERS               = 3
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Check out the internal Table len_table.
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

  • Visual studio - GIT - always prune when fetching the repo ?

    Hi,
    I'd like to know if there is a possiblity to prune the stale remote branches when I use fetch or pull from visual studio team explorer ?
    Thanks for any pointer

    Hi Christ,  
    Thanks for your post.
    What’s the “prune” mean? How to known which branch is stale? Please provide a detailed example to descript your scenario?
    Fetch will get other commits from your team project, please refer to the information in this document:
    https://msdn.microsoft.com/en-us/library/hh850436.aspx#fetch.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Zpool performance drop when more the 90% utilisation of a vdev

    I notice that when a vdev of a pool is more then 90% used, the performance of that pool drops and kernel utilisation increase sharply.
    We are using solaris 10 u7, I have the following vdev in my pool:
    cds3-devl-01-z1 1.09T 876G 76 100 3.94M 3.83M
    c3t600A0B80002994960000086649A5024Fd0 242G 5.57G 10 7 486K 167K
    c3t600A0B80002994960000086749A67E47d0 242G 5.76G 11 8 510K 189K
    c3t0020C24001073764d0 1.29M 63.5G 0 41 0 1.88M
    c3t600A0B80002994960000087E49FEC2CDd0 242G 6.39G 12 11 622K 267K
    c3t600A0B800029979E000009D14A2627BCd0 140G 108G 17 13 989K 585K
    c3t600A0B8000299496000008814A26286Dd0 130G 118G 15 12 902K 522K
    c3t600A0B8000299496000008844A2D0897d0 116G 632G 15 10 928K 472K
    I have some vdev that are low in free space, but hi have some that have plenty of it.
    zfs keeps writing on the ones where there is low spaces that generate a lot of kernel activity when it'looking for free space.
    Is their a way to tell zfs not to write anymore to does vdev so we can use the other vdev?
    The only way that I see to resolve my problem is to do a backup/restore and that should spread the space used.
    a zfs reorg or defrag would me nice !!

    ZFS tryes to keep the utilziaion even between all vdevs of a single pool. Check your pool with * zfs iostat*
    # zpool iostat -v
                                                capacity     operations    bandwidth
    pool                                      used  avail   read  write   read  write
    big_store                                1.51T   150G     35    166  3.03M  1.31M
      c5t600508B40006E5850000B000012F0000d0  98.4G  1.11G      2     10   233K  67.6K
      c5t600508B40006E5850000B00001340000d0  98.1G  1.40G      3     11   244K  72.7K
      c5t600508B40006E5850000B00001370000d0  98.0G  1.52G      3      9   243K  57.9K
      c5t600508B40006E5850000B000013A0000d0  98.0G  1.52G      3     12   256K  72.6K
      c5t600508B40006E5850000B000013D0000d0  98.0G  1.48G      3     14   268K  79.6K
      c5t600508B40006E5850000B00001400000d0  98.0G  1.51G      2     13   234K  80.0K
      c5t600508B40006E5850000B00001430000d0  98.1G  1.44G      2     11   227K  78.2K
      c5t600508B40006E5850000B00001460000d0  96.9G  2.63G      2     10   198K  80.1K
      c5t600508B40006E5850000B00001490000d0  97.6G  1.95G      2     10   225K   104K
      c5t600508B40006E5850000B000014C0000d0  97.1G  2.35G      2     10   205K  82.5K
      c5t600508B40006E5850000B000014F0000d0  97.5G  2.02G      2     12   191K  98.0K
      c5t600508B40006E5850000B00001520000d0  96.2G  3.26G      2     12   209K   104K
      c5t600508B40006E5850000B00001550000d0  95.8G  3.72G      2     14   232K   151K
      c5t600508B40006E5850000B00001580000d0  92.8G  6.74G      2     14   236K   134K
      c5t600508B40006E5850000B000015B0000d0  93.6G  5.89G      2     12   229K   123K
      c5t600508B40006E5850000B00004C30000d0  62.5G  37.0G      1     11   208K   168K
      c5t600508B40006E5850000B000052D0000d0  25.2G  74.3G      1     14   125K   175K
    syspool      854M  67.2G      0      0    201     29
      mirror     854M  67.2G      0      0    201     29
        c1t2d0      -      -      0      0    125     29
        c1t3d0      -      -      0      0    127     29
    ----------  -----  -----  -----  -----  -----  -----Also, you can run zfs iostat -c 10 to identify which vdevs are heavly used.
    Cheers
    Andreas

  • Unable to fetch the group description through object model

    Hi,
    We have a application, that uses object model to create HNSCs in SharePoint 2013 server. Using the application, we also manage groups and subsites. 
    While fetching the description of the groups we are facing some issues. The scenario is explained below:
    A HNSC is created in farm, url being http://example.contosso.com. Under the root site, two groups group1 and group2, with different permissions. No description is provided while creating group1 from our application. Now, after browsing the site, when a description
    is added for group1, in the "About Me" section, our application is unable to fetch the data from the farm.
    On the other hand, when description is provided for group2 from our application, it is properly reflected in the farm, under the "About Me" section of group2.
    We are using SPGroup.Description for fetching the group description and setting the group description.
    Can anybody please suggest, as to why the group description is not properly fetched from the farm.
    Thanks in advance,
    Arnab

    Hi Arnab,
    Please refer the below url to solve the issue.
     http://stackoverflow.com/questions/968819/change-description-of-a-sharepoint-group
    Thanks.
    A'Kumar

  • Performance problem when using CAPS LOCK piano input

    Dear reader,
    I'm very new to Logic and am running into a performance problem when using the CAPS LOCK-piano-keyboard for input of an instrument: when I'm not recording everything is fine and the program instantly responds on my keystrokes, but as soon as I go into record-mode there is sometimes a delay in the response-time (so I press a key and it takes up to half a second longer before the note is actually played).
    Is there anything to do about this to improve performance (for example turning of certain features of the application), or should I never use the CAPS LOCK keyboard anyway and go straight for an external MIDI-keyboard?
    Thanks and regards,
    Tim Metz

    Does your project have Audio tracks and just how heavy it is, how many tracks? Also, what kind of Software Instrument do you use?

  • Performance issues while accessing the Confirm/Goods Services' transaction

    Hello
    We are using SRM 4.0 , through Enterprise Portal 7.0.
    Many of our users are crippled by Performance issues when accessing the Confirm/Goods Services tab( Transaction bbpcf02).
    The system simply clocks and would never show the screen.
    This problem occurs for some users all the time, and some users for some time.
    It's not related to the User's machine as others are able to access it fast using the same machine.
    It is also not dependent on the data size (i.e.no . of confirmations created by the user).
    We would like to know why only some users are suffering more pronouncedly, and why is this transaction generally slower than all others.
    Any directions for finding the Probable cause will be highly rewarded.
    Thanks
    Kedar

    Hi Kedar,
    Please go through the following OSS Notes:
    Note 610805 - Performance problems in goods receipt
    Note 885409 - BBPCF02: The search for confirmation and roles is slow
    Note 1258830 - BBPCF02: Display/Process confirmation response time is slow
    Thanks,
    Pradeep

  • I have trouble when installing Oxford advanced learner's dictionary

    I'm experiencing some troubles when installing the Oxford advanced learner's dictionary in OS X Maverick . It does not run the dictionary. I tried several times, but it shouts down itself.   

    That's because it's not compatible with Mavericks.
    Here's something from the OALD website that might help though:
    Apple OSX.9 Update
    Since the recent release of OSX.9 Mavericks. We have identified a compatibility issue with some of our CD/DVD-ROM titles. On inserting these titles into a computer, users are presented with an error message informing them that “the application quit unexpectedly”. We’re currently working on how to resolve this issue, but in the meantime we can advise the following workaround. Please copy the full contents of the disc to a hard-drive location on your machine. Click the ‘start.app’ file, and the program will run without error.

  • GETTING A GPF WHEN OPENING THE UNDO SCREEN IN PERFORMANCE ANALYZER(OFSA)

    제품 : OFSA_PA
    작성날짜 : 2003-04-25
    GETTING A GPF WHEN OPENING THE UNDO SCREEN IN PERFORMANCE ANALYZER(OFSA)
    ========================================================================
    PURPOSE
    Problem Description
    고객이 PA에서 Menu -> "Undo" 화면을 선택하면
    무시닫기 에러(GPF)가 발생함.
    Workaround
    Solution Description
    DATA_IDENTITY table에 16000 rows보다 더 많이 들어가 있으면 발생한다.
    그러므로, 과거 data 즉, undo가 필요 없는 자료를 삭제를 해야한다.
    Reference Documents
    note : 134609.1

    Hi Titan, this sounds like an IE security setting issue. Things to do:
    1. In Internet options>Security>Local Intranet, make sure "Enable Protected Mode" is not selected.
    2. Under Sites>Advanced, add https://*.sharepoint.com (and make sure "Require server verification..." is not checked).
    3. Under Security>Custom Level, scroll all the way to the bottom and make sure "Automatic logon with current user..." is checked.
    cameron rautmann

  • Hi! I'm just having a little trouble when it comes to battery charging of my iPhone 5 with its new iOS 7! It doesn't indicates that the battery is fully charge unlike the old version of iOS! They said it should be pulsating but it's not

    Hi! I'm just having a little trouble when it comes to battery charging of my iPhone 5 with its new iOS 7! It doesn't indicates that the battery is fully charge unlike the old version of iOS! I already read some reviews and discussion about this. They said that the lightning bolt should pulsate when charging but it's not!

    Thanks for the replies. It took a while not hearing anything so thought I was alone. I have done many of the suggestions already. The key here is that it occurs on both phones with apps, and phones still packaged in a box.
    A Genius Bar supervisor also checked his Verizon data usage log and found the same 6 hour incremental use. Suprisingly, he did not express much intrigue over that. Maybe he did, but did not show it.
    I think the 6 hour incremental usage is the main issue here. I spoke with Verizon (again) and they confirmed that all they do is log exactly when the phone connected to the tower and used data. The time it records is when the usage started. I also found out that the time recorded is GMT.
    What is using data, unsolicited, every 6 hours?
    Why does it change?
    Why does it only happen on the iPhone 5 series and not the 4?
    Since no one from Apple seems to be chiming in on this, and I have not received the promised calls from Apple tech support that the Genius Bar staff said I was suppose to receive, it is starting to feel like something is being swept under the rug.
    I woke up the other day with another thought ... What application would use such large amounts of data? Well ... music, video, sound and pictures of course. Well ... what would someone set automatically that is of any use to them? hmmm ... video, pictures, sound. Is the iPhone 5 succeptible to snooping? Can an app be buried in the IOS that automatically turns on video and sound recording, and send it somewhere ... every 6 hours? Chilling. I noted that the smallest data usage is during the night when nothing is going on, then it peaks during the day. The Genius Bar tech and I looked at each other when I drew this sine wave graph on the log print outs during an appointment ...

  • I am having troubles, when I open LR I get a message that there is an error and it will try to fix the error next time it opens, but I get the error next time it opens, and this is going on and on where I can not use LR, any suggestions?

    I am having troubles, when I open LR I get a message that there is an error and it will try to fix the error next time it opens. LR closes on it's own, I reopen it and get that same message next time it opens, and this is going on and on where I can not use LR, any suggestions? If I click on a different set of photos in the libary before I get that message I might or might not get the message next time it oipens, but I still can not get to those photos, and it is not just one or two but most of my photos. HELP!!!!
    Thanks
    Carol

    The first thing I would suggest is for you to go to the folder containing your catalog, using your system browser. There will be a folder that has the extension .lrdata. Delete that folder, and then try to start Lightroom. If that doesn't work, replace your catalog with your most recent backup.

Maybe you are looking for

  • ITunes 7.2.0.34 crashes when playing song under Vista

    Hi, I just upgraded to the latest iTunes version on my Vista machine. I also had the vbscript installation problem, but registering vbscript helped. However, when I now try to play a song, iTunes stops working completely and crashes!?!. Any idea, you

  • Calling stored procedure from DAC

    Anyone has instructions on calling stored procedures from DAC. If I had a stored procedure called gary.refresh, where would I put that in the DAC. How do I specify the database that my stored procedure is in.. There doesn't seem to be any examples of

  • Capturing data every 2 mins - Streams

    I am using Oracle 11gR2 on RHEL We are planning to configure streams from 11gR2 OLTP environment to the 11gR2 DW. This would be schema level replication. Once the streams destination schema is populated with the data, we need to schedule the ETL proc

  • Changing Default SMS functions

    I'm talking about getting 2 short vibrations whenever a text is received.   This is an issue I'm having, and I'm seriously fed up with dealing with. I DON'T want to deal with this annoying, and nerve wrecking double vibe. I want to change the DEFAULT

  • Outlook 2010 Client Makes RPC connection to WRONG CAS

    I have Outlook 2010 clients in Shanghai. Their mailbox server and CAS server is in Hong Kong.   I also have my main Mailbox servers and CAS server in Seattle. When the Outlook clients resolve the names in setting up the Outlook profile, they go to dw