Re: how to efficiently query for the next in MySQL Community Edition 5.1.34?

2009-06-20 Thread Mike Spreitzer
ve another factor of 100. How do I save (even a portion of) that? Thanks, Mike Spreitzer Peter Brawley 06/20/09 06:56 PM Please respond to peter.braw...@earthlink.net To Mike Spreitzer/Watson/i...@ibmus cc mysql@lists.mysql.com Subject Re: how to efficiently query for the next in MySQL Community Edition

Re: how to efficiently query for the next in MySQL Community Edition 5.1.34?

2009-06-20 Thread Peter Brawley
mspre...@us.ibm.com, Lotus Notes: Mike Spreitzer/Watson/IBM Office phone: +1-914-784-6424 (IBM T/L 863-) AOL Instant Messaging: M1k3Sprtzr *Peter Brawley * 06/20/09 03:59 PM Please respond to peter.braw...@earthlink.net To Mike Spreitzer/Watson/i...@ibmus cc mysql@lists.mysql.c

Re: how to efficiently query for the next in MySQL Community Edition 5.1.34?

2009-06-20 Thread Mike Spreitzer
zer/Watson/i...@ibmus cc mysql@lists.mysql.com Subject Re: how to efficiently query for the next in MySQL Community Edition 5.1.34? >I do not follow why you suggested a join to get the associated S, >that can be done in the original query (and I did NOT say a given >integer I is ass

Re: how to efficiently query for the next in MySQL Community Edition 5.1.34?

2009-06-20 Thread Peter Brawley
ke Spreitzer *Peter Brawley * 06/20/09 12:39 PM Please respond to peter.braw...@earthlink.net To Mike Spreitzer/Watson/i...@ibmus cc mysql@lists.mysql.com Subject Re: how to efficiently query for the next in MySQL Community Edition 5.1.34? Mike, >Y

Re: how to efficiently query for the next in MySQL Community Edition 5.1.34?

2009-06-20 Thread Mike Spreitzer
zer/Watson/i...@ibmus cc mysql@lists.mysql.com Subject Re: how to efficiently query for the next in MySQL Community Edition 5.1.34? Mike, >Yes, for each (S, I) pair the goal is to efficiently find the next largest >integer associated with S in T. For the highest integer I associated with

Re: how to efficiently query for the next in MySQL Community Edition 5.1.34?

2009-06-20 Thread Peter Brawley
peter.braw...@earthlink.net To Mike Spreitzer/Watson/i...@ibmus cc mysql@lists.mysql.com Subject Re: how to efficiently query for the next in MySQL Community Edition 5.1.34? Mike J holding the next integer that T has for S You mean for each i, the next value of i with that s?

Re: how to efficiently query for the next in MySQL Community Edition 5.1.34?

2009-06-20 Thread Mike Spreitzer
Mike Spreitzer/Watson/i...@ibmus cc mysql@lists.mysql.com Subject Re: how to efficiently query for the next in MySQL Community Edition 5.1.34? Mike >J holding the next integer that T has for S You mean for each i, the next value of i with that s? >(U having no row for the last inte

Re: how to efficiently query for the next in MySQL Community Edition 5.1.34?

2009-06-20 Thread Johnny Withers
Huh??? On Saturday, June 20, 2009, Peter Brawley wrote: > Mike > >>J holding the next integer that T has for S > > You mean for each i, the next value of i with that s? > >>(U having no row for the last integer of each string). > > I do not understand that at all. > > PB > > > Mike Spreitzer wrot

Re: how to efficiently query for the next in MySQL Community Edition 5.1.34?

2009-06-20 Thread Peter Brawley
Mike >J holding the next integer that T has for S You mean for each i, the next value of i with that s? >(U having no row for the last integer of each string). I do not understand that at all. PB Mike Spreitzer wrote: Suppose I have a table T with two column, S holding strings (say, VARCHA

how to efficiently query for the next in MySQL Community Edition 5.1.34?

2009-06-19 Thread Mike Spreitzer
Suppose I have a table T with two column, S holding strings (say, VARCHAR(200)) and I holding integers. No row appears twice. A given string appears many times, on average about 100 times. Suppose I have millions of rows. I want to make a table U holding those same columns plus one more, J