RE: [PHP] Dealing with auto-increment in MySQL
| From: | Jay Blanchard | Date: | Tue, 04 Sep 2007 11:20:49 +0000 |
| Subject: | RE: [PHP] Dealing with auto-increment in MySQL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261679@lists.php.net to get a copy of this message | ||
[snip]
I was wondering if people is asking this in the belief that the
autoincrement field is the record position in the database table and
that by
not reusing those positions, the space of the deleted records is
wasted.
Perhaps when they say renumbering what they are meaning is compacting
the
database reusing the empty slots they assume those autoincrement fields
point to. Someone remembers dBaseIII .dbf files? Well, perhaps that is
the
picture they have in mind.
[/snip]
Maybe, but it seems as if more of this is about keeping a contiguous
'index' of the records contained in the database.