Data base access time

Hello all,
I have following scenario:
1) I have one select query which is fetching 5,000 records from data base in single select.
2)Two select query from the same table fetching 1,000 records each time.
I want to know that which option will take more time that is 1 will take more time or 2.
Thanks and regards
Sachin

Hi Sachin,
The second selection query  will take more time beacuse it has to hit the data base 2 times and also increases traffic on database server hence it takes more time  .
and second selection query may take 4 to 5 times of first selection query.
Regards
Babumiya  Mohammad.

Similar Messages

  • Data base Access

    Hi
    I am developing a PDK (java) application
    From my application i need to get data from .Net system
    What are all the possible ways to access data from .Net System
    Thanks
    Rudra

    When you say .NET System what do you mean? Is that an MS SQL Server, a Sharepoint portal, other .NET system....?
    There are many ways to access database.
    In my opinion the most recommended one is using EJB or Hibernate because that gives you real MVC seperation, but it will be a bit difficult to implement in a PDK application.
    The quickest way will be using JDBC: Either configure the connection on the app server and access it's alias using the Initial context object or create the JDBC connection in your code but I highly recommend configuring it on the app server.
    Once configured, you can use something like that to access the object:
    InitialContext ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup(<YOUR_ALIAS>);
    Connection conn = ds.getConnbection();
    Hope it helps,
    Roy

  • Reducing Data base selection time

    Hi,
    I need to get the Excise Documnets which are not Billed. For that I've used following logic. But it is taking much time to get the data.
    SELECT a~exnum
             a~exyear
             a~exdat
             a~rdoc2
             SUM( a~exbed )
             SUM( a~ecs )
             SUM( a~exaddtax1 )
             b~vbtyp
             b~knumv
             b~bukrs
             b~kunrg
          FROM j_1iexcdtl AS a INNER JOIN vbrk AS b
          ON ardoc2 EQ bvbeln
          INTO TABLE lt_excise WHERE a~exdat IN s_fkdat      AND
                                     a~status EQ 'C'          AND
                                    a~exdat ge '20090401'   AND
                                     NOT EXISTS ( SELECT vbeln FROM vbrk WHERE vbeln EQ a~rdoc3 AND
                                                                               vbtyp EQ 'M' ) AND
                                     b~vbtyp EQ 'U'          AND
                                     b~bukrs IN s_bukrs      AND
                                     b~kunrg IN s_kunrg
                               GROUP BY a~exnum
                                        a~exyear
                                        a~exdat
                                        a~rdoc2
                                        b~vbtyp
                                        b~knumv
                                        b~bukrs
                                        b~kunrg.
    Pl help to reduce the time for database selection.
    Regards,
    Rajiv. V

    Hi,
    To decrease the load on DB ,you can process Group by and SUM functions in Loop Endloop of resulting table.
    Avoid using Subqueries with not condition.I read ,NOT compromises the index and starts linear search.
    There are already many discussions on usage on For all entries and Join .So search forum for more details.
    The performance of join and For all entries are context oriented.
    SELECT a~exnum
    a~exyear
    a~exdat
    a~rdoc2
    SUM( a~exbed )                 "  Avoid using SUM use Control break in loop endloop
    SUM( a~ecs )
    SUM( a~exaddtax1 )
    b~vbtyp
    b~knumv
    b~bukrs
    b~kunrg
    FROM j_1iexcdtl AS a INNER JOIN vbrk AS b
    ON a~rdoc2 EQ b~vbeln   "Rdoc2 is available in secondary index ,I am not sure whether this affects the performance ,EXPERT advice is required    
    INTO TABLE lt_excise WHERE a~exdat IN s_fkdat AND     
    a~status EQ 'C' AND                            
    * a~exdat ge '20090401' AND                 "if possible, try to use  indexed fields from VBRK
    NOT EXISTS ( SELECT vbeln FROM vbrk WHERE vbeln EQ a~rdoc3 AND   "Avoid using Not this would compromise the index or use Delete itab on resulting table
    vbtyp EQ 'M' ) AND                                                                               
    b~vbtyp EQ 'U' AND  
    b~bukrs IN s_bukrs AND
    b~kunrg IN s_kunrg
    GROUP BY a~exnum                       " Avoid Group by
    a~exyear
    a~exdat
    a~rdoc2
    b~vbtyp
    b~knumv
    b~bukrs
    b~kunrg.

  • Other Data Base Access in BSP

    Dear All,
    Is it possible to make the BSP application to communicate with other DataBases like SQL , Oracle?
    Kind Regards,
    Mukesh

    Hi,
    As long as you can do it using ABAP !
    You can use transaction DBCO for this.
    Here are some helpful links
    /people/sap.user72/blog/2006/08/31/configure-dbco-database-multiconnect-on-ibm-i5iseries
    http://help.sap.com/saphelp_nw70/helpdata/EN/df/455ec9747111d6b25100508b6b8a93/frameset.htm
    Best regards,
    Guillaume

  • What is logical data base and how it is differfrom DDIC AND DATABASE

    HI ,
    CAN ANY BODY HELP ME TO FIND THIS

    Hi
    A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
    LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
    Less coding s required to retrieve data compared to normal internel tables.
    Tables used LDB are in hierarchial structure.
    Mainly we used LDBs in HR Abap Programming.
    Where all tables are highly inter related so LDBs can optimize the performance there.
    Check this Document. All abt LDB's
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
    GO THROUGH LINKS -
    http://www.sap-basis-abap.com/saptab.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Re: **LDB**
    www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
    www.sap-img.com/abap/abap-interview-question.htm
    www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
    Gothru the blog which provides info on LDB's:
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Logical data base

    hi experts!!
    i am working on the LDb  report and i have created a LDB zaxxx in se36 and using the same LDB to code in se38 and in attributes i have mentioned the name of LDB.
    when i code follwoing:
    GET ZAXXXX  FIELDS INVOICE_NUM CUST_NAME CUST_PO_NUM INV_DATE.
    ITS GIVING ERROR THAT ZAXXX IS NOT SPECIFIED FOR FIELD SELECTION.
    when i use only
    GET ZAXXXX  . when i debug valuse are comming but when process the report its giving no valuse.
    plz suggest me on the same..
    mahesh

    hi this may be of some help.
    A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
    LDB offers an easy-to-use selection screens. You can modify the pre-generated selection screen to your needs. It offers check functions to check whether user input is complete, correct, and plausible. It offers reasonable data selections. It contains central authorization checks for data base accesses. Enhancements such as improved performance immediately apply to all report programs that use the logical database.
    Less coding s required to retrieve data compared to normal internel tables.
    Tables used LDB are in hierarchial structure.
    Mainly we used LDBs in HR Abap Programming.
    Where all tables are highly inter related so LDBs can optimize the performance there.
    Check this Document. All abt LDB's
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=%2flibrary%2fabap%2fabap-code-samples%2fldb+browser.doc
    GO THROUGH LINKS -
    http://www.sap-basis-abap.com/saptab.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bfa35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/frameset.htm
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Re: **LDB**
    www.sapbrain.com/FAQs/TECHNICAL/SAP_ABAP_Logical_Database_FAQ.html
    www.sap-img.com/abap/abap-interview-question.htm
    www.sap-img.com/abap/quick-note-on-design-of-secondary-database-indexes-and-logical-databases.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9bb935c111d1829f0000e829fbfe/content.htm
    Gothru the blog which provides info on LDB's:
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    Sample code
    TABLES: SPFLI,
    SFLIGHT,
    SBOOK,
    SCARR.
    START-OF-SELECTION.
    GET SPFLI.
    WRITE:/ ’SPFLI: ’, SPFLI-CARRID, SPFLI-CONNID,
    SPFLI-AIRPFROM, SPFLI-AIRPTO.
    GET SFLIGHT.
    WRITE:/ ’ SFLIGHT: ’, SFLIGHT-CARRID, SFLIGHT-CONNID, SFLIGHT-FLDATE.
    GET SBOOK.
    WRITE:/ ’ SBOOK: ’, SBOOK-CARRID, SBOOK-CONNID,
    SBOOK-FLDATE, SBOOK-BOOKID.
    GET SFLIGHT LATE.
    WRITE:/ ’ GET SFLIGHT LATE: ’, SFLIGHT-FLDATE.
    with regards,
    Hema SUndara.
    pls reward if helpful.

  • Discovere acess problem in data base 10g

    create user for discovere Data base access for one user.Now he is facing log in problem it shows
    A connection error has occurred.
    - Failed to connect to database - ORA-12154: TNS:could not resolve the connect identifier specified
    can anybody please help me.
    Thanks,
    Dave

    1.On client machine intall discoverer desktop
    2.copy the tnsname.ora file in %BI_HOME%/network/admin Directory
    3.copy the applicaitons .dbc file in %BI_HOME%/discoverer/secure directory. If the directory doesn't exist then create it.
    4.Create an evironment parameter FND_SECURE with value pointing to the %BI_HOME%/discoverer/secure path.
    5.In discoverer desktop change connection options to Oracle applciations and then provide username/password/sid and check the Oracle applications checkbox and connect to database.
    Sami Malik
    [email protected]

  • Itunes 6 does not access the cddb gracenote data base any more

    i have installed norton products, but changing the setting does not affect the status, i could not successfully update to itunes 6+ and the girl from apple said it has no major upgrade in it, but my grace note data base does not work any more, i get a yellow triangle and problem with http and stuff, so i changed to winamp for filing my music, though i believe, sound wise, itunes might be slightly better, but winamp is consumer friendly and whiskey bernstein in my case, the "momo" time thief gray of itunes is not a turn on, so does any one know what can happen to the cddb data access ? merci, henri

    Shaun Bromley wrote:
    Well it's the way I've always done, and as far as I know it's the way it's supposed to be done.
    It's can be done this way but it doesn't mean it is supposed to be done this way.
    There are no duplicate items.
    If you want to listen to a song on your iPhone and also on your iPod, you have to have a copy in each library.
    You just tick sync all songs in each library then tick/untick each song as necessary for each library.
    I never uncheck anything.
    I just add/delete from a playlist and sync.
    How the **** do we now know which library we are in???
    You know which **** library you are in because it is the one you **** well opened.
    If you only use one library, there is no wondering which library you are using.
    Any way, good luck!

  • Since Apple's data base has been accessed by burglars, why can't Apple track serial numbers?

    If Apple's data base is accessed by people  like this, why can't the same data base be used to track ownership?  MOst Apple users sign on to itunes and share their system information.  Would it not make sense to share the serial numbers with a reporting system?
    If I call into the local Apple store, will I receive any support in locating my systems or will they want to sell me an app to track them?
    The data is available for Apple to promote an independent recovery sytem...why don't they?  Is there no money in it?
    <Edited By Host>

    why can't the local Apple store access the national data base and find out where it was being serviced.
    They can do that now, if the system is at an authorized service center. It's highly unlikely that a stolen system would just happen to have been checked into a service center at the time you happen to look, though. I also doubt that Apple would provide that information to you just on your request.
    As to the report you are referencing, is it coinicidence homes with multiple Apple systems were targeted?  In my neighborhood, only homes with more than two Imacs were hit...and only Apple systems were taken.
    Such information would not be available to any burglar, nor has there been even a rumor that Apple's internal customer databases have every been compromised. So yes, it was either coincidence or the burglars casing the premises, not at all hard to do. It's even often possible by doing a scan of someone's WiFi network; few people have theirs adequately secured.
    Apple is not law enforcement. It's not their job to try and track stolen property; that's the job for the police. There's nothing further to be said.

  • ORA-00900 when there is huge quantity access to Data Base

    Hi
    I have some Java programs which access to the same Data Base Oracle 11gR2 from diferent computers and diferent Operative System.
    in a normal execution everything is working but when I want to test the 'stress' in the data base I execute many concurrent programs. The problem is that when I execute too many programs the data base answer me 'java.sql.SQLException: ORA-00900: sentencia SQL no valida' (I´m sorry the spanish expresion, I don´t know the english correspondence)
    The SQL sentences are static.
    Do you know why? and do you know the solution?
    Thanks you for your answers
    Pablo José Izquierdo

    hi, thank for your answer
    I enable a logging in my Java program and after the execution I write the sql sentence which causes the exception in my SQLplus and it´s correct. The programs execute the same 4 sentences about 50 time every second (more 200 access every second and every program) and it´s only return a problem when I have too many programs.
    It´s only happens sometimes, no always, but the execution is very long and I find the problem at some point in the same
    The database is Autocommit and the sentences are on the same table but on diferente values.

  • How do I access time capsule data with windows 7

    My computer hard drive crashed and was recently replaced and a fresh new install of Windows 7 was done.  Also my service provider has change and I no longer use the airport as my wireless router.  I have all my data on the time capsule however I am unable to access it.  I tried downloading airport utility for windows but its not detecting my time capsule.  I am connecting the time capsule to my computer using the usb cable.  Any suggestions?

    I am connecting the time capsule to my computer using the usb cable.  Any suggestions?
    That is not a valid method of connecting.. the TC is a network device.. you cannot use USB to it.
    Plug it in by ethernet or use wireless.. either way it should be accessible by the airport utility.

  • Data acquisition on the basis of time

           Hi everyone,
    I want to acquire the radial run-out (radial small displacement) of a rotating spindle using a capacitive sensor. To do so I will use the LabView v. 7.1. The PCI-6036E card from National Instruments (NI) will be utilized for data acquisition. The spindle turns at 100 rpm and a rotational incremental encoder is fixed at rear of spindle. This encoder provides an index digital pulse per revolution. This pulse should be used to start and finish the sampling process. I want to sample on the basis of time, by means of sampling rate of the card (Ksamples/s). So, let us suppose that I want to acquire 500 data/rev. The spindle takes 0.6 sec to complete one revolution. Thus, the required sampling rate is Fs = 500 samples/0.6 s = 833 samples/s. So, I should set the VI in LabView so that it samples only 833 data/s. Therefore, I will have to reduce the sampling rate of the analog-input channels in use. For example, let us suppose that the card provides 100 Ks/s when operating in multiple channels. Let us admit that there are 4 analog-input channels in use. So, the scan rate per channel is 25 Ks/s. This is too much for this application. I only need 833 samples/s. So, I should program the VI so that the card provides that required sample rate. As said earlier, I need to start and end the sampling process at the same point. Thus, to do that the index pulse of the encoder will be used. Also, I want to sample during 5 consecutive revolutions of the spindle. So, by means of a loop in VI, I should count the index pulse of encoder until the number of pulses be equal to 5 (= number of revolutions). At this instant, the sampling process should be stopped. Note: 1) the sampled data should be put in a buffer. After the sampling process is finished, this data should be saved in a file of LabView; 2) In fact, the data acquired by the sensor are voltage analog input. Questions:1) Could you make a VI for this problem, please? Note: you can use the DAQ ASSISTANT EXPRESS VI or DAQmx TASK NAME CONTROL method2) What should I do to stop the data acquisition at the end of 5 revolutions using the index pulse of encoder?3) Could you send examples (VIs) similar to my problem above? In anticipation, thank you very much for any help. My e-mail: [email protected]                                                                                      
     Bruce  

    duplicate post
    Continue in other thread
    Message Edited by smercurio_fc on 11-14-2008 09:10 AM

  • Multiple Users Can't Access Time Capsule Data

    My wife and I have two separate Apple MacBooks that share a Time Capsule. We have different account names on these respective computers. I initially set up my Time Capsule and created folders that I can access from Finder.app when I connect over our wireless network. In Airport Utility.app, under the "Disks" tab, I set up the shared disks "with device password", so that she and I can mutually access all the data on the Time Capsule. However, when I try to access it from her computer, I click on the Time Capsule in Finder.app and get this dumb Sharepoint icon--a total dead end. I created another account on her computer with the same name as the account on my own computer, and from that account, I'm able to access all of the data on the Time Capsule. This therefore seems to be a permissions issue, but I've checked all of the files and folders on the Time Capsule and ensured that they all have "everyone read & write" access, so there should be no restrictions on access to this data.
    Why are the volumes on my Time Capsule sensitive to the user accessing them? How do I set up data repositories on the Time Capsule that can be accessible to all users on my network? I'm out of ideas.

    Are both computers actually running Mavericks??
    This is very typical Yosemite problem.
    For some reason which I don't yet understand Yosemite is horrible at handling network drives.
    dumb Sharepoint icon
    Sharepoint is a dlink app?? If you have ever had some app loaded that uses a different product to apple then it can mess your access.
    WD share stuff seems to be the worst and causes no end of problems.
    What you are seeing btw is the TC is not a NAS.. you are trying to use it as one.. but it isn't.

  • I had to change my Hard Drive, now I want to work on files in iWeb, but can't access Time Machine before yesterday. The dates are there on the right hand side but are greyed out before yesterday when I changed my HD. How do I access anything from before.

    I had to change my Hard Drive, now I want to work on files in iWeb, but can't access Time Machine before yesterday. The dates are there on the right hand side but are greyed out before yesterday when I changed my HD. How do I access anything from before?

    Start with B5/6 in the 1st linked article.
    Time Machine Troubleshooting
    Time Machine Troubleshooting Problems

  • How i can import  MS access Data base in Oracle 9i

    Dear ALL,
    i am feacing problem in import data base from MS ACCESS to Oracle 9i the procedure was very simple in oracle 8.0.5 but dont know what is in Oracle 9i pls i am in big tribble just boz of this problem pls tell me the solution of this prob with brief Steps would be very thank full to you
    Nauman Mirza

    Naumann,
    Have you checked out the Oracle Migration Workbench? You will find a lot of infromation about it here on OTN.
    Donal

Maybe you are looking for

  • I think I might have a big problem.

    I just got my iPod few weeks ago and I have been putting cd's and my other various mp3's on my iPod and in order to save room on my comp I delete the mp3's off my comp once i have them in my iPod. I glanced over the manual and it said I could use iPo

  • Update  JComponents

    i dont know how to update Jcomponents and Jframes etc.. i have a JFrame, there are some JPanels in it... while inilitalizing few Jbuttons,Jscrollpane etc are added in JPanels by layout manger when some action event occurs, i can write actionPerformed

  • BEx Query for SAP BO WebI issue

    Hello Experts, I am facing a problem in BEx query which is feeding SAP BO WebI 4.0 (SP5) via BICS. BEx query designed on top of a Multiprovider consists of two standard InfoCubes namely ZBW1 and ZBW2. We need "ZPRCTR" from InfoCube ZBW1 and the Key F

  • Multiple user in a parallel dynamic process step?

    Hi, anyone an idea how to address an process step in an parallel dynamic block simultaneously to multiple users? I already tried the ‘Assign Users to Process Role’-Callable Object. Unfortunately each added user to one step in the parallel dynamic blo

  • Downgrade from windows 7 to xp pro

    does lenovo offer a thinkpad x230 downgrade option, from win 7 to xp pro? Solved! Go to Solution.