Someone wrote in [site community profile] dw_dev 2009-09-27 02:59 am (UTC)

Well, coming from complete ignorance of your volumes, and what "cost" means here, my typical brute force recommendation.

Build a memory table comprised of all (or all active) account numbers + status (presumably a single digit) and join to it when you want data by status. Hell, build it new every time you run stats. Can it be that costly?

Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org