On Sat, Mar 13, 2010 at 7:53 AM, Rob Wultsch <[email protected]> wrote:

> On Sat, Mar 13, 2010 at 8:21 AM, MARK CALLAGHAN <[email protected]>
> wrote:
> > On Sat, Mar 13, 2010 at 12:59 AM, Yuan Wang <[email protected]>
> wrote:
> >> I think Drizzle should consider the ability to push down OFFSET to the
> >> storage engine. LIMIT/OFFSET is very common in most Web applications.
> >> Where there are lists, there are LIMIT/OFFSETs. For example, each user
> >> in Blog has a list of his articles. For this list could be long, we
> >> display it in pages, using the following SQL:
> >
> > This is a nice description of the problem and the feature that you
> > need. But I have been burned so many times in production by queries
> > with large offsets that I also want a feature to allow me to either
> > ban queries with an offset or set a limit on the max offset that can
> > be used. Of course, I can do that whether or not the optimization you
> > have requested is supported.
> >
>
> I have also seen this issue many times in production. Someone builds
> an app that allows pagination and the db is populated* with a
> significant amount of data. Later on a bot (I assume) discovers the
> app and tries to index the entire damn thing. This makes servers sad
> and no one likes a sad server.
>

+1

Been there, done that, have t-shirt (and scars) to prove it.

Jeremy
_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to