Re: database abstraction layer
| From: | Paul M Foster | Date: | Wed, 03 Feb 2010 06:12:16 +0000 |
| Subject: | Re: database abstraction layer | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-301780@lists.php.net to get a copy of this message | ||
On Wed, Feb 03, 2010 at 06:39:29AM +0100, Rene Veerman wrote:
> On Wed, Feb 3, 2010 at 5:49 AM, Jochem Maas <jochem@iamjochem.com> wrote:
> > you can bet you ass that every other DB out there that's worth it's salt
> > has atomic id incrementor functionality exposed in some way or other.
> >
> > @Rene: all that talk of maxId functions and random retries etc, etc,
> is complete pooh.
> > don't do it, **please** use the proper tools provided by the DB in
> question.
> >
>
> i just checked how my 1 app that did generate over a million hits/day
> (all with an insert for stats purposes)
> for a few weeks handles the getMax issue, and i see i did use mysql's
> auto_increment there.
>
> i suppose the difference in syntax between sql servers for this one is
> acceptable.
Am I the only one who's seeing Rene's replies but not the posts which
generated them?
Paul
--
Paul M. Foster