| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Jigal van Hemert | Date: | April 28 2005 7:26am |
| Subject: | Re: Get a Random Row on a HUGE db | ||
| View as plain text | |||
From: "Scott Gifford" > SELECT COUNT(*) FROM firebase_content; > > to get the count. That's very fast; it comes from the table summary > information, IIRC. I use a similar solution for a similar problem, > and have had great luck with it. This is true for MyISAM tables, but e.g. InnoDB does *not* store the total number of records per table seperately. A SELECT COUNT(*) on InnoDB will result in a real row count... Regards, Jigal.
| Thread | ||
|---|---|---|
| • Get a Random Row on a HUGE db | gunmuse | 26 Apr |
| • Re: Get a Random Row on a HUGE db | Rhino | 26 Apr |
| • Re: Get a Random Row on a HUGE db | Dawid Kuroczko | 27 Apr |
| • RE: Get a Random Row on a HUGE db | Jay Blanchard | 26 Apr |
| • RE: Get a Random Row on a HUGE db | gunmuse | 26 Apr |
| • Re: Get a Random Row on a HUGE db | Peter Brawley | 26 Apr |
| • RE: Get a Random Row on a HUGE db | gunmuse | 26 Apr |
| • RE: Get a Random Row on a HUGE db | gunmuse | 26 Apr |
| • Re: Get a Random Row on a HUGE db | Gary Richardson | 27 Apr |
| • Re: Get a Random Row on a HUGE db | Christian Meisinger | 27 Apr |
| • Re: Get a Random Row on a HUGE db | Scott Gifford | 27 Apr |
| • Re: Get a Random Row on a HUGE db | Jigal van Hemert | 28 Apr |
