Hello Mark,

Thank you for the note and feedback.  BTW, it was not over a network.  Both
on local PC.  So all the time went into building the resultset in memory.
I'm surprised at the time that takes.

Further to why I'm desirous to do this query, twofold.  One I get the record
count (rows in the table); since realised there are other ways to get he
number of rows.  For the second requirement I cannot see an alternative.
Not on this table, but on another where I keep a timestamp, I'd like to get
the 50 most recent inserts.  So what I do is; (SELECT * FROM
MEMBERSHIPSTRACKING ORDER BY ACTIVITYTIMESTAMP DESC) thus get all the rows,
ordered desc on timestamp and then I have the most recent 50 inserts.  If
anyone could assist me with this, I'd use other means, rather than
retrieving the full resultset.

Kind regards
Emmanuel

> -----Original Message-----
> From: Mark Robson [mailto:[EMAIL PROTECTED]]
> Sent: 19 January 2002 16:49
> To: MySQL Java List
> Subject: Re: Understanding throughput with JDBC
>
>
> > B. When running the exact same select as stated above in a java program
> > using JDBC, from when issuing, ResultSet rs = stmt.executeQuery(query)
> > until the java program gets control back, to create the resultset, takes
> > 23-25 seconds; I ran program several times.
>
> 23-25 seconds sounds like quite a reasonable time for selecting 110,000
> records - remember that they need to be transferred over the network and
> allocated in local memory.
>
> Mark
>
> ---------------------------------------------------------------------
> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html"; before
> posting. To request this thread, e-mail [EMAIL PROTECTED]
>
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail [EMAIL PROTECTED] instead.
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to