How to improve response time of report?
I have a Catalogue type report which retrieves data and prints. That is not much calculations involved.
It uses six tables.
The data model is such that I have a separate query for each table and then all
these tables are liked thru link tool.
Each table contains 3000 to 9000 rows but one table contains 35000 rows.
The problem is that the report is taking too much time - about 3-1/2 hours while
expectation is that it should take 20 to 40 minutes max.
What can I do to reduce the time it takes to produce report.
I mean should I modify data model to make a single query with equi-join?
A)Specially I want to know what is traffic between client and server when
1) we have multiple quieries and LINK tool is used
2) Single query and equi-join is used
B)Which activity is taking most of time ?
1) Retrieving data from server to client
2) Sorting according to groups (at client) and formating data and saving in file
Pl. guide.
Every body is requested to contribute as per his/her experience and knowledge.
M Tariq
I tried several times to open/print The white paper on following address but always got an error something like 'There is an error on this document (14)':
http://otn.oracle.com/products/reports/pdf/275641.pdf
Can U please help to resolve this problem so that I can open this doc in Acrobat PDF viewer. I need this paper urgently as explained at the start of this question.
Tariq
Similar Messages
-
How to improve response time of database
We have 8.0.5 Oracle database with multiple users. that is running on NT. And several clients are accessing database trough application. The response time is really slow. How can I make access faster and where can I make my changes to take effect.
Thank you.I tried several times to open/print The white paper on following address but always got an error something like 'There is an error on this document (14)':
http://otn.oracle.com/products/reports/pdf/275641.pdf
Can U please help to resolve this problem so that I can open this doc in Acrobat PDF viewer. I need this paper urgently as explained at the start of this question.
Tariq -
How to improve response time of queries?
Although it looks that that this question relates to Reports but actually the problem is related to SQL.
I have a Catalogue type report which retrieves data and prints. That is not much calculations involved.
It uses six tables.
The data model is such that I have a separate query for each table and then all
these tables are liked thru link tool.
Each table contains 3000 to 9000 rows but one table contains 35000 rows.
The problem is that the report is taking too much time - about 3-1/2 hours while
expectation is that it should take 20 to 40 minutes max.
What can I do to reduce the time it takes to produce report.
I mean should I modify data model to make a single query with equi-join?
A)Specially I want to know what is traffic between client and server when
1) we have multiple quieries and LINK tool is used
2) Single query and equi-join is used
B)Which activity is taking most of time ?
1) Retrieving data from server to client
2) Sorting according to groups (at client) and formating data and saving in file
Pl. guide.
Every body is requested to contribute as per his/her experience and knowledge.
M TariqGenerally speaking, your server is faster than your PC (if it is not, then you have bigger problems than a slow query), let the server do as much of the work as possible, particularly things like sorting, and grouping. Any calculations that can be pushed off onto the server (e.g. aggregate functions, cola + colb etc.) should be.
A single query will always be faster than multiple queries. Let the server do the linking.
The more rows you return from the server to your PC, the more bytes the network and your PC have to deal with. Network traffic is "expensive", so get the result set as small as possible on the server before sending it back over the network. PC's generally have little RAM and slow disks compared to servers. Large datasets cause swapping on the PC, this is really expensive.
Unless you are running on a terribly underpowered server, I think even 30 - 40 minutes would be slow for the situation you describe. -
Any way to improve response time with iPhoto 8.1.2 using Mountain Lion ?
Any way to improve response time with iPhoto 8.1.2 using Mountain Lion ? Can you store photos on a separate hard drive and use a smaller file for openning iphoto?
How did you move your iPhoto library to the new system? the recommended way is Connect the two Macs together (network, firewire target mode, etc) or use an external hard drive formed Mac OS extended (journaled) and drag the iPhoto library intact as a single entity from the old Mac to the pictures folder of the new Mac - launch iPhoto on the new mac and it will open the library and convert it as needed and you will be ready move forward.
LN -
Average Response Time for Reports
Hi Gurus,
I am using OAS 10.1.2.0.2 with Business Intelligence and Forms Installation.
Previously I have never seen Average Response Time of Reports server greater than 10000(ms),
But It is increasing continously and now within 2-3 days it has increased upto 114668(ms)
CPU Usage (%) N/A
Memory Usage (MB) N/A
Average Response Time (ms) 114668
its Maximum queue size is 1000....
I am not able to find out why it is increasing in this manner.....
plz help..
ThanxHi,
Today it has been increased upto 170236 ...
Thanx,
Santosh -
How to enhance response time on select?
I'm using ibatis/mySql in my struts application and apparently the response time to receive data (select) is quite long.
I'm referring to a select statement to receive data from 5 diff tables (~6 column each). there are 500 objects (Cars) and it takes around 63 seconds (my computer has 2GB Ram).
can someone advise how to enhance the response time.
thanksyes, they all have primary keys and indexes.
Do you do the JOIN in the database or are yougetting a ResultSet and then iterating over it to
SELECT the rest? (This will kill you with network
traffic.)
yes I'm using the select with no join.
I'm using abator to auto-generate the sql statements
and therefore I loop on every car'd id and get my
releven info. so basically it's all select after
select and integrate them in the car object. That's the reason then: If your outer select returns N rows, you're doing N network roundtrips to get the rest of the data. It's a certain performance killer.
is there major diff between reading one by one oever
reading everything in one go? meaning right now i do
this:
get list of all car_idNetwork roundtrip #1
iterate through db with car_id and construct a CAR object...Which means one round trip per row. You're dead in the water here, no matter how you optimize the database.
add object to LinkedList move to the next car...Rewrite that query and bring all the data back in one network roundtrip. You'll notice an immediate improvement.
% -
Here is my current situation. I am running MARS application version 4.2.1 I have a test environment of 1 - 2821 Router with IPS module version 12.4T, 1 - 2621 Router with net flow running version 12.2, 1 - 2950 OS Switch and a stand alone MARS Server. When I run the scenario to test the response time (the time it takes MARS to notify me of the attack) it takes any where from 1/2 hour to and 1 hour before the alarm show up in the event Dash board is there a way to improve the response time? Secondly, I see the IPS signatures in the syslog but I do not see them on my MARS application when investigating an attack. If I run a query for real time I see everything but can't investigate the attack.
David,
A few questions so we can help with your troubleshooting. Please forgive me for beginning with some MARS 101 questions.
1. How long have you had this test environment set up? Netflow usually needs a few days to baseline your network, even in a test lab.
2. What sort of scenario are you using to test the response time?
3. Do these bugs apply to your situration?
Take a look at:
CSCsc50636, CSCsc50652
Issues: Backend IPS process runs at 99% CPU when pulling large IP Logs
The backend IPS process reaches 1GB in memory used when pulling IP Logs. The process names depending on the version on MARS that is running:
In version 4.2.1 and earlier, the process names are pnids50_srv and pnids40_srv.
Go to the command line on the Mars box and do a sysstatus to see what system resources a process on your Mars device is using.
Hope this helps. Let us know more details when you have the chance. -
How to calculate Response time in HH:MM:SS format ?
Hi,
How can we calculate reponse time in HH:MM:SS format?
I have tried this formula but doesnt really seems to be providing desired output
CAST (FLOOR (TIMESTAMPDIFF (SQL_TSI_HOUR, "Service Request"."Opened Date and Time" , "Service Request"."Closed Date and Time" ) /24) as CHAR) || ' Days, ' || CAST (FLOOR((TIMESTAMPDIFF (SQL_TSI_MINUTE, "Service Request"."Opened Date and Time" , "Service Request"."Closed Date and Time" ) - FLOOR (TIMESTAMPDIFF (SQL_TSI_HOUR, "Service Request"."Opened Date and Time" , "Service Request"."Closed Date and Time" ) /24) *1440)/60) as CHAR) || ' Hours, ' || CAST (TIMESTAMPDIFF(SQL_TSI_MINUTE, "Service Request"."Opened Date and Time" , "Service Request"."Closed Date and Time" ) - (FLOOR (TIMESTAMPDIFF (SQL_TSI_HOUR, "Service Request"."Opened Date and Time" , "Service Request"."Closed Date and Time" ) /24) *1440) - (FLOOR((TIMESTAMPDIFF (SQL_TSI_MINUTE, "Service Request"."Opened Date and Time" , "Service Request"."Closed Date and Time" ) - FLOOR (TIMESTAMPDIFF (SQL_TSI_HOUR, "Service Request"."Opened Date and Time" , "Service Request"."Closed Date and Time" ) /24) *1440)/60)*60) as CHAR) || ' Minutes'
Output for this formula :
Opened Time Closed Time Response Time
16/10/2008 08:50:00 21/10/2008 11:33:21 5 Days, 2 Hours, 43 Minutes
16/10/2008 08:57:00 24/10/2008 15:17:38 8 Days, 6 Hours, 21 Minutes
16/10/2008 09:55:00 27/11/2008 10:44:36 42 Days, 0 Hours, 50 Minutes
16/10/2008 10:13:00 21/10/2008 13:53:38 5 Days, 3 Hours, 41 Minutes
16/10/2008 11:18:00 20/10/2008 09:11:29 3 Days, 21 Hours, 53 Minutes
I just need time difference between Closed Time and Open time in HH:MM:SS format.
Regards
AhmedWITH m AS
SELECT [Minutes] = CAST(21.52 * 60 AS int)
SELECT CAST([Minutes] / 60 AS varchar) + ':' + RIGHT(100 + [Minutes] % 60, 2)
FROM m
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
How to reduce process time in report
Hi all..
Is there any technique to reduce process time in report on programmer side??
Plz help me...Hi
check this and ensure that your code is as per the stds
1) Dont use nested select statements
2) If possible use for all entries in addition
3) In the where addition make sure you give all the primary key
4) Use Index for the selection criteria.
5) You can also use inner joins
6) You can try to put the data from the first select statement into an Itab and then in order to select the data from the second table use for all entries in.
7) Use the runtime analysis SE30 and SQL Trace (ST05) to identify the performance and also to identify where the load is heavy, so that you can change the code accordingly
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5d0db4c9-0e01-0010-b68f-9b1408d5f234
ABAP performance depends upon various factors and in devicded in three parts:
1. Database
2. ABAP
3. System
Run Any program using SE30 (performance analys) to improve performance refer to tips and trics section of SE30, Always remember that ABAP perfirmance is improved when there is least load on Database.
u can get an interactive grap in SE30 regarding this with a file.
also if u find runtime of parts of codes then use :
Switch on RTA Dynamically within ABAP Code
*To turn runtim analysis on within ABAP code insert the following code
SET RUN TIME ANALYZER ON.
*To turn runtim analysis off within ABAP code insert the following code
SET RUN TIME ANALYZER OFF.
Always check the driver internal tables is not empty, while using FOR ALL ENTRIES
Avoid for all entries in JOINS
Try to avoid joins and use FOR ALL ENTRIES.
Try to restrict the joins to 1 level only ie only for tables
Avoid using Select *.
Avoid having multiple Selects from the same table in the same object.
Try to minimize the number of variables to save memory.
The sequence of fields in 'where clause' must be as per primary/secondary index ( if any)
Avoid creation of index as far as possible
Avoid operators like <>, > , < & like % in where clause conditions
Avoid select/select single statements in loops.
Try to use 'binary search' in READ internal table. Ensure table is sorted before using BINARY SEARCH.
Avoid using aggregate functions (SUM, MAX etc) in selects ( GROUP BY , HAVING,)
Avoid using ORDER BY in selects
Avoid Nested Selects
Avoid Nested Loops of Internal Tables
Try to use FIELD SYMBOLS.
Try to avoid into Corresponding Fields of
Avoid using Select Distinct, Use DELETE ADJACENT
Check the following Links
Re: performance tuning
Re: Performance tuning of program
http://www.sapgenie.com/abap/performance.htm
http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
check the below link
http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm
See the following link if it's any help:
http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
Check also http://service.sap.com/performance
and
books like
http://www.sap-press.com/product.cfm?account=&product=H951
http://www.sap-press.com/product.cfm?account=&product=H973
http://www.sap-img.com/abap/more-than-100-abap-interview-faqs.htm
http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp
Performance tuning for Data Selection Statement
http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm
Debugger
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm
http://www.cba.nau.edu/haney-j/CIS497/Assignments/Debugging.doc
http://help.sap.com/saphelp_erp2005/helpdata/en/b3/d322540c3beb4ba53795784eebb680/frameset.htm
Run Time Analyser
http://help.sap.com/saphelp_47x200/helpdata/en/c6/617cafe68c11d2b2ab080009b43351/content.htm
SQL trace
http://help.sap.com/saphelp_47x200/helpdata/en/d1/801f7c454211d189710000e8322d00/content.htm
CATT - Computer Aided Testing Too
http://help.sap.com/saphelp_47x200/helpdata/en/b3/410b37233f7c6fe10000009b38f936/frameset.htm
Test Workbench
http://help.sap.com/saphelp_47x200/helpdata/en/a8/157235d0fa8742e10000009b38f889/frameset.htm
Coverage Analyser
http://help.sap.com/saphelp_47x200/helpdata/en/c7/af9a79061a11d4b3d4080009b43351/content.htm
Runtime Monitor
http://help.sap.com/saphelp_47x200/helpdata/en/b5/fa121cc15911d5993d00508b6b8b11/content.htm
Memory Inspector
http://help.sap.com/saphelp_47x200/helpdata/en/a2/e5fc84cc87964cb2c29f584152d74e/content.htm
ECATT - Extended Computer Aided testing tool.
http://help.sap.com/saphelp_47x200/helpdata/en/20/e81c3b84e65e7be10000000a11402f/frameset.htm
Just refer to these links...
performance
Performance
Performance Guide
performance issues...
Performance Tuning
Performance issues
performance tuning
performance tuning
You can go to the transaction SE30 to have the runtime analysis of your program.Also try the transaction SCI , which is SAP Code Inspector.
1 Always check the driver internal tables is not empty, while using FOR ALL ENTRIES
2 Avoid for all entries in JOINS
3 Try to avoid joins and use FOR ALL ENTRIES.
4 Try to restrict the joins to 1 level only ie only for 2 tables
5 Avoid using Select *.
6 Avoid having multiple Selects from the same table in the same object.
7 Try to minimize the number of variables to save memory.
8 The sequence of fields in 'where clause' must be as per primary/secondary index ( if any)
9 Avoid creation of index as far as possible
10 Avoid operators like <>, > , < & like % in where clause conditions
11 Avoid select/select single statements in loops.
12 Try to use 'binary search' in READ internal table. Ensure table is sorted before using BINARY SEARCH.
13 Avoid using aggregate functions (SUM, MAX etc) in selects ( GROUP BY , HAVING,)
14 Avoid using ORDER BY in selects
15 Avoid Nested Selects
16 Avoid Nested Loops of Internal Tables
17 Try to use FIELD SYMBOLS.
18 Try to avoid into Corresponding Fields of
19 Avoid using Select Distinct, Use DELETE ADJACENT.
Regards
Anji -
How to print date/time in report page footer?
Hi
I have a report which users can print as PDF.
However, I like to display current date/time in report footer.
I can see the Page Footer in section but can't figure out how to print date/time there.
Thanks for help.hi movilogo
Please try this.
Create hidden item P1_DATE
Create On load process in page 1 and put this code
begin
:P1_DATE:=TO_CHAR(SYSDATE,'DD-MON-YYYY HH:MM:SS');
end;
Open your region in Page 1 put this code in Footer area
*&P1_DATE.*
Refresh your page.
you will get the output like this.
16-SEP-2009 11:09:17
thanks
Mark Wyatt -
How to improve query performance when reporting on ods object?
Hi,
Can anybody give me the answer, how to improve my query performance when reporting on ODS object?
Thanks in advance,
Ravi Alakuntla.Hi Ravi,
Check these links which may cater your requirement,
Re: performance issues of ODS
Which criteria to follow to pick InfoObj. as secondary index of ODS?
PDF on BW performance tuning,
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
Regards,
Mani. -
How to view response time for each execution in OEM 12c Cloud Control
Hi All,
I want to view response time of each execution for my SOA composite in OEM 12c Cloud Control. Can anyone tell me how can I achieve that?
Thanks in Advance!!You should open an SR and support can assist you with it. The only current case where that feature is known to not work is in the case where the Dehydration Store is running on RAC. Otherwise, it should be possible to get it to work. The main thing is that you need to have DB configuration properties (host, port, sid) that have a 3-way string match between the JDBC data source configuration in the WLS server, the JDBC properties you add to the Monitoring Properties of the SOA Infrastructure target, and the connect settings of the Database target in EM that matches to the dehydration DB.
If there isn't a match in all 3, the Dehydration Diagnostics page will not work. But again, to look into your specific setup, you should file an SR and work with support. -
How can increase response time:dialog
Dear all,
how can i change(increase/decrease) dialog workprocess response time?> how can i change(increase/decrease) dialog workprocess response time?
Can you please tell us exactly what you want to do?
Read
http://help.sap.com/saphelp_nw04/helpdata/en/21/2c8f38c7215428e10000009b38f8cf/frameset.htm
about what "Response time" is defined and then please rephrase your question.
Markus -
How to make response time of switch faster?
on 3750, when
1. execute ping -t command from a PC to the switch interface vlan 1 ip address,
2. unplug the cable and plug it again,
it takes about 30 seconds to start pinging again.
i disabled the STP protocol and observed that; with the same procedure, recovering ping replies decreased to 3 seconds.
is there any other tuning that i can configure and make response time even faster?
thank you for helping :)Hi,
STP convergence is typically the biggest part of host connection delays. Rather than disabling STP, you can configure "spanning-tree portfast" on the port which will achieve the same end.
Beyond that, some of the response time delays are going to be part of MAC address learning, ARP, and the fact that the switch places a low priority on processing ICMP packets. A better test is to ping from another device _through_ the switch rather than to or from the switch.
Here's a good document that covers various commands you can use to mitigate connectivity delays.
Using PortFast and Other Commands to Fix Workstation Startup Connectivity Delays
http://www.cisco.com/warp/customer/473/12.html
HTH,
Bobby -
Hi!
So attached are the codes I had for retrieving data from a network analyzer. I wanted to divide the sweep range into 800 subintervals, to run several times on each sub, and to generate an averaged data point for that subinterval. Now it takes me 30s to run once on each subinterval, so in total that's gonna take me over 20hours, which is way too much... I am just wondering if there's a way to drastically reduce the total run time to, say 1h? Thanks!
Attachments:
QCM_new.vi 146 KB
Retrieve_Data.vi 154 KB
Merge and Plot Data Sets.vi 37 KBFirst, get rid of all the timed structures. I don't know what you think they do but at best, all they will actually do is report that they are running late. If a GPIB Write takes x number of msec, then that is how long it will take. The timed structures are just adding overhead. Use the error in/error connections to enforce dataflow and use the VISA functions instead of the low level GPIB. Make sure to add error in/error out connections to your subVIs. Move the file write out of the loop and use a producer/consumer architecture.
Finally, as I hinted, the GPIB communication speed is dependent on how many bytes you read and write. The instrument itself may not be capable of high speed communication. GPIB itself is not really designed for high speed communication.
I'll also mention that changing the timeout points to a fault in your code. You really aren't tracking errors, but if you did and got timeout errors, then you need to fix that. You are perhaps not sending a correct command, the instrument is not sending the correct termination, whatever.
Maybe you are looking for
-
File system task error ; Access to the path " " is denied
HI All, I have created a simple package to copy xml files from multiple source folders to destination folder. Folder names and paths are stored in a sql table. I use execute sql taks to get folder and path names. set the restult set to full result
-
OS X mavericks Won't install on SSD Plextor M5S 256GB
Hi, I bought a Plextor M5S 256GB for my mid 2012 macbookpro 13", and impossible to use my SSD so far... First I tried to clone my HDD to the SSD with carbon copy cloner, it works only when my SSD is in an external usb box... slow. When I select it t
-
Can you set up the mail app in Panther to give you a return receipt for outgoing mail?
-
I have been unable to print certain true type fonts on OS X from my HP laser printer. I had no trouble printing from OS X on my past Powerbook, and then realized that the difference with my current machine and past machines was that this is the first
-
I have noticed that when you are calling someone form your contacts on the Blackberry Z10 Only the name of the person appears. The company name and the number are missing. Anyway i can switch this thing on to show company name and phone number. Also