id's

Started by ediww, December 20, 2005, 04:12:16 PM

Previous topic - Next topic

ediww

hi there,

a quick lame q:

are the topic/message ID's really unique? i mean, do they reuse if the topic/post is deleted or really only increment? (do mysql auto_increment ensures this?). if i do delete half of the posts do i eventually end up with sme message or topic id?

wwell edi


Beep-beep-beep. Beep-woop-woo. Beep-boop.

Thantos

Unless you make some db changes they are not reused.  AUTO_INCREMENT does ensure this.

ediww

#2
just to clarify - unless i do really intentionally make changes?
(as described in the comments here, for example:
http://dev.mysql.com/doc/refman/4.1/en/example-auto-increment.html
)
edit: does the same apply to the users, or boards? and futuremore, i hope it will not change in some future version (the id's will be _really uniqie_ id's even when deleted)? i am not talking about autoincrement, but the way SMF reconizes the id's. i do ask if i can rely on them.
Beep-beep-beep. Beep-woop-woo. Beep-boop.

Thantos

Basically if you don't open up something like PHPMYADMIN and do an ALTER TABLE you can safely assume that no ID will be reused.  And yes this applies to all tables that use an its own ID field

ediww

Quote from: MikeMill on December 20, 2005, 04:43:06 PM
Basically if you don't open up something like PHPMYADMIN and do an ALTER TABLE you can safely assume that no ID will be reused.  And yes this applies to all tables that use an its own ID field

big 10x.
Beep-beep-beep. Beep-woop-woo. Beep-boop.

Advertisement: