Program Runing slow

Hi,
Our user ran one report four days back and it took very long time. I want to know the reason for it.
i canot run it again as it shud be run monthly once.
can any body help me?
Regards,
Sameer

Sameer it is a possibilty that when he ran the program last time,there might be heavy load on the system
Make sure that he runs the program when the workload is less on the system
Also have you restarted your SAP recently,if yes then this can be the cause of slow performance as buffers would have got cleaned and thus it takes times to reload the buffers and thus the performance of system is impacted
Rohit

Similar Messages

  • Querry runing slow.

    below qurrery is runing slow. it's taking 16 mins. Can any one please help me out why it 's taking this much time.
    SELECT t1.ebiz_cntrl_no,
    COUNT (DISTINCT (tl.mast_ebiz_lp_no)) pallet_count,
    trl.pro_no, trl.trailer_type, t1.comp_id
    FROM dirp_trn_ebiztask t1,
    dirp_trn_lp tl,
    dirp_trn_ebiztask t2,
    dirp_trn_trailer trl
    WHERE t1.task_type = 'PICK'
    AND t1.act_qty > 0
    AND t1.act_end_date IS NOT NULL
    AND t1.ebiz_contlp_no = tl.ebiz_lp_no
    AND t2.task_type = 'SHIP'
    AND t2.ebiz_lp_no = tl.mast_ebiz_lp_no
    AND t2.ebiz_trailer_no = trl.ebiz_trailer_no
    AND t1.COMP_ID = tl.COMP_ID
    AND t1.COMP_ID = t2.COMP_ID
    AND t1.COMP_ID = trl.COMP_ID
    GROUP BY t1.ebiz_cntrl_no, pro_no, trailer_type, t1.comp_id
    Rows Row Source Operation
    3 TABLE ACCESS BY INDEX ROWID CCOL$ (cr=8 pr=0 pw=0 time=459 us)
    3 INDEX RANGE SCAN I_CCOL1 (cr=5 pr=0 pw=0 time=473 us)(object id 54)
    SELECT t1.ebiz_cntrl_no,
    COUNT (DISTINCT (tl.mast_ebiz_lp_no)) pallet_count,
    trl.pro_no, trl.trailer_type, t1.comp_id
    FROM dirp_trn_ebiztask t1,
    dirp_trn_lp tl,
    dirp_trn_ebiztask t2,
    dirp_trn_trailer trl
    WHERE t1.task_type = 'PICK'
    AND t1.act_qty > 0
    AND t1.act_end_date IS NOT NULL
    AND t1.ebiz_contlp_no = tl.ebiz_lp_no
    AND t2.task_type = 'SHIP'
    AND t2.ebiz_lp_no = tl.mast_ebiz_lp_no
    AND t2.ebiz_trailer_no = trl.ebiz_trailer_no
    AND t1.COMP_ID = tl.COMP_ID
    AND t1.COMP_ID = t2.COMP_ID
    AND t1.COMP_ID = trl.COMP_ID
    GROUP BY t1.ebiz_cntrl_no, pro_no, trailer_type, t1.comp_id
    call count cpu elapsed disk query current rows
    Parse 3 0.12 0.17 0 0 0 0
    Execute 3 0.00 0.00 0 0 0 0
    Fetch 22964 275.41 2520.61 833760 1108408 9 344389
    total 22970 275.53 2520.79 833760 1108408 9 344389
    Misses in library cache during parse: 1
    Optimizer mode: CHOOSE
    Parsing user id: 67 (GSMOLAP)
    Rows Row Source Operation
    114793 SORT GROUP BY (cr=409403 pr=280247 pw=16436 time=662980659 us)
    1780310 HASH JOIN (cr=409403 pr=277866 pw=14055 time=638715201 us)
    1780433 HASH JOIN (cr=408274 pr=270127 pw=7440 time=614559870 us)
    496477 TABLE ACCESS BY INDEX ROWID DIRP_TRN_EBIZTASK (cr=160500 pr=59306 pw=0 time=384814524 us)
    496477 INDEX RANGE SCAN NI_TRN_EBIZTASK_INDX4 (cr=3393 pr=3206 pw=0 time=44214117 us)(object id 149238)
    1786441 HASH JOIN (cr=247774 pr=210821 pw=7440 time=234883291 us)
    1789215 TABLE ACCESS FULL DIRP_TRN_EBIZTASK (cr=207388 pr=163028 pw=0 time=209363676 us)
    1458129 TABLE ACCESS FULL DIRP_TRN_LP (cr=40386 pr=40353 pw=0 time=20426305 us)
    59742 TABLE ACCESS FULL DIRP_TRN_TRAILER (cr=1129 pr=1124 pw=0 time=1563491 us)
    Rows Execution Plan
    0 SELECT STATEMENT MODE: CHOOSE
    114793 SORT (GROUP BY)
    1780310 HASH JOIN
    1780433 HASH JOIN
    496477 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID) OF
    'DIRP_TRN_EBIZTASK' (TABLE)
    496477 INDEX MODE: ANALYZED (RANGE SCAN) OF
    'NI_TRN_EBIZTASK_INDX4' (INDEX)
    1786441 HASH JOIN
    1789215 TABLE ACCESS MODE: ANALYZED (FULL) OF
    'DIRP_TRN_EBIZTASK' (TABLE)
    1458129 TABLE ACCESS MODE: ANALYZED (FULL) OF 'DIRP_TRN_LP'
    (TABLE)
    59742 TABLE ACCESS MODE: ANALYZED (FULL) OF 'DIRP_TRN_TRAILER'
    (TABLE)
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    SQL*Net message to client 7655 0.00 0.01
    db file sequential read 57297 0.37 549.32
    latch free 2 0.00 0.00
    direct path write temp 1506 0.63 18.86
    direct path read temp 1506 0.11 9.90
    db file scattered read 13784 0.24 251.02
    SQL*Net message from client 7654 1.09 10.09
    ALTER SESSION SET EVENTS '10046 trace name context forever, level 8'
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.02 0 0 0 0
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.00 0.02 0 0 0 0
    Misses in library cache during parse: 0
    Parsing user id: 67 (GSMOLAP)
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    SQL*Net message to client 1 0.00 0.00
    SQL*Net message from client 1 21.89 21.89
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call count cpu elapsed disk query current rows
    Parse 4 0.12 0.17 0 0 0 0
    Execute 4 0.00 0.02 0 0 0 0
    Fetch 22964 275.41 2520.61 833760 1108408 9 344389
    total 22972 275.53 2520.81 833760 1108408 9 344389
    Misses in library cache during parse: 1
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    SQL*Net message to client 7656 0.00 0.01
    SQL*Net message from client 7655 21.89 31.98
    db file sequential read 57297 0.37 549.32
    latch free 2 0.00 0.00
    direct path write temp 1506 0.63 18.86
    direct path read temp 1506 0.11 9.90
    db file scattered read 13784 0.24 251.02
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call count cpu elapsed disk query current rows
    Parse 10 0.03 0.02 0 0 0 0
    Execute 129 0.09 0.17 0 0 0 0
    Fetch 278 0.02 0.26 28 446 0 1102
    total 417 0.14 0.46 28 446 0 1102
    Misses in library cache during parse: 10
    Misses in library cache during execute: 10
    4 user SQL statements in session.
    129 internal SQL statements in session.
    133 SQL statements in session.
    1 statement EXPLAINed in this session.
    Trace file: biprod_ora_23463.trc
    Trace file compatibility: 10.01.00
    Sort options: default
    1 session in tracefile.
    4 user SQL statements in trace file.
    129 internal SQL statements in trace file.
    133 SQL statements in trace file.
    12 unique SQL statements in trace file.
    1 SQL statements EXPLAINed using schema:
    GSMOLAP.prof$plan_table
    Default table was used.
    Table was created.
    Table was dropped.
    113796 lines in trace file.
    3724 elapsed seconds in trace file.

    Reposting portions of your post with the { code } tags:
    SELECT
          t1.ebiz_cntrl_no,
          COUNT (DISTINCT (tl.mast_ebiz_lp_no)) pallet_count,
          trl.pro_no,
          trl.trailer_type,
          t1.comp_id
    FROM dirp_trn_ebiztask t1,
          dirp_trn_lp tl,
          dirp_trn_ebiztask t2,
          dirp_trn_trailer trl
    WHERE t1.task_type = 'PICK'
          AND t1.act_qty > 0
          AND t1.act_end_date IS NOT NULL
          AND t1.ebiz_contlp_no = tl.ebiz_lp_no
          AND t2.task_type = 'SHIP'
          AND t2.ebiz_lp_no = tl.mast_ebiz_lp_no
          AND t2.ebiz_trailer_no = trl.ebiz_trailer_no
          AND t1.COMP_ID = tl.COMP_ID
          AND t1.COMP_ID = t2.COMP_ID
          AND t1.COMP_ID = trl.COMP_ID
    GROUP BY t1.ebiz_cntrl_no, pro_no, trailer_type, t1.comp_id
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        3      0.12       0.17          0          0          0           0
    Execute      3      0.00       0.00          0          0          0           0
    Fetch    22964    275.41    2520.61     833760    1108408          9      344389 
    total    22970    275.53    2520.79     833760    1108408          9      344389
    Misses in library cache during parse: 1
    Optimizer mode: CHOOSE
    Parsing user id: 67  (GSMOLAP)
    Rows     Row Source Operation
    114793  SORT GROUP BY (cr=409403 pr=280247 pw=16436 time=662980659 us)
    1780310   HASH JOIN  (cr=409403 pr=277866 pw=14055 time=638715201 us)
    1780433    HASH JOIN  (cr=408274 pr=270127 pw=7440 time=614559870 us)
    496477     TABLE ACCESS BY INDEX ROWID DIRP_TRN_EBIZTASK (cr=160500 pr=59306 pw=0 time=384814524 us)
    496477      INDEX RANGE SCAN NI_TRN_EBIZTASK_INDX4 (cr=3393 pr=3206 pw=0 time=44214117 us)(object id 149238)
    1786441     HASH JOIN  (cr=247774 pr=210821 pw=7440 time=234883291 us)
    1789215      TABLE ACCESS FULL DIRP_TRN_EBIZTASK (cr=207388 pr=163028 pw=0 time=209363676 us)
    1458129      TABLE ACCESS FULL DIRP_TRN_LP (cr=40386 pr=40353 pw=0 time=20426305 us)
      59742    TABLE ACCESS FULL DIRP_TRN_TRAILER (cr=1129 pr=1124 pw=0 time=1563491 us)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
                                                 Waited
      SQL*Net message to client                    7655        0.00          0.01
      db file sequential read                     57297        0.37        549.32
      latch free                                      2        0.00          0.00 
      direct path write temp                       1506        0.63         18.86
      direct path read temp                        1506        0.11          9.90
      db file scattered read                      13784        0.24        251.02
      SQL*Net message from client                  7654        1.09         10.09  = 0.00118 perI am not sure how much help I am able to offer after looking at the problem for about two hours. First, a couple observations:
    * The trace file contained 4 SQL statements which you executed and 129 SQL statements that you did not execute. It might be interesting to manually look at the trace file for SQL statements with dep=1 or greater. It looks like these SQL statements might be taking a bit of time.
    * The NI_TRN_EBIZTASK_INDX4 index is returning 27.7% of the rows from DIRP_TRN_EBIZTASK, which I suspect means that it is an index on the task_type column - this might not be a very selective index.
    * The client is fetching about 15 rows at a time of the 114,793 rows retrieved per execution, but this is apparently accounting for only about 10 seconds of time.
    * In one of the three executions, 204,505 blocks were read from disk for the full table scan portions of the execution plan, with an average of 14.8 blocks read per read call, and averaging 18.2 milliseconds per multiblock read - this might be a little high for an average time.
    * In one of the three executions, 3,206 blocks were read from disk for the index portion of the execution plan, with an average of 9.6 milliseconds per read - this is probably a reasonable average time.
    * Very few rows are eliminated during the hash joins, meaning that an average of about 1,780,000 rows are being repeatedly passed from hash join to hash join per execution.
    * Just looking at the table that was aliased twice, it appears that the optimizer would be able to work out the following:
    dirp_trn_ebiztask t1
      t1.ebiz_contlp_no = tl.ebiz_lp_no
      t1.COMP_ID = tl.COMP_ID
      t1.COMP_ID = trl.COMP_ID
      t1.COMP_ID = t2.COMP_ID
    dirp_trn_ebiztask t2
      t2.ebiz_lp_no = tl.mast_ebiz_lp_no
      t2.ebiz_trailer_no = trl.ebiz_trailer_no
      t2.COMP_ID = trl.COMP_ID
      t2.COMP_ID = tl.COMP_IDFrom the above, it appears that you are trying to set up the following join order:
    t1 -> tl -> t2 -> trlIf I am reading the plan correctly, the optimizer worked out the following join order:
    t1 -> (t2 -> tl) -> trl* Considering the number of rows returned by each operation, including the final hash join, it probably would not help much to force the original join order.
    * The hash joins are spilling to the temp tablespace, but considering the number of rows involved, there probably is not much which can be done to avoid this usage of the temp tablespace.
    * Per execution, the sort group by operation took 1,780,310 rows as input and output 114,793 rows.
    Questions:
    What is the value of DB_FILE_MULTIBLOCK_READ_COUNT?
    What is the extent size of the tables?
    What is the hardware configuration?
    What version of Oracle is this (Trace file compatibility: 10.01.00 found in TKPROF output)?
    You might check to see if there is another SQL statement which will return the 114,793 rows per execution. Unless your server had an extremely large buffer cache with the tables and indexes forced to the KEEP pool, it will continue to be the primary problem where the reading of the tables and indexes are causing the majority of the performance problem. But even with the table and index blocks completely cached in the buffer cache, the 409,403 consistent reads per execution will likely continue to burn at least 92 seconds (note that this number may not be correct due to the recursive calls) of CPU time per execution.
    Charles Hooper
    IT Manager/Oracle DBA
    K&M Machine-Fabricating, Inc.

  • My Mac laptop was running fine till I downloaded the latest itunes version this week, now all the programs are slow, ITUNEs cuts in and out.  Anyone know what I did wrong?

    My Mac laptop was running fine till I downloaded the latest itunes version this week, now all the programs are slow, ITUNEs cuts in and out.  Anyone know what I did wrong?

    Hello Mark Malecki,
    Thanks for the question, and welcome to Apple Support Communities.
    I understand you are having some issues with iTunes on your MacBook. You may want to isolate the issues further by testing to see if they persist in a new user account:
    Isolating an issue by using another user account
    http://support.apple.com/kb/TS4053
    You can also try starting iTunes in safe mode:
    iTunes: Troubleshooting issues with third-party iTunes plug-ins
    http://support.apple.com/kb/TS3430
    Thanks,
    Matt M.

  • Why is my mail program so slow with Yosemite

    I am running 10.10.1 on my G5 (2010). Mail program is not running as before I upgraded. Everything in my mail is slow: typing, incoming, outgoing... Any ideas?

    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    Step 1
    For this step, the title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    In the top right corner of the Console window, there's a search box labeled Filter. Initially the words "String Matching" are shown in that box. Enter "BOOT_TIME" (without the quotes.)
    Each message in the log begins with the date and time when it was entered. Select the BOOT_TIME log message that corresponds to the last failed boot. Now clear the search box to reveal all messages. Select the ones logged before the boot, during the time something abnormal was happening. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    For example, if the system was unresponsive or was failing to shut down for three minutes before you forced a restart, post the messages timestamped within three minutes before the boot time, not after. Please include the BOOT_TIME message at the end of the log extract—not at the beginning.
    If there are long runs of repeated messages, please post only one example of each. Don’t post many repetitions of the same message.
    When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Some private information, such as your name, may appear in the log. Anonymize before posting.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Step 2
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A crash report has a name that begins with the name of the crashed process and ends in ".crash". A panic report has a name that begins with "Kernel" and ends in ".panic". A shutdown stall report has a name that ends in ".shutdownstall". Select the most recent of each, if any. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot. It's possible that none of these reports exists.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.
    If you don't see any reports listed, but you know there was a crash or panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report—they're very long and rarely helpful.

  • MythTV Program Guide Slow/No Composite Effects On Dual Monitor

    Hello all,
    I am not entirely sure where this would belong, so I put it here.
    I am running Arch64 with an NVidia 8600GTS and dual monitors as seperate X screens. The second monitor is actually a TV not a monitor, and is using the S-Video output on the video card, but I'm not sure that that's relevant at all.
    On my primary monitor the program guide in MythTV runs fairly decent, however on the TV it runs unbearably slow. Pushing up on the remote a time or two will take a minute or so to happen. I have it set to the least demanding level possible.
    I originally thought that this was just a MythTV issue but I noticed that XCompmgr and Compiz-Fusion effects do not work at all on the TV either, so I think these issues are related.
    Also, I do not currently have a composite window manager installed, I am using Gnome with Metacity.
    Here is a copy of my xorg.conf:
    # nvidia-settings: X configuration file generated by nvidia-settings
    # nvidia-settings: version 1.0 (buildmeister@builder62) Tue Jan 6 09:44:34 PST 2009
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 1.0 (buildmeister@builder62) Tue Jan 6 09:43:54 PST 2009
    # Auto-generated by Archie mkxcfg
    # Auto-generated by Archie mkxcfg
    Section "ServerLayout"
    # Serial Mouse not detected
    # USB Mouse not detected
    Identifier "Xorg Configured"
    Screen 0 "Screen0" 0 0
    Screen 1 "Screen1" RightOf "Screen0"
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "PS/2 Mouse" "CorePointer"
    EndSection
    Section "Files"
    # Additional fonts: Locale, Gimp, TTF...
    # FontPath "/usr/share/lib/X11/fonts/latin2/75dpi"
    # FontPath "/usr/share/lib/X11/fonts/latin2/100dpi"
    # True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc:unscaled"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/100dpi"
    FontPath "/usr/share/fonts/PEX"
    FontPath "/usr/share/fonts/cyrillic"
    FontPath "/usr/share/fonts/Type1"
    FontPath "/usr/share/fonts/ttf/western"
    FontPath "/usr/share/fonts/ttf/decoratives"
    FontPath "/usr/share/fonts/truetype"
    FontPath "/usr/share/fonts/truetype/openoffice"
    FontPath "/usr/share/fonts/truetype/ttf-bitstream-vera"
    FontPath "/usr/share/fonts/latex-ttf-fonts"
    FontPath "/usr/share/fonts/defoma/CID"
    FontPath "/usr/share/fonts/defoma/TrueType"
    EndSection
    Section "Module"
    Load "ddc" # ddc probing of monitor
    Load "dbe"
    Load "extmod"
    Load "glx"
    Load "bitmap" # bitmap-fonts
    Load "type1"
    Load "freetype"
    Load "record"
    # Load "synaptics"
    EndSection
    Section "ServerFlags"
    Option "AllowMouseOpenFail" "true"
    Option "AutoAddDevices" "False"
    Option "Xinerama" "0"
    EndSection
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "keyboard"
    Option "CoreKeyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "us"
    Option "XkbVariant" ""
    EndSection
    Section "InputDevice"
    Identifier "Serial Mouse"
    Driver "mouse"
    Option "Protocol" "Microsoft"
    Option "Device" "/dev/ttyS0"
    Option "Emulate3Buttons" "true"
    Option "Emulate3Timeout" "70"
    Option "SendCoreEvents" "true"
    EndSection
    Section "InputDevice"
    Identifier "PS/2 Mouse"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "ZAxisMapping" "4 5"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "true"
    Option "Emulate3Timeout" "70"
    Option "SendCoreEvents" "true"
    EndSection
    Section "InputDevice"
    Identifier "USB Mouse"
    Driver "mouse"
    Option "Device" "/dev/input/mice"
    Option "SendCoreEvents" "true"
    Option "Protocol" "IMPS/2"
    Option "ZAxisMapping" "4 5"
    Option "Buttons" "5"
    EndSection
    Section "Monitor"
    # Warning: This may fry old Monitors
    # Very conservative. May flicker.
    # VertRefresh 50.0 - 62.0 # Extreme conservative. Will flicker. TFT default.
    # Default modes distilled from
    # "VESA and Industry Standards and Guide for Computer Display Monitor
    # Timing", version 1.0, revision 0.8, adopted September 17, 1998.
    # $XFree86: xc/programs/Xserver/hw/xfree86/etc/vesamodes,v 1.4 1999/11/18 16:52:17 tsi Exp $
    # 640x350 @ 85Hz (VESA) hsync: 37.9kHz
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Samsung SyncMaster"
    HorizSync 30.0 - 81.0
    VertRefresh 56.0 - 75.0
    ModeLine "640x350" 31.5 640 672 736 832 350 382 385 445 +hsync -vsync
    ModeLine "640x400" 31.5 640 672 736 832 400 401 404 445 -hsync +vsync
    ModeLine "720x400" 35.5 720 756 828 936 400 401 404 446 -hsync +vsync
    ModeLine "640x480" 25.2 640 656 752 800 480 490 492 525 -hsync -vsync
    ModeLine "640x480" 31.5 640 664 704 832 480 489 491 520 -hsync -vsync
    ModeLine "640x480" 31.5 640 656 720 840 480 481 484 500 -hsync -vsync
    ModeLine "640x480" 36.0 640 696 752 832 480 481 484 509 -hsync -vsync
    ModeLine "800x600" 36.0 800 824 896 1024 600 601 603 625 +hsync +vsync
    ModeLine "800x600" 40.0 800 840 968 1056 600 601 605 628 +hsync +vsync
    ModeLine "800x600" 50.0 800 856 976 1040 600 637 643 666 +hsync +vsync
    ModeLine "800x600" 49.5 800 816 896 1056 600 601 604 625 +hsync +vsync
    ModeLine "800x600" 56.3 800 832 896 1048 600 601 604 631 +hsync +vsync
    ModeLine "1024x768" 44.9 1024 1032 1208 1264 768 768 776 817 +hsync +vsync interlace
    ModeLine "1024x768" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
    ModeLine "1024x768" 75.0 1024 1048 1184 1328 768 771 777 806 -hsync -vsync
    ModeLine "1024x768" 78.8 1024 1040 1136 1312 768 769 772 800 +hsync +vsync
    ModeLine "1024x768" 94.5 1024 1072 1168 1376 768 769 772 808 +hsync +vsync
    ModeLine "1152x864" 108.0 1152 1216 1344 1600 864 865 868 900 +hsync +vsync
    ModeLine "1280x960" 108.0 1280 1376 1488 1800 960 961 964 1000 +hsync +vsync
    ModeLine "1280x960" 148.5 1280 1344 1504 1728 960 961 964 1011 +hsync +vsync
    ModeLine "1280x1024" 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
    ModeLine "1280x1024" 135.0 1280 1296 1440 1688 1024 1025 1028 1066 +hsync +vsync
    ModeLine "1280x1024" 157.5 1280 1344 1504 1728 1024 1025 1028 1072 +hsync +vsync
    ModeLine "1600x1200" 162.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine "1600x1200" 175.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine "1600x1200" 189.0 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine "1600x1200" 202.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine "1600x1200" 229.5 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync
    ModeLine "1792x1344" 204.8 1792 1920 2120 2448 1344 1345 1348 1394 -hsync +vsync
    ModeLine "1792x1344" 261.0 1792 1888 2104 2456 1344 1345 1348 1417 -hsync +vsync
    ModeLine "1856x1392" 218.3 1856 1952 2176 2528 1392 1393 1396 1439 -hsync +vsync
    ModeLine "1856x1392" 288.0 1856 1984 2208 2560 1392 1393 1396 1500 -hsync +vsync
    ModeLine "1920x1440" 234.0 1920 2048 2256 2600 1440 1441 1444 1500 -hsync +vsync
    ModeLine "1920x1440" 297.0 1920 2064 2288 2640 1440 1441 1444 1500 -hsync +vsync
    ModeLine "1800x1440" 230 1800 1896 2088 2392 1440 1441 1444 1490 +hsync +vsync
    ModeLine "1800x1440" 250 1800 1896 2088 2392 1440 1441 1444 1490 +hsync +vsync
    ModeLine "640x480" 43.16 640 680 744 848 480 481 484 509 -hsync +vsync
    ModeLine "768x576" 34.96 768 792 872 976 576 577 580 597 -hsync +vsync
    ModeLine "768x576" 42.93 768 800 880 992 576 577 580 601 -hsync +vsync
    ModeLine "768x576" 45.51 768 808 888 1008 576 577 580 602 -hsync +vsync
    ModeLine "768x576" 51.84 768 808 888 1008 576 577 580 605 -hsync +vsync
    ModeLine "768x576" 62.57 768 816 896 1024 576 577 580 611 -hsync +vsync
    ModeLine "800x600" 68.18 800 848 936 1072 600 601 604 636 -hsync +vsync
    ModeLine "1024x768" 113.31 1024 1096 1208 1392 768 769 772 814 -hsync +vsync
    ModeLine "1152x864" 81.62 1152 1216 1336 1520 864 865 868 895 -hsync +vsync
    ModeLine "1152x864" 119.65 1152 1224 1352 1552 864 865 868 907 -hsync +vsync
    ModeLine "1152x864" 143.47 1152 1232 1360 1568 864 865 868 915 -hsync +vsync
    ModeLine "1280x960" 124.54 1280 1368 1504 1728 960 961 964 1001 -hsync +vsync
    ModeLine "1280x960" 129.86 1280 1368 1504 1728 960 961 964 1002 -hsync +vsync
    ModeLine "1280x960" 178.99 1280 1376 1520 1760 960 961 964 1017 -hsync +vsync
    ModeLine "1280x1024" 190.96 1280 1376 1520 1760 1024 1025 1028 1085 -hsync +vsync
    ModeLine "1400x1050" 122.61 1400 1488 1640 1880 1050 1051 1054 1087 -hsync +vsync
    ModeLine "1400x1050" 149.34 1400 1496 1648 1896 1050 1051 1054 1094 -hsync +vsync
    ModeLine "1400x1050" 155.85 1400 1496 1648 1896 1050 1051 1054 1096 -hsync +vsync
    ModeLine "1400x1050" 179.26 1400 1504 1656 1912 1050 1051 1054 1103 -hsync +vsync
    ModeLine "1400x1050" 214.39 1400 1512 1664 1928 1050 1051 1054 1112 -hsync +vsync
    ModeLine "1600x1200" 280.64 1600 1728 1904 2208 1200 1201 1204 1271 -hsync +vsync
    Option "DPMS" "true"
    # HorizSync 28.0 - 78.0 # Warning: This may fry very old Monitors
    EndSection
    Section "Monitor"
    Identifier "Monitor1"
    VendorName "Unknown"
    ModelName "TV-0"
    HorizSync 28.0 - 55.0
    VertRefresh 43.0 - 72.0
    EndSection
    Section "Device"
    Identifier "Card0"
    Driver "nvidia"
    VendorName "All"
    BoardName "All"
    EndSection
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 8600 GTS"
    BusID "PCI:1:0:0"
    Screen 0
    EndSection
    Section "Device"
    Identifier "Device1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 8600 GTS"
    BusID "PCI:1:0:0"
    Screen 1
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 16
    Option "TwinView" "0"
    Option "metamodes" "DFP: 1680x1050 +0+0; DFP: 800x600 +0+0; DFP: 640x480 +0+0"
    SubSection "Display"
    Depth 16
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "Screen1"
    Device "Device1"
    Monitor "Monitor1"
    DefaultDepth 16
    Option "TVStandard" "NTSC-M"
    Option "TVOutFormat" "SVIDEO"
    Option "TwinView" "0"
    Option "metamodes" "TV: nvidia-auto-select +0+0"
    SubSection "Display"
    Depth 16
    EndSubSection
    EndSection
    It's a bit of a mess at the moment. Last time I reinstalled I was having trouble with the keyboard and mouse not working in Gnome, so I've been hesitant to mess with it too much.
    On my previous install my xorg.conf looked like this:
    # nvidia-settings: X configuration file generated by nvidia-settings
    # nvidia-settings: version 1.0 (buildmeister@builder58) Wed Oct 1 15:13:37 PDT 2008
    # nvidia-xconfig: X configuration file generated by nvidia-xconfig
    # nvidia-xconfig: version 1.0 (buildmeister@builder58) Thu Jul 17 18:39:00 PDT 2008
    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    Screen 1 "Screen1" RightOf "Screen0"
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    EndSection
    Section "Files"
    # RgbPath "/usr/lib/X11/rgb"
    EndSection
    Section "Module"
    Load "dbe"
    Load "extmod"
    # Load "type1"
    Load "freetype"
    Load "glx"
    EndSection
    Section "ServerFlags"
    Option "Xinerama" "0"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    EndSection
    Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "keyboard"
    EndSection
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Samsung SyncMaster"
    HorizSync 30.0 - 81.0
    VertRefresh 56.0 - 75.0
    Option "DPMS"
    EndSection
    Section "Monitor"
    Identifier "Monitor1"
    VendorName "Unknown"
    ModelName "TV-0"
    HorizSync 28.0 - 33.0
    VertRefresh 43.0 - 72.0
    EndSection
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 8600 GTS"
    BusID "PCI:1:0:0"
    Screen 0
    EndSection
    Section "Device"
    Identifier "Videocard0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 8600 GTS"
    BusID "PCI:1:0:0"
    Screen 0
    EndSection
    Section "Device"
    Identifier "Videocard1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 8600 GTS"
    BusID "PCI:1:0:0"
    Screen 1
    EndSection
    Section "Device"
    Identifier "Device1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce 8600 GTS"
    BusID "PCI:1:0:0"
    Screen 1
    EndSection
    Section "Screen"
    # Removed Option "metamodes" "DFP: nvidia-auto-select +0+0"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    Option "RenderAccel" "True"
    Option "NoRenderExtension" "False"
    Option "AllowGLXWithComposite" "True"
    Option "XvmcUsesTextures" "True"
    Option "LoadKernelModule" "True"
    Option "DamageEvents" "True"
    # Option "LogoPath" "/home/theavataroftime/Pictures"
    Option "NoLogo" "True"
    Option "TwinView" "0"
    Option "metamodes" "DFP: 1680x1050 +0+0"
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection
    Section "Screen"
    Identifier "Screen1"
    Device "Device1"
    Monitor "Monitor1"
    DefaultDepth 24
    Option "RenderAccel" "True"
    Option "NoRenderExtension" "False"
    Option "AllowGLXWithComposite" "True"
    Option "XvmcUsesTextures" "True"
    Option "LoadKernelModule" "True"
    Option "DamageEvents" "True"
    Option "LogoPath" "/home/theavataroftime/Pictures"
    Option "NoLogo" "True"
    Option "TVStandard" "NTSC-M"
    Option "TVOutFormat" "SVIDEO"
    Option "TwinView" "0"
    Option "metamodes" "TV: nvidia-auto-select +0+0"
    SubSection "Display"
    Depth 24
    EndSubSection
    EndSection
    Section "Extensions"
    Option "Composite" "Enable"
    Option "RENDER" "Enable"
    EndSection
    I had the same issues with composite managers and that MythTV guide using this xorg.conf too.
    Has anyone had any similar issues? I am at a total loss here, so any help is greatly appreciated. Thank you.

    No one else has had troubles with the program guide or composite effects on dual monitors?

  • Offline Files (Background) Sync makes File Explorer and other programs responding slow

    Hi TechNet,
    I have a problem with Offline Files and
    especially with VPN users.
    For VPN users, the slow-link
    policy is activated with a background
    sync interval of one hour. But, when Offline Files is syncing, their File Explorer is hanging (not responding) by creating new files/folders, deleting files/folder, or rename files/folders. This happens only in their (redirected)UserData
    folder or with other DFS shares which are cached locally. In other programs (Outlook or Office 2010) when they save data in the UserData folder exactly the same things happens (not responding).
    This problem occurs in both the
    internal network and via VPN, so bandwidth is
    not the problem. When the sync is finished, everything is working fine again.
    I've tested:
    - Offline mode with scheduled background sync: problem occurs
    - Online mode with manual sync: problem occurs
    - Rebuild offline cache database: no effect
    - Tested with fresh Windows 8(.1) installations and user profiles: problem occurs
    - Monitoring SMB traffic with WireShark: no result
    - Montoring Windows 8(.1) clients with procmon: no result
    - Tested with full DFS paths: problem occurs
    - Disable IPv6: problem occurs
    - Disable Windows Search: problem occurs
    - Browsing in the Offline Files folder (Sync Center -> Manage Offline Files -> View Offline Files) is very slow (with +- 200 files). This occurs also when Offline Files is not syncing.
    Does anyone have an idea how I can solve this problem?
    Thanks,
    Bas
    (Sorry for my bad English)

    Hello,
    May I know if there is any update there?
    Please let me know if I can help you more, thanks.
    BR,
    Steven Song
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
      Hello Steven,
      First, sorry for the late response, I have tested a few things for you:
    Offline mode with background sync over a VPN connection: During scheduled sync File Explorer hangs. When bypass the cache by using a UNC path (State: Online) there is also a delay, but this is caused by bandwidth.
    Online Mode with Manual Sync over a LAN connection: During sync File Explorer hangs in (redirected)UserData Folders (They are always available offline, maybe this is a problem?). With UNC paths, there is no delay…
    The first folder/file is created slowly, but the second is fast.
    It's like csc
    still
    must initialize
    the cache…or something…
    I m  I made some
    print screens, but I can not upload them because my account is not verified.......
    trT  Thanks,
     Bas

  • Program Monitor - slow response

    In the effect controls I can scale, rotate etc  by entering values or pulling sliders.
    However I am suffering from a very slow response doing scaling, rotating and translating in the program monitor- while Motion has been highlighted in the effect controls.
    Also I have noticed there is a yellow box with handles in the program monitor. I remember it was white before.
    I like to scale in Program Monitor since it works more interactively.
    I cannot figure out what to change in my preferences.
    Best,
    Hans Wessels
    Premiere CC
    Mac Pro OSX 10.7.5
    16 GB 1066 MHz DD3
    2 X NVIDIA GeForce GT 120 512 MB

    Yes that is correct. The white bounding box is now yellow. I think is looks better.
    I see you have two graphic cards. Disable one of the.
    Might want to get a more powerfull one.

  • Missing Header Row When Exporting Data to Excel and Program Runs Slow

    Hello all,
    I am new to programming. I’ve dabbled with VB.NET at times over the years but this is the first time I’m trying C#. Although, it’s been quite a while since I’ve done any type of programming other than writing SQL queries at work. For the sake of trying to
    learn I have given myself a project that is something I can actually use at work. Right now I'm doing it at home. I’m querying a database on SQL Server 2008 R2; putting the data from the DB into a DataViewGrid and then exporting the data into Excel and saving
    the file on my C:\ drive. On the form I have two buttons; one that queries the DB and the other to do the export. The code below does work but I have two issues that I need assistance with:
    All of the SQL table data goes into Excel properly with the exception of it is missing the header row.
    After I click the Export button it takes a long time to create the Excel file. It takes between 2.5 and 3 minutes. It is not a big file (only 447 rows and 125 KB in size) so I don’t know why it takes so long. Does it have anything to do with the number
    of times Microsoft.Office.Interop.Excel is being referenced? I read somewhere online that is an old COM method although I’m not familiar with what a COM method is
    and why it would make things run so slow.
    When I click the button to run the SQL query and load the DataGridView it runs immediately.
    I plan on taking this project further such as adding date parameters including validation on the dates and then maybe adding buttons that can be used to insert, update and delete records. But I don’t want to go any further until the two issues mentioned
    above are resolved. Any assistance / guidance will be greatly appreciated. Here’s the code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using Exccel = Microsoft.Office.Interop.Excel;
    using System.IO;
    namespace Bills_DB_DataGridView
        public
    partial
    class
    Form1 :
    Form
    SqlCommand sqlCMD;
    SqlDataAdapter sqlDA;
            SqlCommandBuilder sqlCB;
    DataSet sqlDS;
    DataTable sqlDT;
    public Form1()
    InitializeComponent();           
    private
    void btnExit_Click(object sender,
    EventArgs e)
    this.Close();
    private
    void btnLoad_Click(object sender,
    EventArgs e)
    string sqlCon =
    "Data Source = localhost\\DAVE_DB; Initial Catalog=Bills;Integrated security = true;";
    string sqlQry =
    "SELECT * FROM Acct ORDER BY Name, PaymentDate";
    SqlConnection connection =
    new
    SqlConnection(sqlCon);
    connection.Open();
    sqlCMD = new
    SqlCommand(sqlQry, connection);
    sqlDA = new
    SqlDataAdapter(sqlCMD);
           sqlCB = new
    SqlCommandBuilder(sqlDA);
    sqlDS = new
    DataSet();
    sqlDA.Fill(sqlDS, "Acct");
    sqlDT = sqlDS.Tables["Acct"];
    connection.Close();
    dataGridView1.DataSource = sqlDS.Tables["Acct"];
                dataGridView1.SelectionMode =
    DataGridViewSelectionMode.FullRowSelect;
    private
    void btnExport_Click(object sender,
    EventArgs e)
    Microsoft.Office.Interop.Excel.Application xlApp;
    Microsoft.Office.Interop.Excel.Workbook xlWorkBook;
    Microsoft.Office.Interop.Excel.Worksheet xlWorkSheet;
    object misValue = System.Reflection.Missing.Value;
    Int32 i, j;
    xlApp = new Microsoft.Office.Interop.Excel.Application();        
    xlWorkBook = xlApp.Workbooks.Add(misValue);
    xlWorkSheet = (Microsoft.Office.Interop.Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1);          
    for (i = 0; i <= dataGridView1.RowCount - 2; i++)
    for (j = 0; j <= dataGridView1.ColumnCount - 1; j++)
    xlWorkSheet.Cells[i + 1, j + 1] = dataGridView1[j, i].Value.ToString();
    xlWorkSheet.Cells[1, 2].EntireColumn.NumberFormat = "@";
    //Format column 2 to text
    xlWorkSheet.Cells[1, 2].HorizontalAlignment = Microsoft.Office.Interop.Excel.XlHAlign.xlHAlignRight;
    xlWorkBook.SaveAs(@"c:\Bills\Bills.xls", Microsoft.Office.Interop.Excel.XlFileFormat.xlWorkbookNormal,
    misValue, misValue, misValue, misValue, Microsoft.Office.Interop.Excel.XlSaveAsAccessMode.xlExclusive, misValue, misValue, misValue, misValue, misValue);
    xlWorkBook.Close(true, misValue, misValue);
    xlApp.Quit();
    releaseObject(xlWorkSheet);
    releaseObject(xlWorkBook);
    releaseObject(xlApp);
    private
    void releaseObject(object obj)
    try
    System.Runtime.InteropServices.Marshal.ReleaseComObject(obj);
    obj = null;
    catch (Exception ex)
    obj = null;
    MessageBox.Show("Exception Occured while releasing object "
    + ex.ToString());
    finally
    GC.Collect();
    Thank you,
    Dave
    David Young

    Hello again Kristin,
    I tried the code snippet to include the headers in the Excel file but it didn't work for me. Maybe I put the code in the wrong place? Again I have put the code below including where I placed the snippet. I get no error message and the application runs. Am
    I doing something wrong?
    Thank you,
    Dave
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using Exccel = Microsoft.Office.Interop.Excel;
    using System.IO;
    namespace Bills_DB_DataGridView
        public partial class Form1 : Form
            SqlCommand sqlCMD;
            SqlDataAdapter sqlDA;
            SqlCommandBuilder sqlCB;
            DataSet sqlDS;
            DataTable sqlDT;
            public Form1()
                InitializeComponent();            
            private void btnExit_Click(object sender, EventArgs e)
                this.Close();
            private void btnLoad_Click(object sender, EventArgs e)
                string sqlCon = "Data Source = localhost\\DAVE_DB; Initial Catalog=Bills;Integrated security = true;";
                string sqlQry = "SELECT * FROM Acct ORDER BY Name, PaymentDate";
                SqlConnection connection = new SqlConnection(sqlCon);
                connection.Open();
                sqlCMD = new SqlCommand(sqlQry, connection);
                sqlDA = new SqlDataAdapter(sqlCMD);
                sqlCB = new SqlCommandBuilder(sqlDA);
                sqlDS = new DataSet();
                sqlDA.Fill(sqlDS, "Acct");
                sqlDT = sqlDS.Tables["Acct"];
                connection.Close();
                dataGridView1.DataSource = sqlDS.Tables["Acct"];
                dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            private void btnExport_Click(object sender, EventArgs e)
                Microsoft.Office.Interop.Excel.Application xlApp;
                Microsoft.Office.Interop.Excel.Workbook xlWorkBook;
                Microsoft.Office.Interop.Excel.Worksheet xlWorkSheet;
                object misValue = System.Reflection.Missing.Value;
                Int32 i, j;
                xlApp = new Microsoft.Office.Interop.Excel.Application();         
                xlWorkBook = xlApp.Workbooks.Add(misValue);
                // storing header part in Excel
                xlWorkSheet = (Microsoft.Office.Interop.Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1);  
                for (int h = 1; h < dataGridView1.Columns.Count + 1; h++)
                    if (dataGridView1.Columns[h - 1].Visible)
                        xlWorkSheet.Cells[1, h] = dataGridView1.Columns[h - 1].HeaderText;
                xlWorkSheet = (Microsoft.Office.Interop.Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1);           
                for (i = 0; i <= dataGridView1.RowCount - 2; i++)
                    for (j = 0; j <= dataGridView1.ColumnCount - 1; j++)
                        xlWorkSheet.Cells[i + 1, j + 1] = dataGridView1[j, i].Value.ToString();
                        xlWorkSheet.Cells[1, 2].EntireColumn.NumberFormat = "@"; //Format column 2 to text
                        xlWorkSheet.Cells[1, 2].HorizontalAlignment = Microsoft.Office.Interop.Excel.XlHAlign.xlHAlignRight;
                xlWorkBook.SaveAs(@"c:\Bills\Bills.xls", Microsoft.Office.Interop.Excel.XlFileFormat.xlWorkbookNormal, misValue, misValue, misValue, misValue, Microsoft.Office.Interop.Excel.XlSaveAsAccessMode.xlExclusive,
    misValue, misValue, misValue, misValue, misValue);
                xlWorkBook.Close(true, misValue, misValue);
                xlApp.Quit();
                releaseObject(xlWorkSheet);
                releaseObject(xlWorkBook);
                releaseObject(xlApp);
            private void releaseObject(object obj)
                try
                    System.Runtime.InteropServices.Marshal.ReleaseComObject(obj);
                    obj = null;
                catch (Exception ex)
                    obj = null;
                    MessageBox.Show("Exception Occured while releasing object " + ex.ToString());
                finally
                    GC.Collect();
    David Young

  • Sql query runing slow with lower cost

    Hello
    I am working on Oracle 11g and AIX.I have one sql query which is ruing slow as reported by user.
    When i am commenting few line of code it is runing fast.
    I noticed that the execution plan cost of first query is less and second ...as cost of sccond qurey is more.But users are say it is runing fast.
    How it can possiable ?
    Any idea why second query is runing fast after commenting few columns in select and group by clause.
    Query 1
    SELECT PH.CTRL_NBR, PD.SEQ_NBR,PH.CNTRY,PH.SHIP_DATE, PHI.WAVE_NBR, PD.ID, PD.QTY,
    IM.PACK_QTY,
    IM.UNIT_VOL,
    IM.PACK_QTY,
    MAX(CD.PACK_QTY) AS CASE_QTY,
    IM.UNIT_WT
    FROM HDR PH,
    HDR_INTRNL PHI,
    DTL PD,
    HDR CH,
    CASEDTL CD,
    IMASTER IM
    WHERE PH.CTRL_NBR = PHI.CTRL_NBR
    AND PD.CTRL_NBR = PH.CTRL_NBR
    AND PD.QTY > 0
    AND SUBSTR(CD.ID, 1, 9) = SUBSTR(PD.ID, 1, 9)
    AND CD.CASENBR = CH.CASENBR
    AND CH.STAT_CODE BETWEEN '10' AND '90'
    AND IM.ID = PD.ID
    AND PHI.WAVE_NBR='EL57893'
    GROUP BY PH.CTRL_NBR, PD.SEQ_NBR, PH.CNTRY, PH.SHIP_DATE, PHI.WAVE_NBR, PD.ID, PD.QTY,
    IM.PACK_QTY,
    IM.UNITVOL,
    IM.UNITWT,
    IM.PACK_QTY
    Query 2 .
    SELECT PH.CTRL_NBR,
    PD.SEQ_NBR,
    PH.CNTRY,
    PH.SHIP_DATE,
    PHI.WAVE_NBR,
    PD.ID,
    PD.QTY,
    -- IM.PACK_QTY,
    -- IM.UNIT_VOL,
    -- IM.PACK_QTY,
    MAX(CD.PACK_QTY) AS CASE_QTY,
    -- IM.UNIT_WT
    FROM HDR PH,
    HDR_INTRNL PHI,
    DTL PD,
    HDR CH,
    CASEDTL CD,
    IMASTER IM
    WHERE PH.CTRL_NBR = PHI.CTRL_NBR
    AND PD.CTRL_NBR = PH.CTRL_NBR
    AND PD.QTY > 0
    AND SUBSTR(CD.ID, 1, 9) = SUBSTR(PD.ID, 1, 9)
    AND CD.CASENBR = CH.CASENBR
    AND CH.STAT_CODE BETWEEN '10' AND '90'
    AND IM.ID = PD.ID
    AND PHI.WAVE_NBR='EL57893'
    GROUP BY PH.CTRL_NBR, PD.SEQ_NBR, PH.CNTRY, PH.SHIP_DATE, PHI.WAVE_NBR, PD.ID, PD.QTY,
    --IM.PACK_QTY,
    --IM.UNITVOL,
    --IM.UNITWT,
    --IM.PACK_QTY
    Edited by: oradba11 on Sep 6, 2012 2:11 PM
    Edited by: oradba11 on Sep 6, 2012 2:12 PM

    oradba11 wrote:
    Hello
    I am working on Oracle 11g and AIX.I have one sql query which is ruing slow as reported by user.
    When i am commenting few line of code it is runing fast.
    I noticed that the execution plan cost of first query is less and second ...as cost of sccond qurey is more.But users are say it is runing fast.
    How it can possiable ? <snip>
    This doesn't address your question, but let me suggest that for your own sanity you start brining some formatting to your sql. And for the sanity of those on this forum of whom you expect assistance, you preserve that formatting through the use of the code tags (see the FAQ for details).
    I've done the first one for you, as an example of what I mean
    SELECT
         PH.CTRL_NBR
    ,     PD.SEQ_NBR
    ,     PH.CNTRY
    ,     PH.SHIP_DATE
    ,     PHI.WAVE_NBR
    ,     PD.ID
    ,     PD.QTY
    ,     IM.PACK_QTY
    ,     IM.UNIT_VOL
    ,     IM.PACK_QTY
    ,     MAX(CD.PACK_QTY) AS CASE_QTY
    ,     IM.UNIT_WT
    FROM
         HDR PH
    ,     HDR_INTRNL PHI
    ,     DTL PD
    ,     HDR CH
    ,     CASEDTL CD
    ,     IMASTER IM
    WHERE
         PH.CTRL_NBR = PHI.CTRL_NBR
       AND  PD.CTRL_NBR = PH.CTRL_NBR
       AND  PD.QTY > 0
       AND  SUBSTR(CD.ID, 1, 9) = SUBSTR(PD.ID, 1, 9)
       AND  CD.CASENBR = CH.CASENBR
       AND  CH.STAT_CODE BETWEEN '10' AND '90'
       AND  IM.ID = PD.ID
       AND  PHI.WAVE_NBR='EL57893'
    GROUP BY
         PH.CTRL_NBR
    ,     PD.SEQ_NBR
    ,     PH.CNTRY
    ,     PH.SHIP_DATE
    ,      PHI.WAVE_NBR
    ,      PD.ID
    ,      PD.QTY
    ,      IM.PACK_QTY
    ,     IM.UNITVOL
    ,     IM.UNITWT
    ,     IM.PACK_QTY

  • LV7.1 compiled program runs slow with disc. type defs checked

    I am working on a VI (with about a hundred sub-VIs) written by someone else (who is no longer available to answer questions about it).  I've done only a few minor updates, but when I re-compiled it, the resulting EXE ran several times slower than the original.  As an experiment, I unticked the "Disconnect type definitions and remove polymorphic VI instances" checkbox in the compile options, and this resulted in a much faster EXE.  I could post the VIs, but I would bet that most folks here don't have the time to look through it (programming style is very "spaghetti code"-ish).  For what it is worth, the main VI consists of a couple of one-time code blocks and two large While loops (one for number crunching and the other for GPIB instrument control).  Also, the various VIs use a LOT of locals, arrays, text files, property nodes and invoke nodes.
    Any ideas on what to look for?  The program runs fine in the development environment (run on the same PC as the EXE).
    Regards,
    Michael Tracy
    Synergy Microwave

    The only thing that option should do for you is to replace the type defs with equivelent non-typed version and toss all of the polymorphic versions that are not used.
    So if I focus on the replacing type defs part...
    That process may have resulted in the defaults of your controls be lost so if any of your typedef'd controls have a large or bogus default value, then not removing them MAY preserve the default data. If the replaced version have empty default data then they may be able to run more efficiently.
    Yes all of that is wild specualtion!
    So you could check your code for non-empty default data...
    Just trying to help,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Will java programs become slower with generics?

    This is not a question, more lika general discussion. I'd like to know what you think.
    I fear that the average java developer will become accustom to the new features of java and write inefficient code. I have included a sample program that shows new code vs. old code. Altough the new code is esier to read, it's also alot slower.
    For instance the foreach instruction is using an iterator which is created and then iterated. When the loop exits the Iterator is garanage collected. Better performance would be achieved if there was a "Getable" interface of some sort was implemented and that the foreach simply asked the collections class for the next object in line. Perhapps if the ArrayList cached it's Iterator objects, somehow. (I'm not suggesting any of the solutions above. I'm just trying to make a point.)
    Also regarding generics and enumerations it's easy to see how they will slow down the application. It gets even scarier when you consider that important foundation classes are updated with these new features. A small change in some AWT class may have unforeseen repercussions throughout all gui applications.
    Gafter, if you read this, is there any tests made to see if this is true. Is performance affected by the new features? Will old style code be replace by new style code in the foundation classes (awt/swing/.../... etc.).
    ArrayList<String> ss = new ArrayList<String>();
    for (int i = 0; i < 100; i++) ss.add("hello");
    // "new" java ... completes in 6.43 seconds
    long t1 = System.nanoTime();
    for (int i = 0; i < 1000000; i++)
         for (String s : ss)
    System.out.println(System.nanoTime()-t1);
    // "old" java ... completes in 2.58 seconds
    long t2 = System.nanoTime();
    for (int i = 0; i < 1000000; i++)
         for (int j = 0, size = ss.size(); j < size; j++)
              String s = ss.get(j);
    System.out.println(System.nanoTime()-t2);

    Adapting Neal's example for JDK 1.4:
        private static final String[] strArray = new String[0];   
        private static void withToArray() {
            List ss = new ArrayList();
            for (int i = 0; i < 100; i++) ss.add("hello");
            long t1 = System.currentTimeMillis();
            for (int i = 0; i < 1000000; i++)
                String[] ssArray =  (String[]) ss.toArray(strArray);
                for (int j=0;  j < ssArray.length; j++) {
                    String s = ssArray[j];               
            System.out.println(System.currentTimeMillis()-t1);
        private static final String[] strArray100 = new String[100];   
        private static void withToArrayAndCheatingOnLength() {
            List ss = new ArrayList();
            for (int i = 0; i < 100; i++) ss.add("hello");
            long t1 = System.currentTimeMillis();
            for (int i = 0; i < 1000000; i++)
                String[] ssArray =  (String[]) ss.toArray(strArray100);
                for (int j=0;  j < ssArray.length; j++) {
                    String s = ssArray[j];               
            System.out.println(System.currentTimeMillis()-t1);
        private static void withToArrayAndCheatingOnLengthLocalVar() {
            List ss = new ArrayList();
            for (int i = 0; i < 100; i++) ss.add("hello");
            final String[] localStrArray100 = new String[100];           
            long t1 = System.currentTimeMillis();
            for (int i = 0; i < 1000000; i++)
                String[] ssArray =  (String[]) ss.toArray(localStrArray100);
                for (int j=0;  j < ssArray.length; j++) {
                    String s = ssArray[j];               
            System.out.println(System.currentTimeMillis()-t1);
        } Allocating the string[] every time: 5812
    Allocating the correctly sized string[] once, as a private final static: 2953
    Allocating the correctly sized string[] once, as a final local var: 3141
    Interesting that the private final static is 90ms faster than the local variable, fairly consistently.
    What's interesting about that though, is that we're not iterating strArray100, we're iterating over ssArray, so its not clear why it should make a difference. If I modify things a little more:
        private static void withToArrayAndLoopOptimization() {
            List ss = new ArrayList();
            for (int i = 0; i < 100; i++) ss.add("hello");
            long t1 = System.currentTimeMillis();
            for (int i = 0; i < 1000000; i++)
                String[] ssArray =  (String[]) ss.toArray(strArray100);
                final int length = ssArray.length;              
                for (int j=0;  j < length; j++) {
                    String s = ssArray[j];               
            System.out.println(System.currentTimeMillis()-t1);
        private static void withToArrayAndLoopOptimizationLocalVar() {
            List ss = new ArrayList();
            for (int i = 0; i < 100; i++) ss.add("hello");
            final String[] localStrArray100 = new String[100];           
            long t1 = System.currentTimeMillis();
            for (int i = 0; i < 1000000; i++)
                String[] ssArray =  (String[]) ss.toArray(localStrArray100);
                final int length = ssArray.length;  
                for (int j=0;  j < length; j++) {
                    String s = ssArray[j];               
            System.out.println(System.currentTimeMillis()-t1);
        }  With private static final and loop optimization: 2937
    With local variable and loop optimization: 2922
    Now the different has disappeared: in fact, the numbers are exactly the same on many runs. You have to make 'length' final to get the best speed.
    I guess I'm disappointed that in 2004, Java 1.4 javac & Hotspot combined still cannot spot the simplest loop optimization in the book.... always assuming that's actually causing the preformance difference. My gut is telling me its something else causing the difference because all of the inner loops are iterating over ssArray, not strArray100 (wherever that happends to be declared).
    Someone care to run Neal's example on 1.5 and see if they've managed to optimize further under the covers?

  • All other programs are slow when Thunderbird is open!

    When I open Thunderbird, all other programs become very slow, including Mozilla Firefox. My programs work fine when Thunderbird is closed, and slow down as soon as Thunderbird opens. Why is this happening? I'd like to simply leave Thunderbird open all the time, but this slowdown of the system prevents me from doing that.
    The programs (including Thunderbird) all work like they should, they are just slow when Thunderbird is open. Interestingly, Thunderbird itself is not slow at all, even with other programs open.

    So you do not have an issue with Thunderbird itself.
    You may have other programs working in the background or updates occurring.
    Is Thunderbird using IMAP or pop mail accounts?
    Maybe, you have alot of emails in several folders and therefore using alot of memory to run.
    Try some reorganizing.
    '''If Pop mail accoun'''t, set up Archive Options and archive anything over one month old by month and keep folder structure; including the Sent folder.
    * see info: https://support.mozilla.org/en-US/kb/archived-messages
    Then only open the Archive folder if necessary.
    * Create folders and move emails out of the Inbox into those folders.
    * Delete emails you do not want.
    * When Inbox is empty, right click on Inbox folder and select 'compact'.
    Empty Deleted and Junk folders and then right on each folder and select 'compact'.
    '''If IMAP mail account''' you could select to only download the most recent emails instead of all emails.
    * see info : https://support.mozilla.org/en-US/kb/imap-synchronization?esab=a&s=synchronize&r=0&as=s#w_configuring-synchronization-and-disk-space-usage
    If you have a IMAP gmail account, do not subsribe to see the 'All Mail' folder. This is gmails archive of all of emails, so subscribing to this folder only doubles the amount of disc space used.
    see more info under 'All Mail at this link:
    * http://kb.mozillazine.org/Using_Gmail_with_Thunderbird_and_Mozilla_Suite
    By doing the above, you should have smaller folders and so use Thunderbird will use less memory.
    Then you would need to see if this helped. You may need to check to see if you have other background processes going on that are not connected to Thunderbird.

  • Swing program getting slower

    Hi
    I have done a simple program.It shows a JCombobox on a panel.JComboBox contained 3 String (Back,Search,GetaAll).I have addeed a addActionListener(this) to the JComboBox)
    It works fine at first.When I click Back again and again its going alower and slower.After doing 20 times like this.it remains at constant stage.The CPU Usage increases continiously.and remains 100 finally.At that time my program remains in a perticular page.
    My source code is given below.
    import java.awt.Color;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.ComboBoxEditor;
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    public class ActWithComBox extends JFrame implements ActionListener {
         JPanel jpanel ;
         JLabel label = new JLabel("Wellcom to callBack");
         JLabel label1 = new JLabel("Wellcom to Search");
         JButton button = new JButton("Back");
         JButton button1 = new JButton("Back");
         String[] item = {"Options","Back","Search","Get All"};
         JComboBox jcomboBox = new JComboBox(item);
         public ActWithComBox() {
              super();
              jpanel = new JPanel();
              jbInit();
         private void jbInit() {
              jpanel.removeAll();
              setContentPane(jpanel);
         jpanel.setLayout(null);
              jpanel.setBackground(Color.BLUE);
              jcomboBox.setBounds(150,240,100,30);
              jcomboBox.addActionListener(this);
              jpanel.add(jcomboBox);
              //jpanel.setVisible(true);
              //jcomboBox.setVisible(true);
         public void actionPerformed(ActionEvent e) {
              if(e.getSource() == button){
                   jbInit();
                   return ;
              }else if(e.getSource() == button1){
                   jbInit();
                   return;
              jcomboBox = (JComboBox)e.getSource();
              if(jcomboBox.getSelectedItem() == "Back"){
                   callBack();
              }else if(jcomboBox.getSelectedItem() == "Search"){
                   callSearch();
              }else if(jcomboBox.getSelectedItem() == "Get All"){
                   System.out.println("inside Get All");
         private void callSearch() {
              jpanel.removeAll();
              jpanel.setLayout(null);
              jpanel.setBackground(Color.RED);
              label1.setBounds(10,10,200,30);
              label1.setForeground(Color.GREEN);
              button1.setBounds(50,50,100,50);
              button1.addActionListener(this);
              jpanel.add(label1);
              jpanel.add(button1);
              //jpanel.setVisible(true);
         private void callBack() {
              jpanel.removeAll();
              jpanel.setLayout(null);
              jpanel.setBackground(Color.BLACK);
              label.setBounds(10,10,200,30);
              label.setForeground(Color.RED);
              button.setBounds(50,50,100,50);
              button.addActionListener(this);
              jpanel.add(label);
              jpanel.add(button);
              //jpanel.setVisible(true);
         public static void main(String[] b){
              ActWithComBox act = new ActWithComBox();
              act.setSize(300,300);
              act.setVisible(true);
    please reply me soon.
    Excuse for my english.
    Thanks..
    Chagulu

    Use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags when posting source code.
    It looks to me like the actionListener is added to you button every time you click the comboBox. So your actionPerformed code executes 1, then 2, then 3, ....then xxx times.

  • CS4 Program monitor slow to respond

    I'm using Premiere CS4 version 4.0.  I've got about 25 minutes of material in the timeline.  The problem is that when I click the cursor to a different position in the timeline, or press play, or shuttle in the Program monitor, I have to wait about 2 seconds before the picture starts moving.  Then playback is fine.  In the Source monitor, the reaction is immediate.
    Can anyone tell me why this is happening, and what can be done about it?  It's quite annoying to have to wait all the time.
    Thanks in advance!
    kinoaki

    Version 4.1.0 updated successfully.
    Source material:  mainly .avi video files, NTSC, 720 X 480, plus .wav files
    Sequence settings:  Video:
                                  Editing mode: DV NTSC 29.97 fps
                                  Aspect ratio: D1/DV NTSC (0.9091)
                                  Display format:  30 fps Drop-frame Timecode
                                  Audio:
                                  Sample rate:  48000 Hz
                                  Display format:  Audio samples
                                  Video previews:
                                  Preview file format:  NTSC DV
                                  Codec:  DV NTSC
                                  Maximum bit depth and maximum render quality unticked
                                  Playback settings:
                                  Desktop Video Display During Playback ticked
                                  External device:  none
                                  Aspect Ratio Conversion:  Hardware (if supported)
                                  Desktop Audio ticked
                                  Disable video output when in the background ticked
                                  24p conversion method - interlaced frame selected
    Disk setup (not sure what info you're looking for here) etc:  Vista OS - 98.4 GB free of 149 GB
                                                                                    Data - 57.0 GB free of 139 GB
                                                                                    Processor: Intel (R) Core(TM)Duo CPU P8600 @ 2.40 GHz  2.40 GHz
                                                                                    RAM 4.00GB, 32-bit OS
    I have a lot of clips.  I also notice that peak files are being generated all the time in the bottom right corner of the screen.  I didn't have this problem a month ago, or at least it wasn't as slow as it is now, and I haven't added a lot of new material during that time, just a handful of audio files.  Any suggestions greatly appreciated!

  • Video runing slow

    Hi,
    I dont know what is happening with my macbook pro but everytime I try to watch a video on youtube (for exemple) The screen keeps freezing the video and runing very very slow. Can you please help me with that?
    Whay should I do?
    Thx
    Roana

    Make sure your Adobe Flash  is up to date. Open Activity Monitor from the Applications>Utilities folder. Make sure All Processes is selected and not just My Processes. Look at the CPU tab and see if something is using a lot of CPU when watching a video.

Maybe you are looking for

  • How can i remove the gift card credits from my apple account ?

    i´ve already put the credits on my account, but before i try to buy anything apple store keep asking me the awser for the secret questions and i forgot it, so i creat a new account and i want my credits back to use on my new account what should i do

  • Safari not loading .css files / hanging page load

    A bit of an odd one this... I'm having a few issues a couple of websites in that the page takes an age to load - and when (if) it does, the CSS file hasn't loaded, so the page is unstyled. One page is http://www.liverpoolfc.tv - the main page and the

  • Access oracle database from different classes in desktop / standalone app.

    I am a bit confused as to what way to go. I am building a desktop application that needs to access an oracle database. I have done this in the past using code similar to the following:         try {             DriverManager.registerDriver(new oracle

  • How to make files written to the workbench server visible

    Hi All, I am using dotnet proxyclass to access livecycle server . I am using 'WriteResource' method of liveCycle to write files to the Workbench server.The files are successfully written to the server and I am able to see the files through 'ListMembe

  • Exchanging data between different browser windows

    Hi, It´s possible to eschange data between iviews that are in diferrent browser windows, using databag or Portal event functions? I want do save data in Databag or fire a event in Webdynpro application. After it, another application (webdynpro for ja