Performance issue due to column formula and filters

Hi,
I am facing strange issue with performance for my OBIEE reports. I have two sets of reports Static and Dynamic. Both runs against same tables. The only difference between these reports is that the Static reports would run against all the data for given aggregation level e.g. Year, Month, Date and so on. Where as for Dynamic one I have range prompts to filter data. Other difference is that I have a column formula for one of the column in the Dynamic report, which is nothing but Go URL to show another page with certain parameters.
The static report takes around 14-15 Seconds where as the Dynamic one takes around 3.5 min. The amount of data and range is same here. From the logs I could see that for the Static reports, i.e. reports without filters it applys group by at SQL level where as it is not doing so for the dynamic one. Is this expected ?
Second issue is, even if I say remove the filters and just have report with column formula in one and no formula in other there is significant time difference in the processing at Presentation service layer. Again this is taken from the log. it takes 8 second to get data from DB but shows almost 218 Seconds as response time at Presentation layer.
Below are conceptual details about table and reports -
Table 1 (It is date dimension) : Date_Dim
DateCode Date
Day Number
MonthCode Varchar2
YearCode Varchar2
Table 2 (It is aggregate table at year level) : Year_Aggr
DateCode Date (FK to Table1 above)
Measure1
Measure2
Measure3
Measure4
Measure5
Report 1
Date_Dim.YearCode | Year_Aggr.Measure1 | Year_Aggr.Measure2 | Year_Aggr.Measure3 | Year_Aggr.Measure4
Report 2
Dashboard Filter : Dimension1 | Dimension2 | Year Start | Year End |
Date_Dim.YearCode | Year_Aggr.Measure1 | Year_Aggr.Measure2 | Year_Aggr.Measure3 | Year_Aggr.Measure4
Column formula for Date_Dim.YearCode is something like :
'<a href="saw.dll?Dashboard&PortalPath=somepath and parameters  target=_self>'  || Date Dim"."YearCode" || '</a">'
Filters :
Dimension1 is prompted...
Dimension2 is prompted...
cast("Date Dim"."YearCode" as Int) is greater than or equal to @{Start_Year}
cast("Date Dim"."YearCode" as Int) is greater than or equal to @{End_Year}
Note : I need to apply cast to int as column is varchar2, legacy problem.+
How can I fix this? Am I missing something? In the result of report2 the DB SQL doesn't show the year in where thought it is displayed in the logical sql.
Let me know if anybody had faced this and have fixed. Or suggetion to make changes to fix this.
Thannks,
Ritesh</a>

Hi Ritesh,
I think you right about the root cause of your problem. The first request does the group by in the database which returns fewer records to the BI Server for processing. The second request does not do the group by and sends significantly more records back to the BI server forcing it to do the group by. Compound that with the fact that pivot table views are relatively expensive computationally and that explains the difference between the execution times.
Assuming that the execution time of the first report is satisfactory, I would recommend you try to experiment with a few settings to see if you can get the second report to do the group by in the database.
Are the two filters identical except for the following conditions?
cast("Date Dim"."YearCode" as Int) is greater than or equal to @{Start_Year}
cast("Date Dim"."YearCode" as Int) is greater than or equal to @{End_Year}
Best regards,
-Joe

Similar Messages

  • Performance Issues with 10.6.7 and External USB Drives

    I've had a few performance issues come up with the latest 10.6.7 that seem to be related to external USB drives. I have a 2TB USB drive tha I have my iMovie content on this drive and after 10.6.7 update, iMovie is almost unusable. Finder even seems slow when browsing files on this drive as well. It seems like any access to the drive is delayed in all applications. Before the update, the performance was acceptable, but now it almost unusable. Most of the files on this drive are large dv files.
    Anyone else experience this?

    Matt,
    If you want help, please start your own thread here:
    http://discussions.apple.com/forum.jspa?forumID=1339&start=0
    And if your previous thread you aren't getting sufficient help for your iPhone, post a new topic here:
    http://discussions.apple.com/forum.jspa?forumID=1139
    You'll get a wider audience, and won't confuse the original poster. Performance issues can be caused by numerous issues as outlined in my FAQ*
    http://www.macmaps.com/Macosxspeed.html
    If every person who had a performance issue posted to this thread, we'd never find a solution for the initial poster. Let's isolate each case one by one. It is NOT necessarily the same issue, even if the symptoms are the same. There are numerous contributing factors at work with computers, and if we don't isolate them, we'll never get to the root cause.

  • Cisco ASR 1002- performance issue due to access list

    Hi,
    We are planning to implement inbound access-list to block subnets from particular country. Since the subnets are not contiguous, we have about 16000 lines of acl entries.
    I want to know, would there be any performance or latency issues after applying 16k lines of acl?
    Is there a good document where I can read more about ACL limitations and performance issues on ASR.
    This is for ASR1002, running IOS-XE 15.3(1)S1.
    Thanks

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    Sorry, I don't know the answer to your questions, but I'm writing to mention a 7200 feature, that if supported on the ASR, might help in your situation.  See http://www.cisco.com/c/en/us/support/docs/security/ios-firewall/23602-confaccesslists.html#turbo

  • Avoiding performance issue due to loop within loop on internal tables

    Hi Experts,
                    I have a requirement where in i want to check whether each of the programs stored in one internal table are called from any of the programs stored in another internal table. In this case i am looping on two internal tables (Loop within a loop) which is causing a major performance issue. Program is running very very slow.
    Can any one advise how to resolve this performance issue so that program runs faster.
    Thanks in advance.
    Regards,
    Chetan.

    Forget the parallel cursur stuff, it is much to complicated for general usage and helps nearly nothing. I will publish a blog in the next days where this is shown in detail.
    Loop on loop is no problem if the inner table is a hashed or sorted table.
    If it must be a standard table, then you must make a bit more effort and faciliate a binary search (read binary search / loop from index exit)
    see here the exact coding Measurements on internal tables: Reads and Loops:
    /people/siegfried.boes/blog/2007/09/12/runtimes-of-reads-and-loops-on-internal-tables
    And don't forget, the other table must not be sorted, the loop reaches anyway every line. The parallel cursor requires both tables to be sorted. The additional sort
    consumes nearly the whole advantage of the parallel cursor compared to the simple but good loop in loop solutions.
    Siegfried

  • Will Performance degrade due to Column Level Security

    Hi All,
    I have report with 40 Columns, of which more than 20 columns are restricted to many users on the Dashboards.
    This security is controlled by assigning permissions to those columns in RPD presentation Layer.
    And setting the PROJECT_INACCESSIBLE_COLUMNS_AS_NULL to YES in NQSConfig.ini
    Will the performance of reports degrade due to this type of design.
    Is there any solid evidence?
    Thanks
    Kaushik

    Hi,
    I dont see any performance hinderance because of the column level security.
    But remember in the pivot table you can still see the column without values. And its a bug. Would serve good for table views.
    Hope this helped/ answered
    Regards
    MuRam

  • Oracle XQuery performance issue in XMLType column

    Dear All,
    As for oracle I'm using oracle 11g to measure the performance.
    I'm using data from XMark project which is a >100MB data of XML for bencmarking purposes.
    I make a table that contains an XMLType column and upload the data into that column, after doing that I try to do a query like this:
    select xmlquery(
    'for $i in /site/people/person
    where $i/id = "person0"
    return $i/name'
    passing BookXMLContent Returning Content)
    from Book;
    The purpose of this query is to retrieve the name of a person that have id = 'person0'
    My questions are:
    1. Did I do something wrong with my query?
    2. Is there any setting on the database that I should done prior to doing the query to done significantly better result?
    3. Is there any other approach that are much better than I currently used?
    Regards,
    Anthony Steven
    Edited by: mdrake on Nov 4, 2009 6:01 AM

    Anthony
    First, please read the licencing terms for Oracle ( And I suspect DB2, MSFT) . You are not allowed to publish externally (in any form, including forum posts :) ) the results of any benchmarking activities. I have edited your post accordingly. I hope this research is not part of a thesis or similar work that would intend making public as you and your institution would be in violation of your licence agreeement were you to do so.
    Now back to your question, how can you improve performance for XMark
    #1. Can you show us the create table statement you used, so we can see how you created your XMLType column BOOKXMLCONTENT.
    #2. Did you create any indexes
    #3. Did you look at the explain plan output.
    -Mark
    Edited by: mdrake on Nov 4, 2009 6:06 AM

  • Performance issues when using Smart View and Excel 2010

    Hello, we are experiencing very slow retrieval times when using Smart View and Excel 2010. Currently on v.11.1.3.00 and moved over from Excel 2003 in the last quarter. The same spreadsheets in 2010 (recreated) are running much slower than they used to in 2003 and I was wondering if anyone else out there has experienced similar problems?
    It looks like there is some background caching going on as when you copy and paste the contents into a new file and retrieve it is better.....initially. The size of the files are generally less than 2mb and there aren't an expecially large number of subcubes requested so I am at a loss to explain or alleviate the issues.
    Any advice / tips on how to optimise the performance would be greatly appreciated.
    Thanks,
    Nick

    Hi Nick,
    Office 2010 (32 bit) only is supported.
    Also check these documents:
    Refresh in Smart View 11.1.2.1 is Slow with MS Office 2010. (Doc ID 1362557.1)
    Smart View Refresh Returns Zeros (Doc ID 758892.1)
    Internet Explorer (IE7, IE8 and IE9) Recommended Settings for Oracle Hyperion Products (Doc ID 820892.1)
    Thank you,
    Charles Babu J
    Edited by: CJX on Nov 15, 2011 12:21 PM

  • Performance issue due to RFC calls. (R/3 to R/3 system)

    Hi,
    My application face serious performance problem because of RFC calls (R/3 system to R/3 system).
    1)is there any transaction code for doing performance analysis on RFC calls in R/3 system?
    2)How far large volume of Data Transfer (mainly due to internal tables) in a RFC call affects the performance? is there any limit for data transfer size at a time in a RFC call? if so how to calculate for best performance?
    Thanks and regards,
    Prakash.

    Hi Andreas,
    Suppose an RFC enabled Fm having an internal table as importing parameter.During execution of this Fm with 4000 enteries for the internal table results in performance degrading.is there any way to improve the performance?.
    Thanks and regards,
    Prakash.

  • Performance issue due to localization code in SSRS 2008

    The reports I am working on consist lot of data and all the customers use it frequently.
    Report title and columns are localized by expressions .
    This takes long time for report rendering and exporting to csv. When I test without the localization code it doesn't take that long .
    Can someone help me to optimize the report. SSRS 2008 R2
    Archana

    Hi Archana,
    In Reporting Services, the total time to generate a reporting server report (RDL) can be divided into 3 elements:
    Total time = (TimeDataRetrieval) + (TimeProcessing) + (TimeRendering)
    TimeRendering means the number of milliseconds spent after the Rendering Object Model is exposed to the rendering extension. It includes the Time spent in on-demand expression evaluations (e.g. TextBox.Value, Style.*). So it is make sense that the report
    with localization code takes longer time.
    Besides, we can improve the report performance form other aspects. For example, we can add filter, sorting and aggregation in dataset query, because filter, sort, and aggregation is more efficient on the data source than during report processing. For more
    details about report performance, please refer to the following article:
    http://technet.microsoft.com/en-us/library/bb522806(v=sql.105).aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Performance Issues between WL 5.1 and WL 6.0

    Hello all and thank you in advance,
    We're in the process of evaluating Weblogic 6.0 and have noticed a considerable
    difference in server response times from Weblogic 5.1(sp9). Testing with a light
    load, 5 to 20 threads, our average response time has doubled when using Weblogic
    6.0. We've done some reading about the license limitation (5 connection limit)
    and tried taking numbers at or below 5 threads, however it still seems that the
    response
    times are 2 to 2.5 times slower. Does anyone know what the license limitation
    of 5 connections means? Is it physical connections, 5 IP addresses ???
    We have not tried rebuilding using ejbc2.0 yet (however this is on the list),
    and additionaly we are going to try another "fresh" install to see what happeneds.
    Everything else we've done is pretty much by the book.
    Does anyone have any suggestions, or has Weblogic 6.0 been pigged out by all of
    the new features.
    Our system consist of multiple servlet, session beans, and entity beans (bean
    managed persistance).
    Any response is greatly appreciated.
    Sean

    Dimitri,
    I believe that is correct, it is deployment unit which matters. I can't tell
    you for sure since I have not tried to deploy exploded format in 6.x, yet.
    .raja
    "Dimitri Rakitine" <[email protected]> wrote in message
    news:[email protected]...
    Isn't it the same for WebLogic if you deploy your app in exploded form oras
    an EAR as long as it is the same deployment unit?
    If web-app and ejb components are separate deployment units thenperformance
    will suffer because local RMI optimization will not be used when invokingEJBs
    (calls will be by-value vs by-reference).
    Raja Mukherjee <[email protected]> wrote:
    Is there any reason, why you are deploying your application in the
    expanded
    format? As I understand in 6.0 if you deploy your application in .earfile
    the class loader hierarchy works like (Simplified version)
    System Class Loader
    |
    EJB Class Loader (JAR File)
    |
    Web Application Class Loader (WAR File)
    If you deploy the same application with separate WAR and JAR file, your
    class loader will look like
    System Class Loader
    | |
    EJB Class Loader Web Application Class Loader
    In general, I have seen 6.0 perform better than 5.1. But again, all my
    6.0
    deployments are EAR file. I would also cache all JNDI lookups in 6.0. In
    5.1, I have only seen marginal gains, but in 6.0 gains are pretty big.
    Hope this helps.
    .raja
    "Rich Llaca" <[email protected]> wrote in message
    news:[email protected]...
    Hi Rob,
    I've been working with Sean to try and figure out our problem. We
    really
    appreciate your comments and all the feedback we've been getting onthis.
    Even though we haven't figured out our problem yet we've learned a lotjust
    from everyone's comments.
    Your question on deployment is one I've been meaning to ask. Here's
    what
    we're doing, at least what we've been initially doing.
    First of all, our complete application is composed of:
    1. servlets receiving routed http input requests,
    2. session beans which handle requests from servlets,
    3. BMP EJBs which provide the session beans with data and receive datato
    make updates/inserts,
    4. XML static files which are used along with output coming from thesession
    beans to provide a set of output data for each request,
    5. XSL files which are used with the output XML to generate the final
    web
    pages dynamically.
    6. everything eventually is output by the handling servlet.
    Since we're still in development mode we've been trying to put our
    application under 6.0 (we're trying both sp1 and sp2) in expanded form.Our
    application is setup under the following typical directory structure:
    1. ".../OurDomain/applications/OurApplication".
    2. In the OurApplication directory we have directories for our XML and
    XSL
    files.
    3. In the "OurApplication/WEB-INF/web.xml and weblogic.xml" files wehave
    the declaration for resources and servlets.
    4. In "OurApplication/WEB-INF/lib" we have the jar files containing our
    servlets and session beans.
    5. Our BMP EJBs are in a seperate jar file. We had been precompiling(with
    "ejbc") but now we're trying to let the server do the deploymentcompiling
    at server startup.
    So my question is; Are we doing something wrong that causing ourperformance
    issues? Should we try to structure things differently? We've set things
    where the servlets and session beans are basically structured like a
    web
    app
    would be, things that would go into the ".war" file. Is this the right
    way
    to do this or since we really don't have any static html (all isgenerated
    dynamically) should we step back and look at structuring things the waythey
    might go into an ".ear" file?
    Thanks Again,
    Rich
    "Rob Woollen" <[email protected]> wrote in message
    news:[email protected]...
    In general, WLS 6 performs much better than WLS 5.1. First off, make
    sure you've installed SP1 (or preferably SP2) for 6.0. These service
    packs improve the performance as well as fix bugs.
    The most common 5.1-->6.0 performance problem relates to the changes
    to
    the classloaders.
    How are you deploying your application in 6.0? You should deploy a
    single EAR file that contains the servlet WARs and the EJB Jars. In
    this case, we can optimize the servlet-->EJB calls.
    If you deploy them as separate WAR and JAR files, the calls areslower
    (call by value) since they are viewed as separate applications by the
    server and use separate class loaders.
    -- Rob
    Sean Cloutier wrote:
    Hello all and thank you in advance,
    We're in the process of evaluating Weblogic 6.0 and have noticed a
    considerable
    difference in server response times from Weblogic 5.1(sp9).
    Testing
    with a light
    load, 5 to 20 threads, our average response time has doubled when
    using
    Weblogic
    6.0. We've done some reading about the license limitation (5
    connection
    limit)
    and tried taking numbers at or below 5 threads, however it still
    seems
    that the
    response
    times are 2 to 2.5 times slower. Does anyone know what the licenselimitation
    of 5 connections means? Is it physical connections, 5 IP addresses
    We have not tried rebuilding using ejbc2.0 yet (however this is on
    the
    list),
    and additionaly we are going to try another "fresh" install to see
    what
    happeneds.
    Everything else we've done is pretty much by the book.
    Does anyone have any suggestions, or has Weblogic 6.0 been pigged
    out
    by
    all of
    the new features.
    Our system consist of multiple servlet, session beans, and entity
    beans
    (bean
    managed persistance).
    Any response is greatly appreciated.
    Sean--
    Coming Soon: Building J2EE Applications & BEA WebLogic Server
    by Michael Girdley, Rob Woollen, and Sandra Emerson
    http://learnweblogic.com
    Dimitri

  • SAP MaxDB 7.7.07.16 - performance issue due to IOWait(R) task

    We are running MaxDB 7.7.07.16 unicode in a non SAP environment (is basis for a web application).
    Database Server has 4 Cpu's, 8 Gb RAM, operating system Debian-Linux 6.0.
    We have some performance problems in not regular periods of time.
    The performance problem occurs for a time frame between 3 and 15 minutes and blocks more or less the complete system.
    After a long phase of checking and evaluating possible issues, we think that we are very near to the issue.
    We identified the database tasks
    - TblPrfC  - Prefetch Table Coordinator:
    - PrefPag - Prefetch Pages
    having the current state "IO Wait (R)".
    As long these tasks are in state "IO Wait (R)" the users (at the web application) gets awful slow respond times on their queries.
    On 9th of April 2011 we changed the DB parameters:
    - ReadAheadTableThreshold         old 0 => new 128
    But today we got the same performance problem again.
    If you have any hints or tips, you're welcome!
    Best regards
       Hannes

    Hello Hannes,
    ok brief but hopefully usefull answer to your post:
    - if the database I/O generated by SQL statements alone brings the system to a grinding halt, then your storage system is undersized. How should it be able to handle additional I/O, e.g. for backups if it isn't capable to handle the standard I/O?
    - the prefetching tasks are used to speed up large scan operations. So, the next thing to do here is to find statements that perform table scans and check whether or not these can be tuned to KEY or Index accesses
    - As a workaround, I would propose to increase the value of ReadAheadTableThreshold to, say, 500, so that the prefetching is done only for really large scans.
    regards,
    Lars

  • I am having serious performance issues. FF just spins and spins, and rarely gets anywhere anymore.

    I have disabled addons, uninstalled/reinstalled, all to no avail. Other browsers work fine for me. I'm at the point where I'm ready to give up on FF and just go to Chrome fulltime, if I can't get an answer to this issue.
    I do use quite a few tabs, but I haven't had an issue with that in the past. This issue started a couple months ago, so I went through the various releases, and am now at 7.01 in W7 64, still the same issues as when it started in FF4.
    I do NOT have this problem in XP using the same browser version on another machine.

    Does the issue still occur if you start Firefox in Safe Mode? http://support.mozilla.com/en-US/kb/Safe+Mode
    How about with a new, empty profile? http://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_8-make-a-new-profile
    Also, try the steps at http://blog.bonardo.net/2011/09/30/is-your-firefor-freezing-at-regular-intervals

  • System performance issue due to multiple submission of a job

    For month end recoincilation users run few critical reports which are quite resource consuming.
    In order to control this, want to restrict the usage of such  reports. For example if one session is active (Foreground or background) user couldn't submit another job or gets a pop up with an error mesage.
    Searched SDN for this and couldn't find much.
    anya

    Anya since this is the ABAP forum and I happen to be an ABAP programmer I can give you an ABAP solution. This would involve changes to the code in all these reports so you would need the help of an ABAP programmer if you are not one.
    a) Create a Z table containing 3 fields
    1) Client of type MANDT  (Primary key field)
    2)Program Name  of type PROGRAM_ID (Primary key field)
    3) User name of type XUBNAME (Regular field).
    b) Create table maintenance for this internal table.
    c) Create one record for each of the programs you want to regulate. You only need to enter the program name initially and leave the user name blank.
    d) In all the ABAP programs make the following change.
    1) Under the START-OF-SELECTION event of the report lock the use function module ENQUEUE_E_TABLEE to lock the record in the Ztable for the program being executed. Look at the sample code below.
    TABLES: <ztable>.
    data: w_message(100) TYPE c,
            w_locked(1) TYPE c.
    CALL FUNCTION 'ENQUEUE_E_TABLEE'
      EXPORTING
        tabname              = <ztable name>
        varkey               = <concatenation of mandt and sy-cprog>
      EXCEPTIONS
       foreign_lock         = 1
       system_failure       = 2
       OTHERS               = 3.
    IF sy-subrc EQ 1.
      SELECT SINGLE *
        FROM <ztable>
        INTO <ztable>
        WHERE program FIELD name EQ sy-cprog.
      IF sy-subrc EQ 0.
        CONCATENATE 'Program'
                    sy-cprog
                    'is currently being used by'
                    <ztable>-<user name>
          INTO w_message SEPARATED BY space.
        MESSAGE e208(00) WITH w_message.
      ENDIF.
    ELSEIF sy-subrc EQ 0.
      w_locked = 'X'.
      SELECT SINGLE *
        FROM <ztable>
        INTO <ztable>
        WHERE program FIELD name EQ sy-cprog.
      IF sy-subrc EQ 0.
        <ztable>-user name> = sy-uname.
        MODIFY <ztable> FROM <ztable>.
      ENDIF.
    ENDIF.
    e) At the event END-OF-SELECTION (at the end of the program) use function module DEQUEUE_E_TABLEE to unlock the record. Look at sample code below.
    CASE w_locked.
      WHEN 'X'.
        CALL FUNCTION 'DEQUEUE_E_TABLEE'
          EXPORTING
            tabname          = <ztable name>
            varkey             = <concatenation of mandt and sy-cprog>.
    ENDCASE.
    This code is designed to allow just one user or job to run the program at a time. The second person will be issued an error message informing him/her that the program is being used by <user name>.

  • Performance Issues due to Loading of ADF/JClient View Objects

    Hi,
    I developed a two-tier ADF/JClient application.
    When the ADF/JClient application opens for the first time, there's a big delay
    However opening it subsequently, takes less than half of the time to open the screen.
    I think it might the xml files of different view objects which the framework loads for the first time, and thus takes a lot of time. And after that, the time to open the application reduces.
    We have around 200 view objects in our application. Can this be the reason?
    If yes, then can we load the view objects before ahead, or can we just load them at the very time they are requested ?
    Thanks,
    Makrand Pare

    Hi Makrand,
    Check this out:
    "Limiting Fetching of Business Components Attributes in ADF Swing
    http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.developing_jclient_applications%7Cjui_plimitingfetching%7Ehtml/
    Note: In local mode deployment (the client and Business Components reside in the same VM), the fetching of attribute properties is not supported.
    You can optimize startup time for a Business Components client application and the remotely deployed Business Components by specifying the list of view object attributes that your client uses. If you create a project without the metadata, by coding to the API, you will want to add fetchAttributeProperties() to the bootstrap code of the client forms with a list of only the attributes used by the form. Without this method call, your client form would fetch all control hint properties (including the attributes format and label for example) for all the attributes of the named view objects in the application module, in a single network roundtrip.
    For example, when you do not intend to use all the attributes of the ADF Swing form's bound view object, with the fetchAttributeProperties() method, your ADF Swing form fetches only the information required to layout your forms, while ignoring the attributes you do not require.
    Note: In local mode deployment (the client and Business Components reside in the same VM), the fetching of attribute pro
    Calling fetchAttributeProperties() will prevent property methods such as getFormat() or getLabel() from being called on the Business Components attribute definition whenever the form is created."
    Vlad

  • Performance Issue with calling setTextFormat() over and over... Need to temporarilly disable redraws?

    Hello all,
    I am running some code which lets me highlight text bits of text found with regular expression.
    The code I have works fine
    the problem that I am having is that I need to call setTextFormat() over and over again (possibly > 1000 times), and it becomes very slow (possibly because its redrawing over and over).
    When commenting out the line with setTextFormat(), it runs brilliantly fast.
    Is there a way to disable redraws of the textField while I make the changes to the text format, then redraw it manually?
    Any help appreciated!
    The code is:
    // Find the first result
    var pResult:Object = pRegexHighlight.regexp.exec(str);
    while(pResult != null)
        // Highlight the match
        var pTextFormat:TextFormat = new TextFormat();    pTextFormat.color = 0xff0000;
        textField.setTextFormat(pTextFormat, pResult.index, pResult.index + pResult[0].length);
        // Get the next match
        pResult = pRegexHighlight.regexp.exec(str);
    Scott McNaught
    http://www.resultswebdesign.com.au/

    I think you should use a TextArea, and parse the text property. After parsing and adding <font color="#0000FF"></font>, set the result in the htmlText property (but retain the original text in the text property). That way you render once.
    If you don't lie the TextArea border and focus outline set thickness of them to 0.
    If this post answers your question or helps, please mark it as such.

Maybe you are looking for