MySQL Forums
Forum List  »  General

Re: Reports with Stores Procedures
Posted by: Rick James
Date: April 09, 2009 09:07AM

Your plan should work.

Suggestion:
Each night create and fill table new_xx, then do
RENAME TABLE report_xx TO old_xx, new_xx TO report_xx;
That way, a report is always available, even while the report is being regenerated.

I prefer "summary" tables. I periodically condense new information from the big, raw, table into summary tables. My "reports" read summary tables, not the raw data, and are fast enough to build the report in realtime.

1M rows; 150 tables -- no problem. If you do have trouble, provide specifics (table schema, explain, etc).

Options: ReplyQuote


Subject
Written By
Posted
Re: Reports with Stores Procedures
April 09, 2009 09:07AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.