Record fetch size property hint
Hi all,
I'm using Oracle Forms Builder 10g and Oracle DB 11g. I have a LoV which selects about 150k rows. In fact in the DB the select * from <table> returns first 50 rows for about a second. My question is: What value to set for Record fetch size property to receive the first records faster because now it is loading about 20-30 seconds/which is unacceptable for me :) /. I checked docs for this property and if i increase it i suppose it will display rows faster?
Thanks in advance,
Bahchevanov.
The records are composed of two columns, a code (5 characters) and a description (average size 25 characters). The average size of the record is then approx. 30 characters. From the documentation available in Forms:
Also, the way in which the actual value is computed when a value of 0 is
specified has changed. The actual value in this case is now
0.5 M / total_record_size (i.e. sum_of_column_sizes, not max_column_size),
but no more than 100 and no less than 20. The coefficients (0.5 M, 100, and
20) can be changed by setting these environment variables:
FORMS_COMPUTED_RGFS_DIVIDEND, FORMS_MAX_COMPUTED_RGFS,
and FORMS_MIN_COMPUTED_RGFS.I believe that we are running with the default. Is this OK for this data set? Do we need to set the environmental variables listed above?
Thanks,
Thomas
Similar Messages
-
Maximum record fetched property of block
hi friends
i have a basetable block
and i set the maximum record fetched property for this block to 1
but when i execute_query
i see all records.
can any one help me?
and i set this property ---> query array size
but it doesnot work also!!!!
tahnks
regards,
shojaThis property takes effect when the Query All Records property is set to true - and you may have to set the interaction mdoe to Non-blocking at Form mode.
A Simpler way to limit the number of rows would simply be to add
where rownum < 2 to the where clause for the block. -
Building a block based on the records fetched - Forms 10g
Is there a way in forms to dynamically build the block ( I mean in a multi record block, we usally set the number of records displayed in the property pallete) Instead of setting the property is there a way that we can do it based on the records fetched by the query?
select a.unit_id, substr(b.product_code,1,5)
from [email protected] a,[email protected] b
where substr(a.product_code,1,5) = b.product_code
and substr(a.product_code,1,5) = 'E3088'
and inv_product_type in ('PHER','LPHER','VPHER')
and warehouse_id = 'A'
This is the query.
If the query for product_code fetched 5 units for product code = 'E3088' of inv_product_type as mentioned in the query, is if possible to build the multi record block? For another product E3077 it might give us 6 records.
User wants me to see if I can do it? Is it possible?
Thanks in advance.
AnuHi,
I've not tried this and can't say for sure if it is possible or not.
But, have a look at this link Re: Automatic Number of record displayed .
I'd thought of a solution but never tried myself. Try if it works for you.
If it doesn't, i think it will not be possible in oracle forms.
Navnit -
REPORT PERFORMANCE TUNING:Array FETCH SIZE
Hi Folks,
DOES any one has an idea about array fetch size in CRYSTAL REPORTS XI connected to oracle database.
I have two basic questions here
1. What is the default array fetch size in CRYSTAL XI
2. how to change this parameter.
Thanks In advance
ManiPlease re-post if this is still an issue to the Data Connectivity - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly
-
Can you set a large fetch size for the standard popup LOV
I'm trying to increase the fetch size that the popup LOV uses when I set a LOV up for an attribute. It seems to have a default of 25. I don't really have the issue when I'm on a PC, but when we run the app under Safri on an IPAD it will not automatically fetch the next 25 rows when the user scrolls down like it does in IE. I had the same issue with tables, but I can change the fetch size on the table. I really need to set the fetch size on the LOV. ANyone know how to do this? I don't even care if the setting would be across the board or just specific to one view.
I'm on 11g. I'm using input list of values. I don't want to wait for the whole list since the search could return 1000's of rows. I like the automatic fetching I get with IE. The IPAD is the issue. It does not do an automatic fetch when you scroll to the end. So, the user is limited to 25 rows no mater what their selection criteria is. I'd like this to be around 400 if I could get it.
-
How to determine "fetch size" of an application?
Hi, all.
The db is 11.2.0.3 on a linux machine.
I would like to know the "fetch size" of an application, but I was not able to find any related meteris in v$statname.
The application configruation is invisible to me.
Do I need to do some calculations based on statistic metrics from v$statname?
If so, what meteris should be considered for the assumption for "fetch size" ?
The following is from manual, but the application configuration is invisible to me.
http://docs.oracle.com/cd/E11882_01/java.112/e16548/resltset.htm#i1023619
Setting the Fetch Size
The following methods are available in all Statement, PreparedStatement, CallableStatement, and ResultSet objects for setting and getting the fetch size:
•void setFetchSize(int rows) throws SQLException
•int getFetchSize() throws SQLExceptionThanks in advance.
Best Regards.or;
compare rows_processed, executions and fetches from v$sql for queries from your application.
HASH_VALUE EXECUTIONS FETCHES ROWS_PROCESSED
4157030199 39288 510744 50193247
SQL> select
fetches/executions "fetch per exec",
rows_processed/executions "rows per exec",
rows_processed/(executions+fetches) "avg fetch size"
from v$sql where hash_value=4157030199;
fetch per exec rows per exec avg fetch size
13 1277.57439 91.2553134the query assumes the app is doing it 'right', and is fetching from the first execute as well as the following fetches.
the 91.25... is not the real fetch size ofcourse, as the #rows returned will typically not be an exact multiple of the 'application fetch size', but we can guess it may be 100 in this case.
also note that you speak of an application fetch size, but the fetch size is really specified per-statement (OCIStmtExecute). some applications (or API's) do indeed use a 'one size fits all', which is still better than using no array fetching at all. -
To display records fetched from the DB through ALBPM, in a custom JSP
I want to display the records fetched from the database through ALBPM in a custom JSP as a table.
Currently I am fetching the records and putting them in a BPM object group and sending it to the JSP as a BPM object. Now in the JSP I am trying to iterate and create a table to display the fetched data using the JSTL tag ==>
<c:forEach ...... >
</c:forEach>
But I am always getting the following error in ALBPM workspace:
The task could not be successfully executed. Reason: 'java.lang.RuntimeException: /webRoot/customJSP/CustomerSearch1.jsp(29,2) No such tag forEach var in the tag library imported with prefix c'
Though there is a tag forEach var in the JSTL?? How to solve this error or is there any altrnative way to display the records in a JSP ??
Thanks,
Suman.Hello. I use custom JSP and it works well. You have to make sure 2 things:
a) You have imported the libs, including these lines in your JSP:
<%@ page session="true" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://fuego.com/jsp/ftl" prefix="f" %>
b) The variable you are using in the "forEach" statement is stored in the BPM object you pass to the JSP in the call.
Hope this helps.... Bye -
Record set size in Gantt Chart
Hi all,
I am developing an application that has a Gantt Chart.
The tree drawn is a 2 level tree. I have two VOs.
The second VO (Child) has more than 20 rows. I want to show only 10 child at once.
Record set size attribute is the one that is used to restrict the size of the number of nodes displayed. Just like in HGRID.
But when the graph is rendered the values that I give are being ignored and the entire graph is rendered.
Any pointers or suggestions on this will be really helpful.
Regards,
Santhosh.Hi Santosh,
As Anand suggested to add the "rownum <= 10" condition to limit the record set.
But this condition should be set in View Link SQL(Query where clause).
I hope this will work.
Thanks
Renu -
How to change the fetch size for a one-to-many relationship
With Toplink 10.1.3, since using scrollablecursor is a prerequisites for changing the fetchsize on a query (using the setFetchSize), I am wondering if it would be possible to change the fetchsize of the query which is associated to a one-to-many relationship.
So, is this possible? How ?In TopLink 10.1.3 you can set the fetch-size on any query, it has nothing to do with using a ScrollableCursor.
Example:
readQuery.setFetchSize(100);
To set the fetch size on a mapping query use,
mapping.getSelectionQuery().setFetchSize(100);
In 10.1.3 you can only set this in code, not currently through XML or the Mapping Workbench. In 10.1.3.1 you should be able to set the value through XML as well. -
Setting max record per page property at runtime (very urgent)
We need to display 7 record for first page and 25 for other pages...
we tried a reperating frame max record per page property is a report level property. So it cannot change for pages.
Then We try other way..
we seperated our query to the different frame to do these
But we need to summaries some field at page level and
reset at page has fallowing restriction
"A Reset At of Page will not work for reports that have multiple repeating frames associated with a group that is involved in the summary. One common case of this is a matrix report. As a result, matrix reports cannot have page-level summaries."
So all the ways we tried failed.
How can we do this ... it is very urgent. (we can use any version of report.)
Thanks for your help...repost
-
Set max fetch size on application module
Is there a way to set max fetch size on application module level, rather then setting it for every view object separately? I don't want to allow any of my view objects in application module to fetch more then 1000 rows.
Hi,
Tools-->... contains option for setting rows in batches of... , but doesn't contain option for setting max fetch size. I guess I'll have to do it in implementation class for view objects... Thanks anyway
Dragana -
Error "Invalid Fetch Size" in ODi11g 11.1.1.6.0 version
Hi Experts,
I am doing Data integration from Excel (using mutltiple sheets data) to Oracle table and now I am facing an below issue
Error:
ODI-1217: Session EMP_ST1 (24202) fails with return code 8000.
ODI-1226: Step EMP_ST1 fails after 1 attempt(s).
ODI-1240: Flow EMP_ST1 fails while performing a Loading operation. This flow loads target table EMP_MULTI.
ODI-1227: Task SrcSet0 (Loading) fails on the source MICROSOFT_EXCEL connection EMP_TEST.
Caused By: java.sql.SQLException: Invalid Fetch Size
Note: When i google it, I came to know that there is a patch Doc ID: 13528165 to resolve the same issue in ODI 11g (ver 11.1.1.5.0)
Is there any patch to resolve same issue in ODI11g version 11.1.1.6.0 for windows 32-bit
Thanks in advance
Regards,
PK
Edited by: 917775 on May 21, 2012 11:37 PMHi,
You better get in touch with Oracle Support people and get it clarified .
If there is no patch available for ODI 11.1.1.6 , but the bug is still there then they will create a forward porting request for the patch into ODI 11.1.1.6
Thanks,
Sutirtha -
Size Property of OracleParameter is not set when used in constructor
Hi
I have an issue in using OracleParameter in my .net windows app(vb.net) . If I create a OracleParameter like this, ths size property is not set
Dim opParam As New OracleParameter("v_Test", OracleDbType.Char, 120, ParameterDirection.Output)
'Here 120 is the size I have set, but it is not getting assigned to the Size property
MsgBox(opParam.Size) 'This will return 0
'I have to assign like this explicitly to have the size property set.
opParam .Size=120
Is it a problem in ODP.Net or I am doing something stupid ?.
Any answers would be greatly appreciated
Cheers
JohnHi John,
In looking at the constructor call you have this "format":
string, OracleDbType, int, ParameterDirection
This does not match to a constructor that does what you want. What it matches to is:
string, OracleDbType, object, ParameterDirection (i.e. the value (object) is being set where it looks like you want to set the size).
The closest matching constructor for what you want would be:
string, OracleDbType, int, object, ParameterDirection
i.e.
Dim opParam As New OracleParameter("v_Test", OracleDbType.Char, 120, null, ParameterDirection.Output)Hope that helps a bit (assuming I have not misread, etc...)
- Mark -
hi guys,
i have a master detail form and i would like to set the number of rows fetched in the master table to 10.
How can i do this?
Thank you,
AngeloGo here:
http://radio.weblogs.com/0118231/2005/05/15.html#a545
(assumption that you are using a newer version)
You can also search for "fetch size" on his site (right hand link) and read other articles like how to use SQL Trace to see the results of fetch size. -
How to set the fetch size for a ResultSet object?
Connection con = getConnection();
Statement stmt = con.createConnection();
ResultSet res = stmt.executeQuery("select * from table");
//res.setFetchSize(?);
while (res.next)
res.get....
}I do not know the number of rows .
How can I set the fetch size for the ResultSet object?
I try
res.last();
res.setFetchSize(res.getRow()/2);
res.beforeFirst();
while (res.next)
res.get....
}but it's so slow if there are 6000 rows.
How can I set the fetch size for the ResultSet object more effectible?
And what is the best number to set the fetch size?The fetch size defaults to a standard number. It is unlikely that it will be any faster if you set it unless you only plan to read a small number of rows.
i.e. if you are going to read all the rows, you need to read all the rows no matter what.
Unless the system has set the fetch size to 1 changing it will not be faster.
Depending on the row length, reading in 6000 rows is going to take a long time. You could try using a cpu profiler to improve performance.
Do you really need to read everything in every row?
Maybe you are looking for
-
Safari and Other Browsers Not Working in one account
The account that I use mostly, a standard account, has suddenly lost all web browser function, and I'm not aware of having changed anything recently. When I try using Safari in the Admin Account it works fine (except for some reason I can't login to
-
AC 5.3 - Critcal Permissions in Upload Files
Hi Guys I am just looking for a bit of confirmation here. I need to load some crital permissions via the upload files in the configuration tab. I believe that in the Function Action and Function Permission files I need to use ^! to represent that th
-
Installing Boot Camp without Mac Disk
I am having to install Book Camp on my MacBook to support a Windows app that won't run in Parallels. I can't find my Mac OS disk. Is there a download for the Boot Camp drives?
-
Purchased iTunes songs don't sort correctly with imported CD...
Specifically, the last three songs of Bonnie Raitt's Nick of Time album had skips after I imported them into my iTunes library. So, I deleted them and downloaded the same songs from iTunes, and the 9th song, "I Will Not Be Denied", will not sort corr
-
How can I have two videos side-by-side, like a newscast?
I have a background and 2-4 videos that I want to put together to make another video that looks like the newscasts where two or more feeds o