Re: auto_increment vs. heap tables

2001-08-16 Thread Eduardo J. Vega Arguedas
ot;Andrew Schmidt" <[EMAIL PROTECTED]> >Cc: <[EMAIL PROTECTED]> >Sent: Thursday, August 16, 2001 12:50 PM >Subject: Re: auto_increment vs. heap tables > > > > Uh oh... Please NO. I want the standard _FAST_ auto_increment, not this. > > "select max(id

Re: auto_increment vs. heap tables

2001-08-16 Thread Andrew Schmidt
#x27;" <[EMAIL PROTECTED]> Sent: Thursday, August 16, 2001 1:02 PM Subject: RE: auto_increment vs. heap tables > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Except, if you have a table like so: > > ++-+ > | id | num | > ++-+ > |

Re: auto_increment vs. heap tables

2001-08-16 Thread Andrew Schmidt
ct the max(sess_id). well anyway, sorry I couldn't help more. thanks, -- Andrew - Original Message - From: "Leos Bitto" <[EMAIL PROTECTED]> To: "Andrew Schmidt" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, August 16, 2001 12:50 PM

Re: auto_increment vs. heap tables

2001-08-16 Thread Leos Bitto
Uh oh... Please NO. I want the standard _FAST_ auto_increment, not this. "select max(id) from table x" is terribly inefficient. And the table is locked during this operation... That's just not acceptable for me. Anyway, thanks for the response. It was the second one. Leos On Thu, 16 Aug 2001, An

Re: auto_increment vs. heap tables

2001-08-16 Thread Andrew Schmidt
auto increment is really just a nice way of doing the following (really nice way actually): lock table x select max(id) + 1 from table x insert into table x values (newid) unlock table x this is under the assumption table x as 1 field called id which has a primary key on it. and newid is the id

Re: auto_increment vs. heap tables

2001-08-16 Thread Leos Bitto
On Wed, 15 Aug 2001, Jeremy Zawodny wrote: > On Tue, Aug 14, 2001 at 12:05:08PM +0200, Leos Bitto wrote: > > Hello, > > > > I am currently changing a simple PHP4-based application from > > PostgreSQL 7.1 to MySQL 3.23. > > Welcome to MySQL, then. :-) I am already using MySQL a lot, and now I am

Re: auto_increment vs. heap tables

2001-08-15 Thread Jeremy Zawodny
On Tue, Aug 14, 2001 at 12:05:08PM +0200, Leos Bitto wrote: > Hello, > > I am currently changing a simple PHP4-based application from > PostgreSQL 7.1 to MySQL 3.23. Welcome to MySQL, then. :-) > I have some tables in the database which I would like to create as > TYPE=HEAP in MySQL. Because I