in reply to What's an Efficient Way to Retrieve a Rank from a MySQL Table?
My idea would be to run a job periodically that would do that for you, compute the value and store it statically in a table.
Alternatively you could write an internal function that did that for you eg: select rank(student) from students.. and the rank function would be something you write yourself. not sure if MySQL supports custom functions in perl, (and i'm too lazy to look it up) but postgres sure does.. (not that i'm suggesting you switch RBDMS's) :-).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: What's an Efficient Way to Retrieve a Rank from a MySQL Table?
by soon_j (Scribe) on May 04, 2004 at 08:55 UTC |