Fetching 3 laks records from the database

Hi All,
I have a requirement that if we are fetchin 3 lakks records from the database, can we fetch the records in a single span of time ,if yes then how?
If no, then we have to fetch the recods multiple times but since for the first time it is fetching 1 lakh records and for the next time how the bpel engine know that it has to fetch 1000001 record.
Can anybody came this type of scenario. Please guide me on this.
Regards,
Ch

There are some options given here @ http://myexperienceswithsoa.blogspot.com/2010/06/db-adapter-polling-tricks.html
Check them out.
But if you reading so much of data at once, you better have the necessary infrastructure to handle the load like memory, jvm tuning, etc ...
If there is a limitation, you will need to assess your polling record count to be may 10K or so to strike a balance on the performance.
Hope this helps.
Thanks,
Patrick

Similar Messages

  • How to fetch records from the database into a combo box?

    Hi:
    I´m really new with ABLBPM and I´m trying to fetch records from the database to display them into a combo box as valid values for a presentation but I´m using a dynamic method with this code:
    <em>for each row in SELECT campo1, campo2 from TABLE</em>
    <em>do</em>
    <em>solicitudes[] = [row.campo1, row.campo2]</em>
    <em>end</em>
    <em>return solicitudes
    </em>And the debugger says that SQL instructions can be used only in fuctions and procedures that are executed on the server.
    Do you know another way to do it?
    P.D. Sorry for my terrible english
    Greetings

    Hi Steve,
    Thank you, your idea is perfect, but when I try to run the screenflow where the combo should be filled I get this error:
    fuego.lang.ComponentExecutionException: No se ha podido ejecutar correctamente la tarea.
    Motivo: 'java.lang.NullPointerException'.
         at fuego.web.execution.InteractiveExecution.setExecutionError(InteractiveExecution.java:307)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:166)
         at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
         at fuego.webdebugger.servlet.DebuggerServlet.redirect(DebuggerServlet.java:136)
         at fuego.webdebugger.servlet.DebuggerServlet.doPost(DebuggerServlet.java:85)
         at fuego.webdebugger.servlet.DebuggerServlet.doGet(DebuggerServlet.java:66)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at fuego.web.execution.servlet.ServletExternalContext.forwardInternal(ServletExternalContext.java:197)
         at fuego.web.execution.servlet.ServletExternalContext.processAction(ServletExternalContext.java:110)
         at fuego.webdebugger.servlet.DebuggerExecution.dispatchComponentExecution(DebuggerExecution.java:64)
         at fuego.web.execution.InteractiveExecution.invokePrepare(InteractiveExecution.java:351)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:192)
         at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:223)
         at fuego.webdebugger.servlet.DebuggerServlet.doDebug(DebuggerServlet.java:148)
         at fuego.webdebugger.servlet.DebuggerServlet.doPost(DebuggerServlet.java:82)
         at fuego.webdebugger.servlet.DebuggerServlet.doGet(DebuggerServlet.java:66)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    Any ideas??
    Thanks and greetings

  • How to delete the child record from the database

    how to delete a parent and child record from the database can we do it in the servlet and my database is oracle

    I'm not sure I understand the question but you could certainly use the JDBC API from within your servlet to access and modify a DB. You could also use an EJB layer to access your DB and accomplish the same tasks.

  • How to get first 10 records from the database using JSP

    i want ot get first 10 records from the database and then after clicking the next button in the page,it must show the next precceding 10 records from the database.i am getting the first 10 records .but how to post to the same page to get another preceeding 10 record.

    Search the forums - this has been asked a lot. I usually recommend experimenting with tops and order bys until you're satisfied.
    Kind regards,
      Levi

  • Problem with displaying records from the database in a table ui element

    Hi,
    Iam creating an application which retrieves data from an oracle database. Iam able to connect to the database and retrieve the data in a result set. Then I try to set these values in a context node as follows,
    while (resultSet.next()) {
    String name = result.getString(1);
    String EmpId = result.getString(2);
    IEmpNode node = wdContext.nodeEmp();
    IEmpElement el = node.createEmpElement();
    el.setName(name);
    el.setEmpId(EmpId);
    node.addElement(el);
    where the context structure is emp(node)
                                   ---name(attribute)
                                   ---empId(attribute)
    Then I have bound the node emp to a table ui element.If I try to deploy this it comes up with Internal Server error.
    But if try this way, without creating a node, only with attributes name and empId,
    wdContext.currentContextElement.setName(name);
    wdContext.currentContextElement.setEmpId(EmpId);
    and binding the attributes to inputfields in the view, Iam able to see the last record in the database table.
    So where am I going wrong while using the table ui element?
    Regards,
    Rachel

    Hi
    Try this
    //Create the node in outer of while loop and bind to Table UIElement
    IEmpNode node = wdContext.nodeEmp();
    while (resultSet.next()) {
    String name = result.getString(1);
    String EmpId = result.getString(2);
    IEmpElement el = wdContext.createEmpElement();
    el.setName(name);
    el.setEmpId(EmpId);
    node.addElement(el);
    Kind Regards
    Mukesh

  • Algorithm to retrieve link of records from the database efficiently

    Hi,
    I have some records in database related to supply chain.
    e.g. N1 supplies item I1 to Node N2 is represented as N1 I1 N2.
    Now I want to find all parent nodes or say chain of nodes supplying to particular node in an efficient way.
    Currently I am using recursion but for each recursion 1 query fires & performance drops considerably. Can you suggest me the efficient way to do it?
    Regards,
    Veena

    depending on how large the dataset in the database is, you could just select all the data from the database in one go, add it all to a collection and perform you analysis on the collection. This would save a considerable amount of time as database roundtrips are expensive.
    If you dataset from the database is too large to fit in memory in one go you could select data in say rows of 1000 at a time and/or use a local disk cache instead of a remote DB query every time.

  • Adding a record from the database to radiobutton

    hi everyone
    i am trying to retrive the records from the ms Access database and add it to the radiobuttons.
    i did retrieve the data from the database and added it to the table and then added it to the radiobutton but the view of it is not clear.
    if anyone can give suggestions on it , it will be helpful
    thank you

    Can you elaborate on "but the view of it is not clear." ? Does it mean it looks blur on your monitor?? or it has been trying to hide at the corner of your screen??

  • How to get the last record from the database

    I am using MS Access database and Swings as GUI. I want to get the last record of a particular column from the table and store it as a varaible.

    Hi
    To get Last record of resultset, you have pass some parameter in constructor of CreateStatement.In such case Resultset should be scrollable and Readonly
    Example
    objStatement=objCon.createStatement ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
    mwwResultSet=cwwStatement.executeQuery(mwwSqlQuery);
    while(mwwResultSet.next())
    if(mwwResultSet.isLast())
    //Fetch the required column record.
    String abc=mwwResultSet.getString(1);
    I think this will work. Try it.
    bye

  • I am using the database connectivity toolkit to retrieve data using a SQL query. The database has 1 million records, I am retrieving 4000 records from the database and the results are taking too long to get, is there any way of speeding it up?

    I am using the "fetch all" vi to do this, but it is retrieving one record at a time, (if you examine the block diagram) How can i retrieve all records in a faster more efficient manner?

    If this isn't faster than your previous method, then I think you found the wrong example. If you have the Database Connectivity Toolkit installed, then go to the LabVIEW Help menu and select "Find Examples". It defaults to searching for tasks, so open the "Communicating with External Applications" and "Databases" and open the Read All Data. The List Column names just gives the correct header to the resulting table and is a fast operation. That's not what you are supposed to be looking at ... it's the DBTools Select All Data subVI that is the important one. If you open it and look at its diagram, you'll see that it uses a completely different set of ADO methods and properties to retrieve all the data.

  • How to fetch last record from the table to display in screen painter?

    Hi Gurus,
                  I have a requirement where i have to fetch the last record value in the table.
    I have a screen where the TEXT name is REQUEST and I/P field name is REQ and SAVE push button.
    In this I/P field automatically 1 should display when i excecute the program and when i save this, the request number should turn to 2 that is dynamically..once agin save then 3 and so on....and this 1, 2, 3 will be storeing in table.
    I have succeeded till generating the values dynamically and saving in the table like 1 is displayed and when i click save it is changeing to 2..but the problem is when i am coming out of program and logon again the request number is again displaying as 1 rather it has to start with 4 because already 3 request are there in the table.
    My code is...
    Table zsave.
    data declarations....
    data req type i.
    req = 0.
    req = zsave-req.
    PROCESS BEFORE OUTPUT
    req = 0.
    select req into table fun_st from zsave.
    req = zsave-req.
    zsave-req = req.
    req = zsave-req + 1.
    PAI
    req = zsave-req + 1.
    zsave-req = req.
    when 'save'.
    wa_funst-req = zsave-req.
    Please can you provide me with the solution....answer will be rewared.
    THKS

    Can you tell me, when updaing the ZSAVE table with the counter value are you modifying the exisiting value or inserting the value as new record?
    From the code in your first post, i see that you are extracting records into internal table but when you are moving to variable REQ, you are moving from table work area which is blank, so everytime when you execute it may be starting as 0.
    Hope below code can help you understand on handling your requirement
    Global Declaration:
    >DATA: l_req TYPE i. 
    PBO:
      SELECT MAX( req ) INTO l_req FROM zsave.
      l_req = l_req + 1.
    PAI:
      DATA: wa TYPE zsave.
      CASE ucomm.
      WHEN 'SAVE'.
        wa-req = l_req.
        INSERT zsave FROM wa.
      ENDCASE.

  • How to Display the Image Rather Than the Link of a Dreamweaver Record From the Database

    I wanted the image rather than the link to appear on my page. The link is from my database which is
    imported from a .csv file.

    You use the link as the value of the src attribute of an <img> tag:
    <img src="<?php echo $row_getDetails['image_link']; ?>" alt="My image">

  • Please help me! display the record from the database.

    Hi, all, please help me with the following question. I run my code on the web, the record display on the screen, but when I run again, even I did not put any data into the "memo form", the system display the previous record again which I do not need to post again. Could you please tell me how to correct the code?
    <%@ page language="java" contentType="text/html; charset=Shift_JIS" %>
    <%@ page import="beanYama.*,java.sql.*,java.util.*,java.text.*" %>
    <HTML>
    <HEAD>
    <TITLE>Form Example</TITLE>
    </HEAD>
    <BODY BGCOLOR="#ffffcc">
         <%!      String userid="";
              String memo_create_day="";
              String memo="";     
         %>
         <% if (request.getParameter("userid")==null && request.getParameter("memo_create_day") == null
              && request.getParameter("memo") == null) { %>    
         <LEFT>
         <H2>���`�� �� ����</H2>
         <FORM METHOD="GET" ACTION="memocorrect.jsp">
         <P>
              ���`��1��: <input type="text" name="userid" size=26>
         <P>
              ����: <input type="text" name="memo_create_day" size=26>
         <P>     
              ����: <input type="text" name="memo" size=100>
         <P>
              <input type="submit" value="Submit">
         </FORM>
         </LEFT>
         <% } else { %>  
    <%
    userid = request.getParameter("userid");
    memo_create_day= request.getParameter("memo_create_day");
    memo= request.getParameter("memo");
    %>
    <% } %>
    <%
         boolean proceed = false;
              if(userid != null && memo_create_day != null && memo != null)
                        proceed = true;
         Class.forName("org.gjt.mm.mysql.Driver");
         Connection conn=DriverManager.getConnection("jdbc:mysql://localhost/progress?user=ntjs&password=ntjs&useUnicode=true&characterEncoding=Shift_JIS");
         String sql = "insert into zhangmemo (userid,memo_create_day,memo) values (?, ?, ?)";
         PreparedStatement stmt = conn.prepareStatement(sql);
         if (proceed) {
         stmt.setString(1, userid);
         stmt.setString(2, memo_create_day);
         stmt.setString(3, memo);
         stmt.executeUpdate();
         if (userid==null && memo_create_day==null && memo==null) {
         out.println("<b>Please enter your memo</b>" + "</b>&nbsp"+"<b> </b>");
         stmt.close();
         conn.close();
         else {
         Statement stmt1=conn.createStatement();
         ResultSet rsq=stmt1.executeQuery("SELECT userid AS userid1, memo_create_day AS memo_create_day1, memo AS memo1 FROM zhangmemo");
         while(rsq.next()){
         out.println("<b>���`��:" + rsq.getString("userid1")+ "</b>&nbsp"+"<b> </b>");
         out.println("<b>����:" + rsq.getString("memo_create_day1")+ "</b>&nbsp"+"<b> </b>");
         out.println("<b>����:" + rsq.getString("memo1")+ "</b>&nbsp"+"<b> </b>");
         stmt.close();
         stmt1.close();
         conn.close();
    %>
    </BODY>
    </HTML>
    Thanks a lot!
    Nina

    1. Please learn JSP Coding standards. Your code is a mess.
    2. It may be because you are setting your String variables to "" empty string which is not the same as null. Try doing the following...
    <HTML>
    <HEAD>
    <TITLE>Form Example</TITLE>
    </HEAD>
    <BODY BGCOLOR="#ffffcc">
    <%
      String userid = request.getParameter("userid");
      String memo_create_day = request.getParameter("memo_create_day");
      String memo = request.getParameter("memo");
    %>
    <% if userid == null && memo_create_day == null
    && memo == null) { %>
    <LEFT>
    <H2>���`�� �� ����</H2>
    <FORM METHOD="GET" ACTION="memocorrect.jsp">
    <P>
    ���`��1��: <input type="text" name="userid" size=26>
    <P>
    ����: <input type="text" name="memo_create_day" size=26>
    <P>
    ����: <input type="text" name="memo" size=100>
    <P>
    <input type="submit" value="Submit">
    </FORM>
    </LEFT>
    <%
    boolean proceed = false;
    if(userid != null && memo_create_day != null && memo != null)
    proceed = true;
    Class.forName("org.gjt.mm.mysql.Driver");
    Connection conn=DriverManager.getConnection("jdbc:mysql://localhost/progress?user=ntjs&password=ntjs&useUnicode=true&characterEncoding=Shift_JIS");
    String sql = "insert into zhangmemo (userid,memo_create_day,memo) values (?, ?, ?)";
    PreparedStatement stmt = conn.prepareStatement(sql);
    if (proceed) {
    stmt.setString(1, userid);
    stmt.setString(2, memo_create_day);
    stmt.setString(3, memo);
    stmt.executeUpdate();
    if (userid==null && memo_create_day==null && memo==null) {
    out.println("<b>Please enter your memo</b>" + "</b> "+"<b> </b>");
    stmt.close();
    conn.close();
    else {
    Statement stmt1=conn.createStatement();
    ResultSet rsq=stmt1.executeQuery("SELECT userid AS userid1, memo_create_day AS memo_create_day1, memo AS memo1 FROM zhangmemo");
    while(rsq.next()){
    out.println("<b>���`��:" + rsq.getString("userid1")+ "</b> "+"<b> </b>");
    out.println("<b>����:" + rsq.getString("memo_create_day1")+ "</b> "+"<b> </b>");
    out.println("<b>����:" + rsq.getString("memo1")+ "</b> "+"<b> </b>");
    stmt.close();
    stmt1.close();
    conn.close();
    %>
    </BODY>
    </HTML>

  • Selecting the last record from a database table

    In my ABAP Program, I have to use a select statement to retrieve the last record from the database table with the same key.  In other words, the Program will get more than one hit on the database table for the selected keys and I need to retrieve values from only the last record and not the first.  I know I can use an internal table to sort the records first and then retrieve the right value.   But to make things easier, is there a SELECT statement keyword than I can use to do this in one single step?  Thanks!

    hi,
    tables:mara.
        data: begin of it_mara occurs 0,
                matnr like mara-matnr,
                meins like mara-meins,
                mtart like mara-mtart,
                end of it_mara.
    select-options:s_matnr for mara-matnr.
    select matnr
              meins
              mtart
    from mara
    into table it_mara
    where matnr in s_matnr.
    if not it_mara[] is initial.
    sort it_mara by matnr descending.
    read table it_mara index 1.
    endif.
    then you get the last record of the select statement.
    reward points if useful,
    venkat.

  • How to select first several records from a database table by using select?

    Hi,
       I want to select first 100 records from a database table by using select clause. How to write it?
       Thanks a lot!

    hai long!
                 well select statement is used to retrive
    records from the database.
    following is the syntax to be used.
    1) select *  into corresponding fields of itab from basetable where condition.
    endselect.
      ex: select * into corresponding fields of itab from mara
                where matnr >= '1' and  matnr <= '100'.
           append itab.
          endselect.
    select * is a loop statement.it will execute till matnr is less than or equal to 100.
    note: you can also mention the required field names in the select statement otherwise it will select all the field from table mara.
    note: itab means your internal table name.
    hope you got the required thing.if it really solved u r problem then award me the suitable points.<b></b>

  • Fetch last record from database table

    hi,
    how to fetch last record from database table.
    plz reply earliest.
    Regards,
    Jyotsna
    Moderator message - Please search before asking - post locked
    Edited by: Rob Burbank on Dec 11, 2009 9:44 AM

    abhi,
    just imagine the table to be BSEG or FAGLFLEXA... then what would be performance of the code ?
    any ways,
    jyotsna, first check if you have a pattern to follow like if the primary key field have a increasing number range or it would be great if you find a date field which stores the inserted date or some thing..
    you can select max or that field or order by descending using select single.
    or get all data.. sort in descending order.(again you need some criteria like date).
    read the first entry. using read itab index 1

Maybe you are looking for

  • Endnote Links in My PDF Don't Work Appropriately

    I have a PDF with endnotes (at the end of chapters/sections rather than at the end of the document). When I click on the endnote superscripts, I am taken to the very end of the document rather than the correct page at the end of the section. The link

  • How can I rout sound from safari to wifi speakers?

    hi, I can play music through the wifi speakers....  Not netflix movies... any help is appreciated.

  • Networking a firewire hard drive from a Mac and access the drive from a PC

    I'm trying to network a firewire hard drive from my Mac and access that hard drive from a Windows XP PC. I can see the main internal hard drive but I cannot see the firewire hard drive. Does anybody have a solution or work around? Many thanks, Roy

  • Report Configuration Failed

    I am trying to install DPM2012 R2 on windows 2008 R2 with sql server 2008 R2. During installation I am getting this error: Report configuration failed. Verify that SQL Server Reporting Services is installed properly and that it is running. ID: 812 I

  • Changing paragraph style

    I have a requirement.Paragraph text is changing according to the customer language . Here when the customer is english the data is fitting properly in the layot. But when it comes to other language that test is coming in the next line. So i want to d