Report Takes Too Long Time

Hi!
I am in troubble
following is the query
SELECT inv_no, inv_name, inv_desc, i.cat_id, cat_name, i.sub_cat_id,
sub_cat_name, asset_cost, del_date, i.bl_id, gen_desc bl_desc, p.prvcode, prvdesc, cur_loc,
pldesc, i.pmempno, pmname, i.empid, empname
FROM inv_reg i,
cat_reg c,
sub_cat_reg s,
gen_desc_reg g,
ploc p,
province r,
pmaster m,
iemp_reg e
WHERE i.sub_cat_id = s.sub_cat_id
AND i.cat_id = s.cat_id
AND s.cat_id = c.cat_id
AND i.bl_id = g.gen_id
AND i.cur_loc = p.plcode
AND p.prvcode = r.prvcode
AND i.pmempno = m.pmempno(+)
AND i.empid = e.empid(+)
&wc
order by prvdesc, pldesc, cat_name, sub_cat_name, inv_no
and this query returns 32000 records
when i run this query on reports 10g
then it takes 10 to 20 minuts to generate report
how can i optimize it...?

Hi Waqas Attari
Pls study & try this ....
When your query takes too long ...
hope it helps....
Regards,
Abdetu...

Similar Messages

  • OPM process execution process parameters takes too long time to complete

    PROCESS_PARAMETERS are inserted every 15 min. using gme_api_pub packages. some times it takes too long time to complete the batch ,ie completion of request. it takes about 5-6 hrs long time ,in other time s it takes only 15-20 mins.This happens at regular interval...if anybody can guide me I will be thankful to him/her..
    thanks in advance.
    regds,
    Shailesh

    Generally the slowest part of the process is in the extraction itself...
    Check in your source system and see how long the processes are taking, if there are delays, locks or dumps in the database... If your source is R/3 or ECC transactions like SM37, SM21, ST22 can help monitor this activity...
    Consider running less processes in parallel if you have too many and see some delays in jobs... Also indexing some of the tables in the source system to expedite the extraction, make sure there are no heavy processes or interfaces running in the source system at the same time you're trying to load... Check with your Basis guys for activity peaks and plan accordingly...
    In BW also check in your SM21 for database errors or delays...
    Just some ideas...

  • Displaying PathGeometry into canvas take too long time

    Hi every one,
    I am working on spatial data with an application WPF and I would like to draw a map from data queries.
    I got my data and I am able to draw them on a canvas with scroll bar and zoom.
    My problem is when I want to zoom or scroll the canvas take a long time before draw the map.
    The big problem is there :
    Dim poly As New Polygon
    poly.Stroke = Brushes.Red
    poly.Fill = Brushes.Orange
    poly.StrokeThickness = 5
    Dim colPoint As New PointCollection
    For i = 1 To geo.STNumPoints
    Dim ls As New LineSegment()
    colPoint.Add(New Point(geo.STPointN(i).STX.Value - extentA, geo.STPointN(i).STY.Value - extentB))
    Next
    colPoint.Add(New Point(geo.STPointN(1).STX.Value - extentA, geo.STPointN(1).STY.Value - extentB))
    poly.Points = colPoint
    masterCanvas.Children.Add(poly)
    so the canvas is "masterCanvas" and i add each Polygon one by one. I would like if it is possible to gather all polygon into one "image" and then when it will refresh the canvas it will draw only one thing. 
    Regards.

    Hi,
    I found that you have posted it in the forum Acamar suggested.
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/e2d50b4e-0d76-4a3c-b229-521b648b54b3/displaying-pathgeometry-into-canvas-take-too-long-time?forum=wpf#e2d50b4e-0d76-4a3c-b229-521b648b54b3
    Please just focus on that thread, and you could mark if any reply which is helpful as answer.
    Thanks for your understanding.
    Regards.
    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.

  • I don't know why it takes too long time to sample flat file.

    I don't know why it takes too long time to sample flat file.
    OWB Client 10.1
    While importing a flat file of fixed width ,
    in the screen "Flat File Sample Wizard" shows the text box number of rows with default value 200.
    I want to extend this value to 700,000.
    But, it takes too long time (over 5 hours) to sample it.
    Do you know why it is happend? or How can i fix this problem?
    Thanks in Advance.
    Regards,
    JWS.

    Hello,
    Actually flat file sampling process’ goal is to capture the structure of the file. That’s why initially the sample size is set to 200 lines.
    The question is why you are trying to perform sampling by 700000 rows? Are you expecting some change in structure beyond this mark?
    If so, and you want to capture the fact that your source file is multi – typed, your better prepare small file for sampling outside the OWB.
    Sergey

  • Sending mail take too long time exchange 2011 in iphone4

    when i try to sending mail take too long time.
    stay long time in outbox folder.
    i'm using exchange 2011 in iphone4 with latest updates.

    Hi,
    This is a characteristic of some, but not all, ISPs, and not the SMTP itself. It involves DNS. See:
    http://discussions.apple.com/thread.jspa?messageID=10391853&#10391853
    Ernie

  • Drill Through reports takes too long

    Hi all,
    I need some suggestions/help with our drill through reports. We are using Hyperion 11.1.1.3 and the cube is ASO.
    We have drill through reports set up in Essbase studio for drilling down from Essbase to Oracle database. It takes too long (like 30 mins for fetching 1000 records) and the query is simple.
    What are the changes that we can do to bring down this time. Please advice.
    Thanks.

    Hi Glenn,
    We tried optimizing the drill through SQL query but actually when we run the directly in TOAD it takes *23 secs* but when we do drill through on the same intersection
    it took more than 25 mins. Following is our query structure :
    (SELECT *
    FROM "Table A" cp_594
    INNER JOIN "Table B" cp_595 ON (cp_594.key = cp_595.key)
    WHERE (Upper(cp_595.*"Dim1"*) in (select Upper(CHILD) from (SELECT * FROM DIM_TABLE_1 where CUBE = 'ALL') WHERE CONNECT_BY_ISLEAF = 1 START WITH PARENT = $$Dim1$$ CONNECT BY PRIOR CHILD = PARENT UNION ALL select Upper(CHILD) from DIM_TABLE_1 where CUBE = 'ALL' AND REPLACE('GL_'||CHILD, 'GL_IC_', 'IC_') = $$Dim1$$))
    And ----same for 5 more dimensions
    Can you suggest some improvement ? Please advice.
    Thanks

  • Discoverer report taking too long time to open.

    HI,
    Discovere reports are taking too long time to open. Please help to resolve this.
    Regards,
    Bhatia

    What is the Dicoverer and the Application release?
    Please refer to the following links (For both Discoverer 4i and 10g). Please note that some Discoverer 4i notes also apply to Discoverer 10g.
    Note: 362851.1 - Guidelines to setup the JVM in Apps Ebusiness Suite 11i and R12
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=362851.1
    Note: 68100.1 - Discoverer Performance When Running On Oracle Applications
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=68100.1
    Note: 465234.1 - Recommended Client Java Plug-in (JVM/JRE) For Discoverer Plus 10g (10.1.2)
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=465234.1
    Note: 329674.1 - Slow Performance When Opening Plus Workbooks from Oracle 11.5.10 Applications Home Page
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=329674.1
    Note: 190326.1 - Ideas for Improving Discoverer 4i Performance in an Applications 11i Environment
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=190326.1
    Note: 331435.1 - Slow Perfomance Using Disco 4.1 Admin/Desktop in Oracle Applications Mode EUL
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=331435.1
    Note: 217669.1 - Refreshing Folders and opening workbooks is slow in Apps 11i environment
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=217669.1

  • This report takes a long time

    Hello:
    I have this report and to run it takes a long time, how can I optimize it?
    thank you very much.
    ======= THIS IS MY REPORTS =======
    { NAMEWIDTH 15 }
    { WIDTH 15 }
    { SUPFEED }
    <SUPSHARE
    {DECIMAL 2}
    { NOINDENTGEN }
    { SUPHEADING }
    {ROWREPEAT}
    <SPARSE
    { SUPBRACKETS }
    <COLUMN (Accounts,Scenarios)
    "Mov_Ppto"
    Real
    &Esc_Rep
    <PAGE("Time Periods", Years, Moneda, Periodicidad, Producto, Versions)
    Producto
    &Mes_Rep
    &Year_Rep
    Moneda
    Mensual
    Final
    <RESTRICT(@DATACOL(1) = #Missing OR @DATACOL(2) = #Missing)
    <ROW (Cliente, Ejecutivos,"Jefe de Grupo",Entities)
    <LINK (<LEV("Cliente",0) AND <DESCENDANTS("CLIENTES BE"))
    <LINK (<GEN("Ejecutivos",3))
    <LINK (<GEN("Jefe de Grupo",3))
    <LINK (<GEN("Entities",5) AND NOT <DESCENDANTS(U4728))
    ====== THIS IS THE INFORMATION OF DATABASE ========
    Name : Plan1
    Application Name : BEMP_DES
    Database Type : NORMAL
    Status : Loaded
    Elapsed Db Time : 00:01:07:41
    Users Connected : 2
    Blocks Locked : 0
    Dimensions : 12
    Data Status : Data has not been modified
    since last calculation.
    Data File Cache Size Setting : 0
    Current Data File Cache Size : 0
    Data Cache Size Setting : 268393440
    Current Data Cache Size : 2086560
    Index Cache Size Setting : 307200000
    Current Index Cache Size : 307200000
    Index Page Size Setting : 8192
    Current Index Page Size : 8192
    Cache Memory Locking : Disabled
    Database State : Read-write
    Data Compression on Disk : Yes
    Data Compression Type : BitMap Compression
    Retrieval Buffer Size (in K) : 90
    Retrieval Sort Buffer Size (in K) : 90
    Isolation Level : Uncommitted Access
    Pre Image Access : No
    Time Out : Never
    Number of blocks modified before internal commit : 3000
    Number of rows to data load before internal commit : 0
    Number of disk volume definitions : 1
    1) Vol: f, Size: Unlimited, File Type: 3, Size: 2097152K
    Currency Country Dimension Member : Entities
    Currency Time Dimension Member : Time Periods
    Currency Category Dimension Member : Accounts
    Currency Type Dimension Member :
    Currency Partition Member :
    Request Info
    Request Type : Data Load
    User Name : admin
    Start Time : Fri Apr 18 17:45:05 2008
    End Time : Fri Apr 18 17:46:05 2008
    Request Type : Customized Calculation
    User Name : admin
    Start Time : Tue Apr 29 18:32:05 2008
    End Time : Wed Apr 30 04:14:37 2008
    Request Type : Outline Update
    User Name : admin
    Start Time : Sun Apr 06 16:24:58 2008
    End Time : Sun Apr 06 17:50:46 2008
    Description:
    Allow Database to Start : Yes
    Start Database when Application Starts : Yes
    Access Level : None
    Data File Cache Size : 33554432
    Data Cache Size : 268435456
    Aggregate Missing Values : No
    Perform two pass calc when [CALC ALL;] : Yes
    Create blocks on equation : Yes
    Currency DB Name : N/A
    Currency Conversion Type Member : N/A
    Currency Conversion Type : N/A
    Index Cache Size : 307200000
    Index Page Size : 8192
    Cache Memory Locking : Disabled
    Data Compression on Disk : Yes
    Data Compression Type : BitMap Compression
    Retrieval Buffer Size (in K) : 90
    Retrieval Sort Buffer Size (in K) : 90
    Isolation Level : Uncommitted Access
    Pre Image Access : Yes
    Time Out after : 20 sec.
    Number of blocks modified before internal commit : 3000
    Number of rows to data load before internal commit : 0
    Number of disk volume definitions : 1
    1) Vol: f, Size: Unlimited, File Type: 3, Size: 2097152K
    I/O Access Mode (pending) : Buffered
    I/O Access Mode (in use) : Buffered
    Direct I/O Type (in use) : N/A

    Hi
    Hope you have resolved this already, otherwise, generating cost collectors would mean you are allowing cots to be posted into RE-FX using Settlement units. If there are no costs to be posted with an SU, then you do not need to run RECSSS.
    Regards
    MK

  • Time_out Dump on this query take too long time

    hi experts,
    in my report a query taking too long time
    pl. provide performance tips or suggestions
    select mkpf~mblnr  mkpf~mjahr  mkpf~usnam  mkpf~vgart    
           mkpf~xabln  mkpf~xblnr  mkpf~zshift mkpf~frbnr    
           mkpf~bktxt  mkpf~bldat  mkpf~budat  mkpf~cpudt    
           mkpf~cputm  mseg~anln1  mseg~anln2  mseg~aplzl    
           mseg~aufnr  mseg~aufpl  mseg~bpmng  mseg~bprme    
           mseg~bstme  mseg~bstmg  mseg~bukrs  mseg~bwart    
           mseg~bwtar  mseg~charg  mseg~dmbtr  mseg~ebeln    
           mseg~ebelp  mseg~erfme  mseg~erfmg  mseg~exbwr    
           mseg~exvkw  mseg~grund  mseg~kdauf  mseg~kdein    
           mseg~kdpos  mseg~kostl  mseg~kunnr  mseg~kzbew    
           mseg~kzvbr  mseg~kzzug  mseg~lgort  mseg~lifnr    
           mseg~matnr  mseg~meins  mseg~menge  mseg~lsmng    
           mseg~nplnr  mseg~ps_psp_pnr  mseg~rsnum  mseg~rspos
           mseg~shkzg  mseg~sobkz  mseg~vkwrt  mseg~waers    
           mseg~werks  mseg~xauto  mseg~zeile  mseg~SGTXT    
        into table itab                                      
           from mkpf as mkpf                                 
            inner join mseg as mseg                          
                    on mkpf~MBLNR = mseg~mblnr               
                   and mkpf~mjahr = mseg~mjahr

    no the original query is, i use where clouse with conditions.
    select mkpf~mblnr  mkpf~mjahr  mkpf~usnam  mkpf~vgart
           mkpf~xabln  mkpf~xblnr  mkpf~zshift mkpf~frbnr
           mkpf~bktxt  mkpf~bldat  mkpf~budat  mkpf~cpudt
           mkpf~cputm  mseg~anln1  mseg~anln2  mseg~aplzl
           mseg~aufnr  mseg~aufpl  mseg~bpmng  mseg~bprme
           mseg~bstme  mseg~bstmg  mseg~bukrs  mseg~bwart
           mseg~bwtar  mseg~charg  mseg~dmbtr  mseg~ebeln
           mseg~ebelp  mseg~erfme  mseg~erfmg  mseg~exbwr
           mseg~exvkw  mseg~grund  mseg~kdauf  mseg~kdein
           mseg~kdpos  mseg~kostl  mseg~kunnr  mseg~kzbew
           mseg~kzvbr  mseg~kzzug  mseg~lgort  mseg~lifnr
           mseg~matnr  mseg~meins  mseg~menge  mseg~lsmng
           mseg~nplnr  mseg~ps_psp_pnr  mseg~rsnum  mseg~rspos
           mseg~shkzg  mseg~sobkz  mseg~vkwrt  mseg~waers
           mseg~werks  mseg~xauto  mseg~zeile  mseg~SGTXT
        into table itab
           from mkpf as mkpf
            inner join mseg as mseg
                    on mkpf~MBLNR = mseg~mblnr
                   and mkpf~mjahr = mseg~mjahr
        WHERE mkpf~budat IN budat
          AND mkpf~usnam IN usnam
          AND mkpf~vgart IN vgart
          AND mkpf~xblnr IN xblnr
          AND mkpf~zshift IN p_shift
          AND mseg~bwart IN bwart
          AND mseg~matnr IN matnr
          AND mseg~werks IN werks
          AND mseg~lgort IN lgort
          AND mseg~charg IN charg
          AND mseg~sobkz IN sobkz
          AND mseg~lifnr IN lifnr
          AND mseg~kunnr IN kunnr.

  • Report take a long time in table TST03

    Hi,
    Our developpers have done a job to create a spool order to file. Among others, this job run the SAPLSPOX, and SAPLSPOC reports, but  they takes a long time when they read or insert in table TST03.
    The spool order has about 40.000 or 50.000 pages and the job can last 5.000 or 6.000 seconds. Is it normal?. If not what can I do?.
    Regards.

    Do you clean you old spools regularly?
    Note 130978 - RSPO1041 - Replacement for RSPO0041
    Markus

  • Going to the LastPage of a report takes too long

    <p>Hi,</p><p>Using Web ReportViewer. Pressing the LastPage button in the browser&#39;s window takes LONG time before the last page appears (and almost 100% CPU), as the CR control apparently generates the complete document internally, before showing its last page. For a few hundreds pages long report the time can easily be 20+ minutes.</p><p>No SubReports, no fancy formulas etc. IIS running on a powerful machine with plenty of grant. Single application, single user.</p><p>Can anybody suggest a way to optimise/change the behaviour?</p><p>Much appreciated.</p>

    This is a known issue with Crystal. The more work that your report does the worse it is. The only way to move to the last page is for crystal to "virtually produce" every page.
    Some things that you can to to speed this up.
    1. Do not have "Page n of x" as this slows down the production of the first page.
    2. Many reports will suppress the detail line only showing the Group totals this increases the number of records that Crystal has to work with. If I am just showing summary values I use a stored proceedure to do the aggregation.
    3.Use a stored proceedure to do all of the formula work and use Crystal only to paint the data. I often play the game of how few formulas I can have in the report. I look at each formula and see if that work can be done in the stored procedure.
    4. If the user is just viewing a pre run report as opposed to having the user specificly run the report have the report exported to .pdf and just post the PDF. By the way with R2 (But not if not R2). You can export the group tree to the PDF.
    5. One last thing pagination likes memory I have 2gb on my machine (a workstation) if you are running on a server make sure that memory is available to Crystal.

  • Using Site Feed webpart on site -- opening site takes too long time to open

    Hello,
    We are using the site feed web part on our team sites for sharing pictures, messages etc. When using the site feed web part on the main page on the team site, it tooks a long time to open the site. When we remove the site feed web part from the page, the
    page loads quickly.
    We have a separate web application for the the team sites and the Personal (My Sites). I know a load information is loaded from the SharePoint user profile.
    Anyone this experience with the site feed web part? There's no configuration in this web part to configure for example caching o.i.d.
    Anything to do with distributed cache time-outs?
    I hope to hear something from you.

    Hi  ,
    For your issue , you can enable Developer Dashboard for SharePoint 2013 with PowerShell.
    Developer Dashboard is performance statistics for a request are available in the browser window. . When the Developer Dashboard is enabled in On mode, the Developer Dashboard icon will always be displayed
    at the top right corner. With Developer Dashboard, you can find out where the time was spent at server side.
    For enabling developer dashboard in SharePoint 2013 , you can refer to the blog:
    http://ricardoramirezblog.wordpress.com/2013/02/23/enable-developer-dashboard-in-sharepoint-2013-using-powershell/
    Here is a detail blog about using developer dashboard :
    http://www.sharepoint-journey.com/developer-dashboard-in-sharepoint-2013.html
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • File Path browse take too long time

    Hi all,
    I am new one and I just start  learning and implementing labview program. Now I am develping data convertion program. My program purpose is 
    (1) reading data from input text file
    (2) do data calculation and convertion as the required format.
    (3) formatted data write to text file or Excel file.
    (a) I use' file path  ' from control palette. When I click on " browse folder" icon to choose the path of my input file or output file,it took too long to get there. I already tested and tested again . but I can't find the solution.
     (b) when I write calculated data to text file or excel, for a big amount of data, text file is ok. excel sheet show error if data is over 65536 rows. I want to know how to create and add data to new excel sheet if current sheet is full
    So, I attach my project and sample input text file. I really need help from you all.  Thanks
    Attachments:
    01_02_2010_Extract_Data1.vi ‏85 KB
    test3.txt ‏7 KB

    Your code needs a good cleanup.  I suspect the reason that your File Path browse button doesn't respond quickly is because you don't have any wait inside your while loop.  That means the loop is running as fast as it possibly can, even though you don't even have a file open to process, which keeps the processor busy and prevents it from doing anything else (like opening the file selection dialog).  Try adding a 100ms wait somewhere in the big while loop.
    It's good practice to keep your LabVIEW diagrams smaller than the size of your screen.  You have a lot of bends in your wires, which makes them hard to follow.  You don't need an enormous sequence structure outside of everything since it only has one frame, and in fact you probably don't need any sequence structures at all.  In your for loop, use a shift register instead of reading from and writing to a local variable.   Use the "Spreadsheet String to Array" function to separate your tab-delimited data; it will be much easier than the way you're doing it.
    The 65536 row limit is in Excel.  The easiest thing for you to do is to keep track of the number of rows you have written to the file, and whenever it reaches 65536, create a new file.  Since you're writing to a text file there's no way to create a new sheet.  To create a real Excel workbook with multiple sheets, you will need to look at the examples of how to use ActiveX to control Excel.

  • Report takes too long to display

    Post Author: NGCMatt
    CA Forum: Publishing
    I am using Crystal XI, Vsual Studio 2003, SQL Server 2000 and Windows Server 2003. I create a report in Crystal and then add it to my Visual Studio 2003 project. Then using the CrystalReportViewer in Visual Studio 2003 I create a webpage then stick in the CrystalReportViewer on the page then add all the properties and other code in the code behind page. Like a close button on the page so when the user clicks on the close button the crystal report page closes and goes back to the home page.
    When I run the report from my developement machine the report displays in less than 5 seconds and when the close button is clicked the crystal reports page closer in less than 2 seconds and returns to the home page.
    But after I deploy by web app to the server and try to run a report it ALWAYS takes longer than 40 seconds to display and even longer to close. This is driving my customers crazy.
    What am I missing??????
    Thanks for the help.
    Matt

    Is it possible the java memory is not high enough on the service (assuming Windows). Try to Set the JVMOption to -Xmx1024m (default is 512m) on the "HyS9WebAnalysis" registry entry under HKEY_LOCAL_MACHINE\SOFTWARE\Hyperion Solutions\WebAnalysis

  • KE30 Report:-Takes very long time and ends in a Run time error

    Hi Expert,
    Since last three  week (after up gradation of system) we are not able to run any of KE30 reports in Production system and its end with Run Time Error. Even in development system where data is minimum it is taking 45 Minutes to give output where it should take maximum 4-5 Minute. Before up gradation it was working fine
    What could be the reason for this and how can i resolve this.
    Thanks in Advance
    Bipin Tiwari

    HI Sridhara
    Thanks for quick response. After Up Gradation we ran SGEN T-code but no impact on system performance. There after we build new summarisation level in KEDVP (system proposed) and activated it but still it is taking 30-.35 minute to generate the report in Development system which should normaly take 1-2 Munite.
    Can you suggest what else we can do or is there any better way for build summarisation level  in given scenario.
    Best Regards
    Bipin Tiwari

Maybe you are looking for