Re: Package proposal: Unique
| From: | Pierre-Alain Joye | Date: | Tue, 24 Jun 2003 16:21:20 +0000 |
| Subject: | Re: Package proposal: Unique | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-17673@lists.php.net to get a copy of this message | ||
On Tue, 24 Jun 2003 18:16:34 +0200
"Daniel Khan" <dk@webcluster.at> wrote:
> Hello cagrET,
>
> > > MDB and DB both support a way to get a unique ascending integer.
> > > It's nearly like autoincrement keys in mySQL.
> >
> > but can i keep more than one ID in this sequence ?
>
> Yes
well, sequences should not be used as unid generator (to be used for
something else than a sequence :)
> Hm. I usually use timestamps or simple uniqid's stored with the data
> or redirects (as you mentioned) to test
> if someone has re-submitted the data.
timestamps sound like a bad idea imho (even if they should work with low
traffic :).
> O.K. I don't see much sense but maybe I don't understand
> what it's really for.
> So maybe anybody else has an opinion?
We have all needed a unid generator for forms or other tasks, but using
a whole class with his table sounds often like an overhead. Sorry. The
class is well wroten, but I do not see the needs of it.
hth
pierre