Re: Can Innodb reuse the deleted rows disk space?

2006-08-01 Thread leo huang
leo huang said: > >>So, the deleted rows' disk space in tablespace can't re-use when I > >>use Innodb, can it? And the tablespace is growing when we update > >>the tables, even the amount of rows do not increase. > > > >It can be re-used after the tra

Re: Can Innodb reuse the deleted rows disk space?

2006-07-29 Thread Dan Nelson
In the last episode (Jul 29), Jochem van Dieten said: > On 7/28/06, Dan Nelson wrote: > >In the last episode (Jul 28), leo huang said: > >>So, the deleted rows' disk space in tablespace can't re-use when I > >>use Innodb, can it? And the tablespace is growin

Re: Can Innodb reuse the deleted rows disk space?

2006-07-29 Thread Jochem van Dieten
On 7/28/06, Dan Nelson wrote: In the last episode (Jul 28), leo huang said: So, the deleted rows' disk space in tablespace can't re-use when I use Innodb, can it? And the tablespace is growing when we update the tables, even the amount of rows do not increase. It can be re-used

Re: Can Innodb reuse the deleted rows disk space?

2006-07-28 Thread Dan Nelson
). It can't just delete the row because you might roll > >back the transaction and it will have to undo that delete, or other > >transactions might be using it for whatever purpose. > > > >http://dev.mysql.com/doc/refman/5.1/en/innodb-multi-versioning.html > >http:

Re: Can Innodb reuse the deleted rows disk space?

2006-07-28 Thread leo huang
hi, Chris So, the deleted rows' disk space in tablespace can't re-use when I use Innodb, can it? And the tablespace is growing when we update the tables, even the amount of rows do not increase. Regards, Leo Huang 2006/7/28, Chris <[EMAIL PROTECTED]>: leo huang wr

Re: Can Innodb reuse the deleted rows disk space?

2006-07-28 Thread Chris
leo huang wrote: hi, Chris I'm sure it will, what makes you think it won't? Because some paper say that when the row is deleted or update, Innodb just make a mark that the row is deleted and it didn't delete the rows. I can't find more information about the re-use tablespace. Can you give me

Re: Can Innodb reuse the deleted rows disk space?

2006-07-28 Thread leo huang
ve me more? Regards, Leo Huang 2006/7/27, Chris <[EMAIL PROTECTED]>: leo huang wrote: > hi, Chris > > Thank you for your advice! > > I know that Innodb use the logfiles circularly. Can Innodb re-use the > deleted rows' disk space in tablespace? I'm sure it w

Re: Can Innodb reuse the deleted rows disk space?

2006-07-26 Thread Chris
leo huang wrote: hi, Chris Thank you for your advice! I know that Innodb use the logfiles circularly. Can Innodb re-use the deleted rows' disk space in tablespace? I'm sure it will, what makes you think it won't? You might need an 'optimize table' or something to s

Re: Can Innodb reuse the deleted rows disk space?

2006-07-26 Thread leo huang
hi, Chris Thank you for your advice! I know that Innodb use the logfiles circularly. Can Innodb re-use the deleted rows' disk space in tablespace? Regards, Leo Huang 2006/7/26, Chris <[EMAIL PROTECTED]>: leo huang wrote: > hi, Dilipkumar > > Thank you very much! > &g

Re: Can Innodb reuse the deleted rows disk space?

2006-07-25 Thread Chris
leo huang wrote: hi, Dilipkumar Thank you very much! I think I know the fact: The Innodb can't reuse the deleted rows' disk space. And a solution is: dump the data; shutdown mysql; delete the files; restart mysql; import the data. InnoDB does re-use the space inside the database

Re: Can Innodb reuse the deleted rows disk space?

2006-07-25 Thread leo huang
hi, Dilipkumar Thank you very much! I think I know the fact: The Innodb can't reuse the deleted rows' disk space. And a solution is: dump the data; shutdown mysql; delete the files; restart mysql; import the data. Regards, Leo Huang 2006/7/24, [EMAIL PROTECTED] <[EMAIL PROTECTED

Re: Can Innodb reuse the deleted rows disk space?

2006-07-23 Thread dilipkumar_parikh
se u can able to reduce the space usage of innodb. Try this it might help u out. With Regards Dilipkumar [EMAIL PROTECTED]: > Hi, all > > I know the Innodb use MVCC to achieve very high concurrency. Can > Innodb reuse the deleted rows disk space? I have an database which >

Can Innodb reuse the deleted rows disk space?

2006-07-23 Thread leo huang
Hi, all I know the Innodb use MVCC to achieve very high concurrency. Can Innodb reuse the deleted rows disk space? I have an database which have many update operation. If Innodb can't reuse the space of deleted rows, I worry about that MySQL will exhaust our disk space very qu

RE: Deleted rows

2005-08-18 Thread emierzwa
: Thursday, August 18, 2005 10:18 AM To: [EMAIL PROTECTED] Cc: Scott Hamm; 'Mysql ' Subject: Re: Deleted rows Scott, Shawn, >The OP would like to detect that 4,5,6, and 7 are missing from the >sequence. Your query would have only found that 7 was missing. Right! For sequences longer

Re: Deleted rows

2005-08-18 Thread Peter Brawley
Scott, Shawn, >The OP would like to detect that 4,5,6, and 7 are missing from the >sequence. Your query would have only found that 7 was missing. Right! For sequences longer than 1 you need something like... SELECT   a.id+1 AS 'Missing From',   MIN(b.id)-1 AS 'To' FROM test AS a, test AS

Re: Deleted rows

2005-08-18 Thread Scott Hamm
On 8/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Peter, > > Your query may work for data with single-row gaps (like his example data) > but it will not work if the sequence skips more than one number. > > Look at this sequence: 1,2,3,8,9,10 > > The OP would like to detect tha

Re: Deleted rows

2005-08-18 Thread SGreen
Peter, Your query may work for data with single-row gaps (like his example data) but it will not work if the sequence skips more than one number. Look at this sequence: 1,2,3,8,9,10 The OP would like to detect that 4,5,6, and 7 are missing from the sequence. Your query would have only found t

Re: Deleted rows

2005-08-18 Thread Peter Brawley
Scott, >How do I execute a query that shows missing ID's like so: SELECT id AS i FROM tbl WHERE i <> 1 AND NOT EXISTS(   SELECT id FROM tbl WHERE id = i - 1 ); PB - Scott Hamm wrote: If I got a table as follows: ID foo 1 12345 2 12346 4 12348 6 12349 7 12388 9 12390 How do I exe

Re: Deleted rows

2005-08-18 Thread SGreen
Scott Hamm <[EMAIL PROTECTED]> wrote on 08/18/2005 08:59:00 AM: > If I got a table as follows: > > > ID foo > 1 12345 > 2 12346 > 4 12348 > 6 12349 > 7 12388 > 9 12390 > How do I execute a query that shows missing ID's like so: > > 3 > 5 > 8 > > I wouldn't expect for it to show deleted data th

Deleted rows

2005-08-18 Thread Scott Hamm
If I got a table as follows: ID foo 1 12345 2 12346 4 12348 6 12349 7 12388 9 12390 How do I execute a query that shows missing ID's like so: 3 5 8 I wouldn't expect for it to show deleted data that was deleted, just show the "skipped" ID's. That way I determine if operator deleted too much (

Re: Why does auto increment not take into account deleted rows?

2003-06-03 Thread Paul Najman
ed' number then your 'serial number' is not really associated with the record. Best wishes, Paul Najman [EMAIL PROTECTED] - Original Message - From: "Daniel Crompton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 02, 2003 5:18 PM Su

Re: Why does auto increment not take into account deleted rows?

2003-06-03 Thread Egor Egorov
"Daniel Crompton" <[EMAIL PROTECTED]> wrote: > I have one column as an auto increment for adding numbers: > > 1 > 2 > 3 > 4 > 5 > > If i delete row 3 then add a new row and view the results i get: > > 1 > 2 > 4 > 5 > 6 > > As you can see 3 has been deleted and its now added 6! > > Is this norm

Re: Why does auto increment not take into account deleted rows?

2003-06-03 Thread William R. Mussatto
> I have one column as an auto increment for adding numbers: > > 1 > 2 > 3 > 4 > 5 > > If i delete row 3 then add a new row and view the results i get: > > 1 > 2 > 4 > 5 > 6 > > As you can see 3 has been deleted and its now added 6! > > Is this normal?. How can i get it to always display numbers i

RE: Why does auto increment not take into account deleted rows?

2003-06-03 Thread Mike Hillyer
e 02, 2003 10:19 AM To: [EMAIL PROTECTED] Subject: Why does auto increment not take into account deleted rows? I have one column as an auto increment for adding numbers: 1 2 3 4 5 If i delete row 3 then add a new row and view the results i get: 1 2 4 5 6 As you can see 3 has been deleted a

Why does auto increment not take into account deleted rows?

2003-06-03 Thread Daniel Crompton
I have one column as an auto increment for adding numbers: 1 2 3 4 5 If i delete row 3 then add a new row and view the results i get: 1 2 4 5 6 As you can see 3 has been deleted and its now added 6! Is this normal?. How can i get it to always display numbers in this column in sequence. TIA

Re: How to return the value of deleted rows

2001-05-07 Thread Cal Evans
ROTECTED]> To: "MySQL List" <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 3:01 PM Subject: How to return the value of deleted rows Hello Folks, I wonder how can I return the number of deleted rows after a DELETE SQL statement. Is there any way to return the quantity of upd

Re: How to return the value of deleted rows

2001-05-07 Thread Zak Greant
tunes" <[EMAIL PROTECTED]> To: "MySQL List" <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 2:01 PM Subject: How to return the value of deleted rows Hello Folks, I wonder how can I return the number of deleted rows after a DELETE SQL statement. Is there any way to return

How to return the value of deleted rows

2001-05-07 Thread Carlos Fernando Scheidecker Antunes
Hello Folks, I wonder how can I return the number of deleted rows after a DELETE SQL statement. Is there any way to return the quantity of updated rows as well? Thanks, C.F.