Crystal Report is very slow to fetch the results of a Query used in Command

Hello All,
We have a query which is used in command object in Business Objects Crystal reports XI. This report is executed against IBM DB2 database. It is taking 40 min to getback the results. Here is the Query. Please suggest how can i improve the performance of this query in report as another reporting tool is taking 2-3 min time to fetch the results with the same query.
SELECT
A1.CARR_NUM ,  A1.CST_CTR_NUM ,A1.CLM_CLOSE_STS_CD ,   A1.CLM_RJCT_STS_CD ,A1.CLM_VOID_STS_CD ,  A1.PMT_MTCH_DT , A1.ASC_TRANS_TYP_CD ,  A1.DRUG_DESC ,               
A1.BATCH_NUM ,   T5.TPA_RJCT_CD ,  A1.DIV_NUM , A1.INVC_NUM ,  A1.SERVICE_DT ,  A1.ACTL_REFILL_NUM ,  A1.CLM_DSPSN_CD ,  A1.INVC_RSBMT_CD , A1.TP_TOTAL_DUE_AMT ,  
A1.INTL_BILG_MTHD_CD , A1.CARR_EOB_1_CD ,  T5.CARR_EOB_CD_DESC ,  A1.NTNL_DRUG_CD ,  A1.PTNT_FRST_NM ,  A1.PTNT_MDDL_INTL ,  A1.PTNT_LST_NM ,  A1.PTNT_BIRTH_DT ,
A1.CRDHLDR_ID_NUM   
FROM
(SELECT DISTINCT
    T1.CARR_NUM ,  T1.CST_CTR_NUM ,  T1.CLM_CLOSE_STS_CD ,  T1.CLM_RJCT_STS_CD ,   T1.CLM_VOID_STS_CD ,  T3.PMT_MTCH_DT ,   
    T3.ASC_TRANS_TYP_CD ,  T2.DRUG_DESC ,  T4.BATCH_NUM , T1.DIV_NUM ,  T1.INVC_NUM ,  T1 . SERVICE_DT ,  T1.ACTL_REFILL_NUM ,                                         
    T1.CLM_DSPSN_CD ,  T1.INVC_RSBMT_CD ,T1.TP_TOTAL_DUE_AMT ,  T1.INTL_BILG_MTHD_CD ,T3.CARR_EOB_1_CD ,T1.NTNL_DRUG_CD ,  T2.PTNT_FRST_NM ,         T2.PTNT_MDDL_INTL , T2.PTNT_LST_NM ,  T2.PTNT_BIRTH_DT ,  T2.CRDHLDR_ID_NUM 
   FROM  
                PDRD2LO.VINVC_CLM T1                             
               , PDRD2LO.VPMNT_DTL T3                             
               , PDRD2LO.VINVC_CLM_2 T2                           
               , PDRD2LO.VINVC_ITM_PHARM  T4                     
                    WHERE  
  T1.CLM_CLOSE_STS_CD ='OP'                     
              AND  T1.CLM_RJCT_STS_CD ='RJ'                       
              AND  T1.CLM_VOID_STS_CD ='NV'                       
              AND  T3.ASC_TRANS_TYP_CD ='40'                      
              AND  T1.CARR_NUM = T3.CARR_NUM                      
           AND   T1.CST_CTR_NUM = T3.CST_CTR_NUM                  
           AND   T1.DIV_NUM = T3.DIV_NUM                          
           AND   T1.INVC_NUM = T3.INVC_NUM                        
           AND   T1.SERVICE_DT = T3.SERVICE_DT                    
           AND   T1.CLM_CTRL_NUM = T3.CLM_CTRL_NUM                
           AND   T1.ACTL_REFILL_NUM = T3.ACTL_REFILL_NUM          
           AND   T1.INVC_ITM_NUM = T3.INVC_ITM_NUM                
           AND   T1.REFILL_TRANS_NUM = T3.REFILL_TRANS_NUM        
           AND   T1.CARR_NUM = T2.CARR_NUM                        
           AND   T1.CST_CTR_NUM = T2.CST_CTR_NUM                  
           AND   T1.DIV_NUM = T2.DIV_NUM                          
           AND   T1.INVC_NUM = T2.INVC_NUM                        
           AND   T1.SERVICE_DT = T2.SERVICE_DT                  
           AND   T1.ACTL_REFILL_NUM = T2.ACTL_REFILL_NUM        
           AND   T1.CLM_CTRL_NUM = T2.CLM_CTRL_NUM              
           AND   T1.INVC_ITM_NUM = T2.INVC_ITM_NUM              
           AND   T1.REFILL_TRANS_NUM = T2.REFILL_TRANS_NUM      
           AND   T1.INVC_CTRL_NUM = T4.INVC_CTRL_NUM) A1        
LEFT OUTER JOIN  PDRD2LO.VCARR_EOB T5                
            ON    A1.CARR_EOB_1_CD = T5.CARR_EOB_CD             
            AND   A1.CARR_NUM = T5.CARR_NUM                     
            AND   A1.DIV_NUM = T5.DIV_NUM        
Thanks!

Hi Zilla Eh ,
Thanks for the reply.
The another reporting tool name is impromptu and it takes 2-3 min , where in Crystal report is taking around 40 min. Please let me know if you any other questions.
Regards
Ravi

Similar Messages

  • Crystal Report Takes very long time to display results

    Dear All,
    I am new to Crystal reports. We have installed Crystal report developer 2008 SP3 on Windows7 Service pack 1. We are creating reports from SAP ECC 6 EHP 4 Ready in Crystal Reports. The problem we are facing is that every report which we have developed in Crtystal reports is taking around 1 to 2 hours to display results. the reports are pertaining to only one day or one month data. we have also switch off "Verify On First Refresh", "Verify Stored Procedures On First Refresh", "Verify Database" and  we are also not saving data on report level as per the threads which are already posted in the forum pertaining to our problem.
    You are requested to kindly guide me how I can improve the performance of our crystal reports.
    Regards,
    Danish.

    You select expert formula says enough. It would appear that little or no data filtering is being carried out on the database server. Thus all records will be returned to Crystal and then filtered locally.
    You need to try and incorporate the logic of formula  {@Form_PeriodCvn} into the select expert. Or build a view/stored procedure which returns a value compatible with your filtering requirements.
    What is contents of formula  {@Form_PeriodCvn}
    Ian

  • BI publisher report is very slow

    I have OBIEE 11g installed Running BI publisher report is very slow. After doing a research seems like we have increase the JAVA heap size.
    Can anyone help me how to increase this value. I do not see OC4j.cmd file in my BI install folder.
    Thanks in advance

    Did you try to change the setDomainEnv.cmd file in $MW_HOME/user_projects/domains/<Domain>/bin as follows:
    set XMS_JROCKIT_64BIT=1024 --> to the new initial heap size
    set XMX_JROCKIT_64BIT=2048 --> to the new maximum heap size
    If this is helpful, please mark as correct or helpful

  • Crystal Reports Running Extremly Slow

    Hi All,
    I'm new here and have been using Crystal reports XI Release 2 for a little while.
    However this has always run slow for me. The problem is not running the report to get results from the server the problem is editing the report. Amending text boxes drilling down etc.
    My computer specs are 2.8Ghz P4 and with 1gb of ram.
    Is there anyway of me speeding this up as I'm out of ideas
    Thanks a lot for your time

    Hi James
    The performance of a report is related to:
    External factors:
    1. The amount of time the database server takes to process the SQL query.
    ( Crystal Reports send the SQL query to the database, the database process it, and returns the data set to Crystal Reports. )
    2. Network traffics.
    3. Local computer processor speed.
        ( When Crystal Reports receives the data set, it generates a temp file to further filter the data when necessary, as well as to group, sort, process formulas, ... )
    4. The number of records returned
        ( If a SQL query returns a large number of records, it will take longer to format and display than if was returning a smaller data set.)
    Report design:
    1. Where is the Record Selection evaluated?
        Ensure your Record Selection Formula can be translated in SQL, so the data can be filter down on the server, otherwise the filtering will be done in a temp file on the local machine which will be much slower.
        They have many functions that cannot be translated in SQL because they may not have a standard SQL for it.
        For example, control structure like IF THEN ELSE cannot be translated into SQL. It will always be evaluated
        in Crystal Reports. But if you use an IF THEN ELSE on a parameter, it will convert the result of the condition to
        SQL, but as soon as uses database fileds in the conditions it will not be translated in SQL.
    2. How many subreports the report contains and in section section they are located.
         Minimise the number of subreports used, or avoid using subreports if possible because
         subreports are reports within a report, and if you have a subreport in a details section, and the report returns 100
         records, the subreport will be evaluated 100 times, so it will query the database 100 times. It is often the biggest
         factor why a report takes a long time to preview.
    3. How many records will be returned to the report.
        Large number of records will slow down the preview of the reports. Ensure you only returns the necessary data on the report, by creating a Record Selection Formula, or basing your report off a Stored Procedure, or a Command Object that only returns the desired data set.
    4. Do you use the special field "Page N of M", or "TotalPageCount"
        When the special field "Page N of M" or "TotalPageCount" is used on a report, it will have to generate each page
        of the report before it displays the first page, therfore it will take more time to display the first page of the report.
    If you want to improve the speed of a report, remove the special field "Page N of M" or "Total Page Count" or formula that uses the function "TotalPageCount". If those aren't use when you view a report it only format the page requested. It won't format the whole report.
    5. Link tables on indexed fields whenever possible.
    6. Remove unused tables, unused formulas, unused running totals from the report.
    7. Suppress unnecessary sections.
    8. For summaries, use conditional formulas instead of running totals when possible.
    9. Whenever possible, limit records through selection, not suppression.
    10. Use SQL expressions to convert fields to be used in record selection instead of using formula functions.
        For example, if you need to concatenate 2 fields together, instead of doing it in a formula, you can create a SQL Expression Field. It will concatenate the fields on the database server, instead of doing in Crystal Reports.
    SQL Expression Fields are added to the SELECT clause of the SQL Query send to the database.
    11. Using one command as the datasource can be faster if you returns only the desired data set. It can be faster if the SQL query written only return the desired data.
    12. Perform grouping on server
        This is only relevant if you only need to return the summary to your report but not the details. It will be faster as less data will be returned to the reports.
    Regards
    Girish Bhosale

  • Hi from the last two days my iphone have very slow to open the apps and very slow when i check the notification window , it taking too much time to open when i tap to down . help me to resolve the issue.

    Hi,  from the last two days my iphone( iphone 4 with ios 5) have very slow to open the apps and very slow when i check the notification window , it taking too much time to open when i tap to down . help me to resolve the issue.

    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore...
    iPhone Reset
    http://support.apple.com/kb/ht1430
    Try this First... You will Not Lose Any Data...
    Turn the Phone Off...
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear and then Disappear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...
    Turn the Phone On...
    If that does not help... See Here:
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414

  • I get constant buffering very slow downloads and the pinwheel.  is there a keystroke remedy for this??

    i get constant buffering very slow downloads and the pinwheel.  is there a keystroke remedy for this??

    No magical keystroke remedy. The causes for this can be complicated.
    http://www.thexlab.com/faqs/sbbod.html
    Also check the health of the drive with the free demo of SMART Utiltiy.
    http://www.volitans-software.com/smart_utility.php
    Only happening while on the Internet or all over the place? What's your Internet speed?
    http://www.speedtest.net/

  • Recently bought a samsung NX30 camera which came with lightroom 5, after several hours of googling i got it setup properly with the correct camera raw to be able to access my raw images. I found my old laptop was very slow when processing the hundreds of

    recently bought a samsung NX30 camera which came with lightroom 5, after several hours of googling i got it setup properly with the correct camera raw to be able to access my raw images. I found my old laptop was very slow when processing the hundreds of images I usually take on a weekly basis.  I bought a new faster laptop but when I looked for the cd with the software and serial I could not find it in the Xmas clutter.  I downloaded a trial version of lightroom and got it working on my new laptop. Is there a way to access the serial number from my previously installed version and insert it into the trail version to make it work for me?
    Myron

    Mea culpa
    While i registered all my cs2 thru 6 versions and my lightroom 2 thru 4 versions and recorded the serials and saved the adobe registration emails.  Since this came as a freebee with the camera i neglected this vital step.  I have the instslled version on my old laptop but want to install it on my new one.  Thanks to Jim Hess I got the serial so all is well in my world and I will register it with ADOBE
    Myron

  • Why in Mac Os Lion is very slow to clean the "basket"

    why in Mac Os Lion is very slow to clean the "basket"

    Check in Finder > Preferences > Advanced tab > uncheck "Empty Trash securely".
    Regards,
    Captfred

  • My Jetpack 5510L says that its connected to 4G but its performing very slow, I removed the sim card and did a reset of the device. Any other suggestions?

    My Jetpack 5510L says that its connected to 4G but its performing very slow, I removed the sim card and did a reset of the device. Any other suggestions?

    I don't know who you would contact at Verizon to verify this, but I suspect you are in the same situation as me.  My unlimited Jetpack is now being throttled to a basically useless speed of .10Mbps.  Sometimes as low as .04Mbps.  Turns out this is done purposely as they are evidently eliminating unlimited.  They're doing this now even though accounts still display on the my device page as unlimited.  They have given no warning, no explanation and started it in the middle of a billing cycle.  At least for me.  Be prepared to pay about double for 20GB with I think and $8 per gig overage cost.  With the 5GB plan it appears they just throttle down to an unusable speed.  Currently considering saying goodbye to Verizon myself.  Even with some need to change plans and eliminate unlimited this isn't the way to treat customers during the change.

  • HT1338 my computer it's very slow when surfing the internet?

    my computer it's very slow when surfing the internet

    Hello again
    As suggested I checked all CPU data in the Activity Monitor folder and could not see anything running that appeared to be draining CPU space or competing with other applications.  The following are the results from the Activity Monitor data:
    CPU:  %User - 0.37, %System - 0.62, %Idle - 99.12
    System Memory:  Free - 4.90GB, Wired - 1.15GB, Active - 1.48GB, Inactive - 468.1MB, Used - 3.09GB
    I also ran a test on my Mac using www.sppedtest.net, the results are as follows:
    Ping Speed - 1575ms, Download Speed - 0.15Mbps, Upload Speed - 0.04Mbps
    I am hoping this provides enough information to direct me on what next to check as my Mac internet performance is still poor.
    Thank you for your time

  • My iphone 3g is very slow when accessing the internet is there anyway i can improve this

    my iphone 3g is very slow when accessing the internet is there anyway i can improve this

    What have you done thus far to try and remedy your situation?  Have you taken the recommended basic troubleshooting steps outlined in the User Guide?

  • Very slow, zaberaet all the RAM! I have a Macbook pro retina 8gb it does not pull Очень медленно работает,заберает всю оперативную память! У меня Макбук про ретина 8 гб его не тянет

    Very slow, zaberaet all the RAM! I have a Macbook pro retina 8gb it does not pull
    Очень медленно работает,заберает всю оперативную память! У меня Макбук про ретина 8 гб его не тянет

    Agreed! This bug with the ringtone delay (№4.1) is really annoying

  • My MacBook Pro gets very slow while doing  work like watching movies and using net .. video gets lag very often

    My MacBook Pro gets very slow while doing  work like watching movies and using net .. video gets lag very often and while surffing on net it gets very slow ...

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    Boot into Recovery mode, launch Disk Utility, and run Repair Disk.
    Otherwise, take the steps below when you notice the problem.
    Step 1
    Launch the Activity Monitor 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. Click Utilities, then Activity Monitor in the icon grid.
    Select the CPU tab of the Activity Monitor window.
    Select All Processes from the menu in the toolbar, if not already selected.
    Click the heading of the % CPU column in the process table to sort the entries by CPU usage. You may have to click it twice to get the highest value at the top. What is it, and what is the process? Also post the values for % User, % System, and % Idle at the bottom of the window.
    Select the System Memory tab. What values are shown in the bottom part of the window for Page outs and Swap used?
    Next, select the Disk Activity tab. Post the approximate values shown for Reads in/sec and Writes out/sec (not Reads in and Writes out.)
    Step 2
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • I bought this very nice iMac. The first time I ever use a Apple product. Can someone please tell me where the delete key is on the keyboard. I cannot think for one moment that Apple did not provide for such a key. Please help.

    I bought this very nice iMac. The first time I ever use a Apple product. Can someone please tell me where the delete key is on the keyboard. I cannot think for one moment that Apple did not provide for such a key. Please help.

    The delete key does a backward delete because it is the natural way to delete while typing. May not be to you and the millions of youngsters who grew up with windows computers. When you are typing and want to delete that which you just typed you are already at the end and you delete back to where you want to re-type. When you go back to a document and want to delete a selection, you have to go to the end of the selection instead of the beginning. it's just the way its always been done on macs. it takes some getting use to.
    If you select text to be deleted with your mouse then the delete key deletes the selected text. same for either delete key method.
    It is not convenient when you tab to fields in a form. That why fn-delete does a forward delete.
    Macs have a couple of keyboards. The small "wireless keyboard" only has the (backward) delete (fn-delete forward). The larger "Apple Keyboard with Numeric Keypad" has both a Delete (backwards) key beside the = abd it has the "delete >" key in the groups with fn, home, end, Pg up and Pg dn. This keyboard is best for users who have switched from windows or are familiar with the windows forward delete.

Maybe you are looking for

  • Sorting of nodes in a treeTable

    hi, i got a problem like that how to make sorting in JtreeTable model.the problem is i am passing i am constructin the JtreeTable model by passing DefaultMutableTreeNode object.which contains Nodename and value.I need to sort only by name. for exampl

  • ICal syncing issues

    Hi - can anyone help me.... I have a Macbook Pro at home, an iMac at my office, and an iPhone in my pocket. I cannot, for the life of me, get the calendars to sync properly. On my laptop I have appointments that do not appear on my iPhone (very frust

  • Too much mail from Apple Discussions

    This has been a busy day for me--too busy. I must have pushed the wrong button, because I'm now sent more than I need or want. All I want to be informed of are E-messages pertaining to my postings. How do I get back there?

  • Can't change color of Tab Canvas tabs

    I'm trying to modify a the background color of a tab canvas, and the color of the canvas itself changes as specified, but I have been unable to change the color of the tabs themselves. Am I missing something here, or is there a bug, or what? Thanks f

  • Call establish alert - missing feature

    Hi, I'm using 6300 and wish to hav a new, basic and simple but imp feature for Nokia phones. not sure if this is already available in other Nokia models. You would agree that there is a time delay (min 10-20 seconds) from the time the caller hit the