Results 1 to 6 of 6
  1. #1
    Parthi1705 is offline Member
    Join Date
    Jul 2012
    Posts
    5
    Rep Power
    0

    Default command prompt vs Eclipse

    Hi,
    I am having a code which fetches the data from database and run in eclipse it takes around 1 sec ,same java program is run from command prompt it takes around 3 sec why so difference

    what is difference in command prompt vs Eclipse in returning data.

    Thanks!

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,935
    Rep Power
    19

    Default Re: command prompt vs Eclipse

    How are you timing this?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    Parthi1705 is offline Member
    Join Date
    Jul 2012
    Posts
    5
    Rep Power
    0

    Default Re: command prompt vs Eclipse

    Hi,
    Before select statement i am using current timestamp and after finishing the statement again using the current timestamp.

    Write CurrentTimeStamp Before
    Select Statement
    Write CurrentTimeStamp After

    Thanks!

  4. #4
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,935
    Rep Power
    19

    Default Re: command prompt vs Eclipse

    Same machine?
    Same target database?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  5. #5
    Parthi1705 is offline Member
    Join Date
    Jul 2012
    Posts
    5
    Rep Power
    0

    Default Re: command prompt vs Eclipse

    Yes Same machine same database all are same.I have tested several times same result.I think this is due to scroll and writing,pls correct me if i am wrong.


    Thanks!

  6. #6
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    11,935
    Rep Power
    19

    Default Re: command prompt vs Eclipse

    Scroll and writing?
    You mean you're not just timing the query?
    Could you post the code?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Letting my program command the command prompt
    By Smokey. in forum Threads and Synchronization
    Replies: 4
    Last Post: 03-29-2011, 11:34 PM
  2. New Command prompt
    By jmga9 in forum New To Java
    Replies: 4
    Last Post: 11-10-2010, 01:53 AM
  3. how to get the values from command prompt
    By tej in forum New To Java
    Replies: 3
    Last Post: 05-02-2009, 08:32 AM
  4. help me!!!! about command prompt..
    By kureikougaiji in forum New To Java
    Replies: 2
    Last Post: 11-13-2008, 06:15 PM
  5. Running eclipse java project on command prompt
    By hnmapara in forum New To Java
    Replies: 1
    Last Post: 07-09-2008, 08:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •