OneNote getPageContent method takes 10 - 15 seconds to run

Hi,
I originally posted this under "Office 2010 - IT Pro General Discussions" but the moderator suggested I move it here.
I'm writing a OneNote 2010 Add-In using C# and
Microsoft.Office.Interop.OneNote, and a call to getPageContent takes
between 10 and 15 seconds to run, during which OneNote does not respond to user interaction. The page whose content I'm getting is somewhat large -- it has a single table with 2 columns and roughly 1,500 rows, with roughly 10,000 words total from across
the table.
I'm running getPageContent in its own thread, but this doesn't seem to help. OneNote doesn't appear to respond to user input while the method is running, no matter what thread the method is called from within (as far as I can tell).
The notebook is on a remote SharePoint server, but the issue remains even when working offline. 
Below is my code (pared down to isolate the issue), the line in question in bold.
Any ideas how I could speed this up, or if I'm doing something wrong in general (I'm fairly new to C# / add-in development)?
Thanks in advance,
Neil 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
using Extensibility;
using Microsoft.Office.Interop.OneNote;
using Microsoft.Office.Core;
using System.Windows.Forms;
using System.Runtime.InteropServices.ComTypes;
using System.Drawing.Imaging;
using System.IO;
using System.Xml.Linq;
using System.Threading;
namespace NeilOneNote
[GuidAttribute("8C1483FF-EEDD-4658-9D17-6BCE348106BF"),ProgId("NeilOneNote.Class1")]
public class Class1 : IDTExtensibility2, IRibbonExtensibility
ApplicationClass onApp = new ApplicationClass();
public void OnAddInsUpdate(ref Array custom)
public void OnBeginShutdown(ref Array custom)
if (onApp != null)
onApp = null;
public void OnConnection(object Application, ext_ConnectMode ConnectMode, object AddInInst, ref Array custom)
onApp = (ApplicationClass)Application;
public void OnDisconnection(ext_DisconnectMode RemoveMode, ref Array custom)
onApp = null;
GC.Collect();
GC.WaitForPendingFinalizers();
public void OnStartupComplete(ref Array custom)
public string GetCustomUI(string RibbonID)
return Properties.Resources.ribbon;
public void showHello(IRibbonControl control)
ThreadStart childref = new ThreadStart(createLinks);
Thread childThread = new Thread(childref);
childThread.Start();
public void createLinks()
string notebookXml;
onApp.GetHierarchy(null, HierarchyScope.hsPages, out notebookXml);
var destinationDoc = XDocument.Parse(notebookXml);
var destinationNs = destinationDoc.Root.Name.Namespace;
var destinationPageSection = destinationDoc.Descendants(destinationNs + "Section").Where(n => n.Attribute("name").Value == "Lists").FirstOrDefault();
var destinationPageNode = destinationPageSection.Descendants(destinationNs + "Page").Where(n => n.Attribute("name").Value == "Words").FirstOrDefault();
if (destinationPageNode != null)
var destinationPageId = destinationPageNode.Attribute("ID").Value;
string destinationPageContent;
onApp.GetPageContent(destinationPageId, out destinationPageContent, PageInfo.piBasic);
public IStream GetImage(string imageName)
MemoryStream mem = new MemoryStream();
Properties.Resources.HelloWorld.Save(mem, ImageFormat.Png);
return new CCOMStreamWrapper(mem);

Hi JukeBox,
According to the description, the Application.GetPageContent cost much time when the page is large and this operation will lead to the OneNote unresponsive.
Based on my understanding, it is expected since the page is large. And the reaseon that for the OneNote application is unresponsive prevents users operating OneNote make the page content is not the latest.
As a workaournd, we can copy the table into a spreadsheet and attach this file on OneNote to make the page is small.
Hope it is helpful.
Regards & Fei
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.

Similar Messages

  • GetPageContent method takes 10 - 15 seconds to run

    Hi,
    I'm writing a OneNote 2010 Add-In using C#, and a call to getPageContent takes between 10 and 15 seconds to run, during which OneNote does not respond to user interaction. The page whose content I'm getting is somewhat large -- it has
    a single table with 2 columns and roughly 1,500 rows, with roughly 10,000 words total from across the table.
    I'm running getPageContent in its own thread, but this doesn't seem to help. OneNote doesn't appear to respond to user input while the method is running, no matter what thread the method is called from within (as far as I can tell).
    The notebook is on a remote SharePoint server, but the issue remains even when working offline. 
    Below is my code (pared down to isolate the issue), the line in question in bold.
    Any ideas how I could speed this up, or if I'm doing something wrong in general (I'm fairly new to C# / add-in development)?
    Thanks in advance,
    Neil 
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Runtime.InteropServices;
    using Extensibility;
    using Microsoft.Office.Interop.OneNote;
    using Microsoft.Office.Core;
    using System.Windows.Forms;
    using System.Runtime.InteropServices.ComTypes;
    using System.Drawing.Imaging;
    using System.IO;
    using System.Xml.Linq;
    using System.Threading;
    namespace NeilOneNote
    [GuidAttribute("8C1483FF-EEDD-4658-9D17-6BCE348106BF"),ProgId("NeilOneNote.Class1")]
    public class Class1 : IDTExtensibility2, IRibbonExtensibility
    ApplicationClass onApp = new ApplicationClass();
    public void OnAddInsUpdate(ref Array custom)
    public void OnBeginShutdown(ref Array custom)
    if (onApp != null)
    onApp = null;
    public void OnConnection(object Application, ext_ConnectMode ConnectMode, object AddInInst, ref Array custom)
    onApp = (ApplicationClass)Application;
    public void OnDisconnection(ext_DisconnectMode RemoveMode, ref Array custom)
    onApp = null;
    GC.Collect();
    GC.WaitForPendingFinalizers();
    public void OnStartupComplete(ref Array custom)
    public string GetCustomUI(string RibbonID)
    return Properties.Resources.ribbon;
    public void showHello(IRibbonControl control)
    ThreadStart childref = new ThreadStart(createLinks);
    Thread childThread = new Thread(childref);
    childThread.Start();
    public void createLinks()
    string notebookXml;
    onApp.GetHierarchy(null, HierarchyScope.hsPages, out notebookXml);
    var destinationDoc = XDocument.Parse(notebookXml);
    var destinationNs = destinationDoc.Root.Name.Namespace;
    var destinationPageSection = destinationDoc.Descendants(destinationNs + "Section").Where(n => n.Attribute("name").Value == "Lists").FirstOrDefault();
    var destinationPageNode = destinationPageSection.Descendants(destinationNs + "Page").Where(n => n.Attribute("name").Value == "Words").FirstOrDefault();
    if (destinationPageNode != null)
    var destinationPageId = destinationPageNode.Attribute("ID").Value;
    string destinationPageContent;
    onApp.GetPageContent(destinationPageId, out destinationPageContent, PageInfo.piBasic);
    public IStream GetImage(string imageName)
    MemoryStream mem = new MemoryStream();
    Properties.Resources.HelloWorld.Save(mem, ImageFormat.Png);
    return new CCOMStreamWrapper(mem);

    Hi,
    Since we are not the best resource for coding, if you need assistance regarding C#, I'd recommend you post your question in the following forum:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Multiple crashes fixed by turning off hardware and Flash acceleration; very slow now. Takes five seconds to exit and still listed as a running process

    A workaround was suggested by a member of the community to turn off both hardware and Flash acceleration. It worked fine (no crashes since), but runs very slowly. In particular, takes five seconds to exit and is often still listed as a running process. Very slow in connecting to Web pages, and very slow loading them because of the graphics. Very slow in loading video. I expected slower responses, but this is REALLY slow. I'm running 64-bit Windows 7 and an Nvidia GE Force 7800 graphics card with all the drivers updated and the plugins for Firefox mostly set on "ask to activate". Should I expect this much reduction in performance when the workaround I mentioned was put into place? If so, it's half a loaf at best. The only thing questionable is that I have two Youtube downloaders that I am trying, but I made the assumption that these were only applied when you downloaded something from Youtube.

    In case you are using "Clear history when Firefox closes": do not clear the Cookies
    If you clear cookies then Firefox will also try to remove cookies created by plugins and that requires to start plugin-container processes that can slow down closing Firefox.
    Instead let the cookies expire when Firefox is closed to make them session cookies.
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: Keep until: "I close Firefox"

  • IMac - freezes or pauses intermittantly - usually for 2 or 3 seconds no matter what program is running - sometimes just touching a menu to get a drop down will take several seconds

    my iMac freezes or pauses intermittantly - usually for 2 or 3 seconds - no matter what program is running - sometimes just touching a menu to get a drop down will take several seconds - if playing music on iTunes or Spotify the music will pause for several seconds - it is not internet related because it happens when working off line - its become a major annoyance in using the compuetr - really slows it down - any suggestions?

    Run the Extented Apple Hardware Test from the original system disc that came with your iMac, as per > Intel-based Macs: Using Apple Hardware Test

  • My keyboard run slow. sometimes it takes 5 seconds for the keyboard entry to appear on the screen

    When using Mozilla Firefox I can type letters but after I type it takes 5 seconds or more for the letter to appear on the screen.

    When using Mozilla Firefox I can type letters but after I type it takes 5 seconds or more for the letter to appear on the screen.

  • Calling a method after 10 seconds

    Hello,
    I need to call a method after 10 seconds. That is to make sure that if one particular field is updated, say 3 times in a window of 10 seconds, I should just be able to take the last value and process it, in my ajax app. I am so far using the Timer class, but the problem is, it ticks off a thread for every single request to be processed after 10 seconds and processes all the 3 requests, where as I should just be running that method once for the last request. Could you please help me with this ?
    Cant do this at the client level, for the page may be closed within those 10 seconds of the event and the setTimeout wont work then.
    This is what I made so far.:
    final Map<String, Object> mp = new HashMap<String, Object>();
    if(form.getEmpId() != null )
                mp.put(form.getEmpId().toString(), form);
                new java.util.Timer().schedule(new java.util.TimerTask()
                   public void run()
                      EmpForm form1 = (EmpForm)mp.get(empId.toString());
                      String empId = form1.getempId().toString();
                      String value1Changed = form1.getValue1Changed().toString();
                      String value2Changed = form1.getValue2Changed().toString();
                      myService.changeData(empId, value1Changed, value2Changed),
                }, 10000);
             }

    Thanks for replying
    tjacobs01 wrote:
    My recommendation is that you share an AtomicReference between your timer and the listener that is receiving the updates. This way, the listener can just update the value, and the timer uses the latest one when it wakes upOk, out of my limited understanding, I looked up AtmoicReference and found it a class. I think I cant use that since I am maintaining a list of empIds against the object that holds their data in a hashmap, expecting the map to override the empId on the second request. So, I made a final map and thought Id just push the timer scheduler method in another method, but the problem is, for me to ask that thread (which I expect to run after 10 seconds of my calling) to run, I need to call it somewhere, and as soon as I get a request I am calling the method which runs/ticks off the thread.
    I was thinking that since I am passing and using a final map (that I declared as a class level variable), I will be able to put update the map object and whenever the thread runs, will fetch the latest value (of the empId) in the map. But I guess I am doing it wrong. :(

  • Threaded program takes more time than running serially!

    Hello All
    Ive converted my program into a threaded application so as to improve speed. However i found that after converting the execution time is more than it was when the program was non threaded. Im not having any synchronised methods. Any idea what could be the reason ?
    Thanx in advance.

    First, if you are doing I/O, then maybe that's what's taking the time and not the threads. One question that hasn't been asked about your problem:
    How much is the time difference? If it takes like 10 seconds to run the one and 10 minutes to run the threaded version, then that's a big difference. But if it is like 10 seconds vs 11 seconds, I think you should reconsider if it matters so much.
    One analogy that comes to mind about multiple threads vs. sequential code is this:
    With sequentially run code, all the code segments are lined up in order and they all go thru the door one after the other. As one goes thru they all move up closer, thus they know who's going first.
    With multi-threaded code, all the code segments sorta pile up around the door in a big crowd. Some push go thru one at a time while others let them (priority), while other times 2 go for the door at the same time and there might be a few moments of "oh, after you", "no, after you", "oh no, I insist, after you" before one goes thru. So that could introduce some delay.

  • Sending mail takes 2 seconds

    When I use this code, it takes 2 seconds to execute.
    It is a static method and code is run on my tomcat server.
    It all works fine, just the length of time to execute.
    Questions:
    Why is this taking 2 seconds, any way to speed it up ?
    Should I just stick it in a separate thread and let it work on it's own so users don't have the delay ?
    Thanks
    public static void doIt(String to, String subject, String text) {
            try {
                Context initCtx = new InitialContext();
                Context envCtx = (Context) initCtx.lookup("java:comp/env");
                Session session = (Session) envCtx.lookup("mail/Session");
                Message message = new MimeMessage(session);
                message.setFrom(new InternetAddress("[email protected]"));
                InternetAddress list[] = new InternetAddress[1];
                list[0] = new InternetAddress(to);
                message.setRecipients(Message.RecipientType.TO, list);
                message.setSubject(subject);
                message.setContent(text, "text/plain");
                Transport.send(message);          
            catch(Exception e){
        }Edited by: patftrears on Mar 30, 2010 9:32 AM

    Obviously you should do some debugging to determine which statement is using most of the time.
    Most likely it's the call to Transport.send, but you should prove that.
    Since Transport.send is talking to your server, the delay could be entirely waiting for your server.
    Also, Transport.send will need to look up the host name that you're connecting to. If your name
    service is slow, that could explain it too.

  • Crystal Reports 2013 freezes after 22 seconds of running report

    I'm running a report that includes 5 linked subreports.  I have parameters for start and end dates for the the data I'm running, and if the report takes longer than 22 seconds to run, the program locks up and I have to manually kill the crw.32 process.  At the bottom of the report I can see where text is constantly overlayed where it says "Subreport: Reading Records" which almost makes me wonder if it's a graphics issue vs. a Crystal issue.  I can see where it began to write "Generating Page 1" over "Subreport: Reading Records".  Any help would be greatly appreciated.  A screenshot of what's happening at the bottom of the program is attached.  I'm running CR Developer 14.1.1.1036.  Thank you very much!

    Hi Drew,
    Remember that each time a subreport is called, it's querying the database again.  If you have 5 linked subreports in a group header or footer that means all 5 of those subreports are hitting the database for each group.
    The screenshot you attached tells me Crystal is busy trying to process the report and is dedicating all of its resources to that.  My guess is if you click on Crystal you the window says it's busy. 
    This could be a resource issue on your database server or your client machine.  So it could be a matter of giving it more time to complete.  It sounds like the problem can be reproduced.  Remove a subreport and see if the report still hangs.  If it does remove another and repeat the process until it doesn't hang.
    If possible, can you filter the data going into the subreports so they process less records?  The less data it has to play with the better the performance.
    Good luck,
    Brian

  • Oracle9i reports take longer time while running in web

    Hi,
    I have developed few reports in Oracle9i and I am trying to run the reports in web. Running a report through report builder takes lesser time compare to running the same report in web using web.show_document. This also depends on the file size. If my report file size(.jsp file) is less than 100KB then it takes 1 minute to show the parameter form and another 1 minute to show the report output. If my file size is around 190KB then the system takes atleast 15 minutes to show the parameter form. Another 10 to 15 minutes to show the report output. I don't understand why the system takes long time to show the parameter form.
    I have a similar problem while opening the file in reports builder also. If my file size is more than 150KB then it takes more than 15 minutes to open the file.
    Could anyone please help me on this.
    Thanks, Radha

    This problem exists only with .jsp reports. I saved the reports in .rdf format and they run faster on web now. Opening a .jsp report takes longer time(file with 600KB takes atleast 2 hours) but the same report in .rdf format takes few seconds to get opened in reports builder.

  • Why does it take 30 seconds to sleep after the 10.7.3 update?

    After applying the 10.7.3 combo update it now take 30 seconds between the time I select sleep from the menu (or press the power button) on my 2.66GHz Mac Pro. It used to be instant.

    Matthew,
    Again, this started when I installed the combo 10.7.3 update. Unlike you, my screen does dot go to black-except-cursor, but remains at the desktop (or whatever app I'm in), but simply takes 30 seconds exactly to sleep. I do have a Belkin UPS attached, and I'll try to unplug the USB cable and see what happens. Also remember that I've tested this in a new unsullied user, so it's probably not anything I'm running. Another possibility is that I have 2 RAID arrays connected via eSATA, but I had those before the update and they did not seem to affect sleep then. Could be that Apple changed the way they handle eSATA.
    I'm on a 2006 Mac Pro (details below).
    Would be nice if we could get some help from an Apple engineer on this issue (hint, hint...)
    Model Name:          Mac Pro
      Model Identifier:          MacPro1,1
      Processor Name:          Dual-Core Intel Xeon
      Processor Speed:          2.66 GHz
      Number Of Processors:          2
      Total Number Of Cores:          4
      L2 Cache (per processor):          4 MB
      Memory:          6 GB
      Bus Speed:          1.33 GHz
      Boot ROM Version:          MP11.005D.B00
      SMC Version (system):          1.7f10

  • Help: Selecting * from view takes minutes, query in view takes only seconds

    Hello,
    I have a view that i created that compiles ok and the query inside of the view only takes 2 seconds to return all the records. But if i try to select * from the view it takes 4-5 minutes to return the results. The explain plan is exactly the same, whether i select * from the view or run the query from within the view. Explain plan listed at bottom of post. Any ideas on where i might be going wrong? Thanks in advance.
    The below query returns ~400 rows. If i limit the rows returned to ~200 with this additional line at the very end:
    AND TEAM_CATEGORY LIKE '%FSM%'
    the query runs in just a few seconds. So the rows returned is not the problem here.
    Code:
    SELECT /*+ PUSH_PRED( TEAM ) */ NP.ID_NUMBER,
           NP.PROSPECT_ID,
           NP.PREF_MAIL_NAME PROSPECT,
           NP.OFFICER_RATING RATING,
           NP.EVALUATION_RATING EVALUATION,
           P.ASK_AMT NEXT_ASK,
           P.ANTICIPATED_AMT EXPECT,
           NP.STRATEGY_DESCRIPTION STRATEGY,
           E1.LAST_NAME PROSPECT_MGR,
           TEAM.TEAM_CATEGORY,
           CASE
             WHEN TOPA.SHORT_DESC <> ' ' THEN
              'X'
           END TOPA,
           E.PREF_MAIL_NAME SPOUSE_NAME,
           PR.PROSPECT_NAME_SORT SORT_NAME
      FROM ADVANCE_NU.NWU_PROSPECT NP,
           entity E,
           entity E1,
           assignment ASSI,
           prospect PR,
           (select p.proposal_id, p.prospect_id, p.ask_amt, p.anticipated_amt
              from proposal p
             where p.active_ind = 'Y'
               AND (p.stop_date IS NULL OR p.stop_date > sysdate)) P,
           (SELECT PC.PROSPECT_ID ID, TP.SHORT_DESC
              FROM PROSPECT_CATEGORY PC, TMS_PROSPECT_CATEGORY TP
             WHERE PC.PROSPECT_CATEGORY_CODE = TP.PROSPECT_CATEGORY_CODE
               AND pc.prospect_category_code = 'TOP') TOPS,
           (SELECT PC.PROSPECT_ID ID, TP.SHORT_DESC
              FROM PROSPECT_CATEGORY PC, TMS_PROSPECT_CATEGORY TP
             WHERE PC.PROSPECT_CATEGORY_CODE = TP.PROSPECT_CATEGORY_CODE
               AND pc.prospect_category_code = 'TFP') TOPA,
           (SELECT ID,
                   CASE WHEN count(TEAM_CAT) >= 1 THEN MAX(DECODE(CT, 1, TEAM_CAT)) ELSE ' ' END
                   || CASE WHEN count(TEAM_CAT) >= 2 THEN ', ' || MAX(DECODE(CT, 2, TEAM_CAT)) ELSE ' ' END
                   || CASE WHEN count(TEAM_CAT) >= 3 THEN ', ' || MAX(DECODE(CT, 3, TEAM_CAT)) ELSE ' ' END
                   || CASE WHEN count(TEAM_CAT) >= 4 THEN ', ' || MAX(DECODE(CT, 4, TEAM_CAT)) ELSE ' ' END
                   || CASE WHEN count(TEAM_CAT) >= 5 THEN ', ' || MAX(DECODE(CT, 5, TEAM_CAT)) ELSE ' ' END
                   || CASE WHEN count(TEAM_CAT) >= 6 THEN ', ' || MAX(DECODE(CT, 6, TEAM_CAT)) ELSE ' ' END
                   TEAM_CATEGORY
              FROM (SELECT PC.PROSPECT_ID ID,
                           ROW_NUMBER() OVER(PARTITION BY PC.PROSPECT_ID ORDER BY PC.PROSPECT_CATEGORY_CODE ASC) CT,
                           TP.SHORT_DESC TEAM_CAT
                      FROM PROSPECT_CATEGORY PC, TMS_PROSPECT_CATEGORY TP
                     WHERE PC.PROSPECT_CATEGORY_CODE = TP.PROSPECT_CATEGORY_CODE
                       AND PC.PROSPECT_CATEGORY_CODE NOT IN ('TOP', 'TFP'))
             GROUP BY ID) TEAM
    WHERE NP.PROSPECT_ID = P.PROSPECT_ID(+)
       AND NP.spouse_id = E.id_number(+)
       AND NP.prospect_id = PR.prospect_id
       AND NP.PROSPECT_ID = TOPS.ID
       AND NP.PROSPECT_ID = TEAM.ID(+)
       AND NP.prospect_id = TOPA.ID(+)
       AND NP.PROSPECT_ID = ASSI.PROSPECT_ID(+)
       AND ASSI.ASSIGNMENT_ID_NUMBER = E1.ID_NUMBER(+)
       AND ASSI.ASSIGNMENT_TYPE(+) = 'PM';Explain plan:
    SELECT STATEMENT, GOAL = CHOOSE                              346     1     369          346
    HASH JOIN OUTER                                   346     1     369          346
      HASH JOIN OUTER                                   332     1     330          332
       NESTED LOOPS OUTER                                   326     1     190          326
        NESTED LOOPS OUTER                                   325     1     171          325
         NESTED LOOPS OUTER                                   323     1     152          323
          NESTED LOOPS OUTER                              322     1     119          322
           NESTED LOOPS                                   320     1     90          320
            NESTED LOOPS                                   319     1     67          319
             NESTED LOOPS                                   319     484568     24712968          319
              INDEX UNIQUE SCAN     ADVANCE     ZZ_ADV_TABLE_KEY0          1     1     8          1
              TABLE ACCESS FULL     ADVANCE_NU     NWU_PROSPECT          318     484568     20836424          318
             TABLE ACCESS BY INDEX ROWID     ADVANCE     PROSPECT_CATEGORY     1     16          
              INDEX RANGE SCAN     ADVANCE     PROSPECT_CATEGORY_KEY2          1               
            TABLE ACCESS BY INDEX ROWID     ADVANCE     PROSPECT          1     1     23          1
             INDEX UNIQUE SCAN     ADVANCE     PROSPECT_KEY0               1               
           VIEW PUSHED PREDICATE     RPT_ACEPONIS                    2     1     29          
            NESTED LOOPS                                   2     1     40          2
             TABLE ACCESS BY INDEX ROWID     ADVANCE     ZZ_ADV_TABLE          2     1     24          2
              INDEX UNIQUE SCAN     ADVANCE     ZZ_ADV_TABLE_KEY0          1     1               1
             TABLE ACCESS BY INDEX ROWID     ADVANCE     PROSPECT_CATEGORY     1     16          
              INDEX RANGE SCAN     ADVANCE     PROSPECT_CATEGORY_KEY2          1               
          TABLE ACCESS BY INDEX ROWID     ADVANCE     ENTITY               1     1     33          1
           INDEX UNIQUE SCAN     ADVANCE     ENTITY_KEY0               1               
         TABLE ACCESS BY INDEX ROWID     ADVANCE     ASSIGNMENT          2     1     19          2
          INDEX RANGE SCAN     ADVANCE     ASSIGN_PROSPECT_KEY0               1     3               1
        TABLE ACCESS BY INDEX ROWID     ADVANCE     ENTITY                    1     1     19          1
         INDEX UNIQUE SCAN     ADVANCE     ENTITY_KEY0                    1               
       VIEW     RPT_ACEPONIS                                   5     1     140          
        SORT GROUP BY                                   5     1     48          5
         VIEW     RPT_ACEPONIS                              5     1     48          
          WINDOW SORT                                   5     1     40          5
           NESTED LOOPS                                   2     1     40          2
            TABLE ACCESS FULL     ADVANCE     PROSPECT_CATEGORY          2     1     16          2
            TABLE ACCESS BY INDEX ROWID     ADVANCE     ZZ_ADV_TABLE          1     24          
             INDEX UNIQUE SCAN     ADVANCE     ZZ_ADV_TABLE_KEY0          1               
      VIEW     RPT_ACEPONIS                                   13     170     6630          
       SORT UNIQUE                                        13     170     32980          7
        UNION-ALL                                   
         TABLE ACCESS FULL     ADVANCE     PROPOSAL                    3     125     24250          3
         TABLE ACCESS FULL     ADVANCE     PROPOSAL                    3     45     8730          3Message was edited by:
    user624909
    Message was edited by:
    user624909
    Message was edited by:
    AndyCep

    I'm no expert. Hopefully, someone else will chime in.
    A couple points though:
    1) (select p.*
    from proposal p
    where p.active_ind = 'Y'
    AND p.stop_date > sysdate
    union
    select p.*
    from proposal p
    where p.active_ind = 'Y'
    AND p.stop_date is null) P,
    is using UNION. It should probably be a UNION ALL, or even better:
    (select p.*
    from proposal p
    where p.active_ind = 'Y'
    AND (p.stop_date IS NULL OR p.stop_date > sysdate)
    2) select p.*
    Do not use * in a VIEW. In fact, never use it outside EXISTS, COUNT(*) and ad hoc queries.
    Use a COLUMN-list instead. Always use a COLUMN-list.
    3)
    The CASE statement has no ELSE, and is redundant.
         CASE
         WHEN count(TEAM_CAT) = 1 THEN MAX(DECODE(CT, 1, TEAM_CAT))
         WHEN count(TEAM_CAT) = 2 THEN MAX(DECODE(CT, 1, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 2, TEAM_CAT))
         WHEN count(TEAM_CAT) = 3 THEN MAX(DECODE(CT, 1, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 2, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 3, TEAM_CAT))
         WHEN count(TEAM_CAT) = 4 THEN MAX(DECODE(CT, 1, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 2, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 3, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 4, TEAM_CAT))
         WHEN count(TEAM_CAT) = 5 THEN MAX(DECODE(CT, 1, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 2, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 3, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 4, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 5, TEAM_CAT))
         WHEN count(TEAM_CAT) = 6 THEN MAX(DECODE(CT, 1, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 2, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 3, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 4, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 5, TEAM_CAT)) || ', ' || MAX(DECODE(CT, 6, TEAM_CAT))
         END TEAM_CATEGORY
    How about something like:
         CASE WHEN count(TEAM_CAT) >= 1 THEN MAX(DECODE(CT, 1, TEAM_CAT)) ELSE ' ' END
         || CASE WHEN count(TEAM_CAT) >= 2 THEN ', ' || MAX(DECODE(CT, 2, TEAM_CAT)) ELSE ' ' END
         || CASE WHEN count(TEAM_CAT) >= 3 THEN ', ' || MAX(DECODE(CT, 3, TEAM_CAT)) ELSE ' ' END
         || CASE WHEN count(TEAM_CAT) >= 4 THEN ', ' || MAX(DECODE(CT, 4, TEAM_CAT)) ELSE ' ' END
         || CASE WHEN count(TEAM_CAT) >= 5 THEN ', ' || MAX(DECODE(CT, 5, TEAM_CAT)) ELSE ' ' END
         || CASE WHEN count(TEAM_CAT) >= 6 THEN ', ' || MAX(DECODE(CT, 6, TEAM_CAT)) ELSE ' ' END
         TEAM_CATEGORY
    4) I have to ask. Have you run statistics lately?
    5) Did you really alias a TABLE as "***"? Please tell me that is a formatting error.
    6) Are you sure you need all those outer joins?

  • Why does it take 30 seconds to fall in sleep modus?

    why does it take 30 seconds to fall in sleep modus?
    Some time ago it took just a few seconds.

    I have the same problem.  It always takes about 30 seconds for my Mac Pro to fall asleep and it's driving me crazy.
    I've got a Mac Pro early 2009 4.1.  I've reinstalled the OS twice, disabled all startup items, uninstalled the Logitech Control Center, and unplugged all USBs.  Only running keyboard and apple Mighty Mouse on bluetooth.
    I've also disabled hibernate mode, and removed the sleep image from the boot disk.
    On a pmset log, every thirty seconds the "com.apple.diskmanagementd" program creates a "PreventIdleUserSleep", then thirty seconds later it creates a "ReleasedIdleUserSleep".  This repeats itself continuously while it's sleeping.
    I've tried killing the process in Activity Monitor and it just starts up again 30 seconds or so later. 
    What could be causing this, and how can I stop it?

  • ITunes loading delays on screaming machine - takes 90 seconds to load

    Need some help. Just built a new machine from the ground up. It has Intel Duo Core E6600 2.40 ghz CPU, 1066Mhz FSB, 4 mb L2 Cache; 2 gb DDR Ram; 500gb Raid 0 HDD; GeForce 7600GT 256mb Video card. Running Windows XP Home until Vista comes out. Screams. All other apps load in <1sec. iTunes 7.0.2 takes 90 seconds to load. With NAV & Firewall off still takes 75 seconds to load. iTunes load on other older PC's in the house takes 5-20 seconds. When watching Task Manager on itunes.exe; in first second ~25,000k loads into memory, then hangs for 90 seconds and then remaining load happens taking memory usage up to ~45,400k. Any ideas as to what's going on? Baffling?
    Custom Intel Core Duo 2.4 gHz   Windows XP   2 GB RAM,
    Custom Intel Core Duo 2.4 gHz   Windows XP   2 GB RAM,
    Custom Intel Core Duo 2.4 gHz   Windows XP   2 GB RAM,
    Custom Intel Core Duo 2.4 gHz   Windows XP   2 GB RAM,

    sorry for the delay in getting back to you Windbeam. 60-odd reply-notification backlog in my inbox, and i'm trying to alert people that i'm not going to be around much for the next 2 weeks.
    Seems to be related to hardware or the OS. Solution is to have a cd in the drive and then the load screams. Makes no sense at all! Very strange.
    good lord ... that is peculiar. if it wasn't for the fact that having the CD in there was helping boot times too, i'd be wondering about a problem with your iTunes CD drivers ... but they don't load on startup.
    perhaps check on the general wellness of the drive? i'm getting similar symptoms at the moment from belladonna (just during boot-up, though). her optical drive is broken at the moment, and when she's booting there is a significant delay, and i can hear the desultory clunky/whirr noises as the drive tries to run during those delays.
    so it might be worth just doublechecking if your firmware is up-to-date on the drive. there's some info in these documents that might help with that:
    Using CD Diagnostics in iTunes for Windows to troubleshoot CD/DVD drive issues
    iTunes for Windows: Updating the firmware on your CD or DVD drive
    Updating the drivers on your Windows PC
    Where to find firmware for your CD/DVD drive
    anyhoo, have a good holidays!

  • Firefox 27.0.1 takes 140 seconds to complete MS Chalkboard test

    Using the MS Chalkboard test http://ie.microsoft.com/testdrive/Performance/Chalkboard/
    on an iMac 2012, 32gb RAM, Core i7, 3.4Ghz it takes approx 140 seconds to complete the test. In Safari about 6.46 seconds, and in IE11 on Parallels VM it takes 6 seconds.
    Something seems very wrong with the responsiveness of Firefox.... Tried uninstalling and reinstalling to no avail.

    It didn't run smoothly for me, and I'm not sure the stopping positions were accurate. It kept pausing to wait for something to complete, little resizing movements here and there.
    In my regular profile with hardware acceleration of graphics disabled and lots of tabs open, it took about 68 seconds. In a new profile with no customization, it took about 34 seconds.
    I don't have a modern IE on this computer to compare, but I tested in Google Chrome 33. It was much snappier and finished in about 12.5 seconds.
    No idea what's going on with this benchmark that makes Firefox slower.

Maybe you are looking for

  • Why is it not possible to access lightroom catalouge trough a Network (ready nas)

    As the Topic title says why i can´t use My LRM Catalouge when it´s hosted on my Network hard drive or why I can´t create a catalouge an an Network Share (ready Nas) With friendly Regards Colin

  • Control Key for Quality Management in Procurement

    if we activate Control Key for Quality Management in Procurement in material master then wether we need  also store a control key at the plant level for quality management in procurement. if we want want to maintaine pls tell me how it is pls expalin

  • Making search non case sensitive

    Hi, I have implemented a search help which I have copied from standard help 'PREM'. I have created a Database view, taking that View I have created an Elementary search help and I have assign the elementary search help in the collective search help '

  • A problem when update DB using SDK

    Hi All, I have a web application which uses SAP as a DB to order and display customers info. All BPs could change their info online. I use SDK to write to DB everything seems to work fine except one thing: when I update anything in my web app. after

  • Ovi Suite doesn't detect Phone

    Well I have N97 Used to have problem 'USB phone parent' driver couldnt be instaled - Just done PC suite cleaner and fixed that problem. Now its installed driver wise, so 'My computer' sees N97, and phone says its in PC suite mode BUT Ovi suite doesn'