MySQL Forums
Forum List  »  Performance

Re: InnoDB CPU Spikes
Posted by: Rick James
Date: April 08, 2009 04:36PM

I think there will usually be some savings...
* Not all 5M log in during any given hour. Perhaps 0.5M?
* Some will log in twice during an hour. Perhaps 50%?

So, the ration is 10 * 1.5 = 15x fewer rows in the summary table.
But also...
* summary2 is a much narrower table, hence less disk I/O for the same number of rows.
* (probably) The index on summary2 will make the report more efficient.

So, overall, summary2 might be 50x faster than hitting the raw data. Plus you are not interfering with the inserts. (YMMV -- I typically see something like 10x.)

Options: ReplyQuote


Subject
Views
Written By
Posted
7416
March 18, 2009 02:43AM
2750
March 18, 2009 03:08AM
2619
March 18, 2009 08:29PM
2574
March 19, 2009 04:48AM
2728
March 19, 2009 10:46AM
2503
March 19, 2009 03:47AM
2653
March 19, 2009 03:55AM
2520
March 19, 2009 04:49AM
2492
March 19, 2009 10:20AM
2195
March 30, 2009 01:25AM
2270
March 30, 2009 07:13PM
2295
March 31, 2009 02:31AM
2520
March 31, 2009 08:12AM
2193
April 01, 2009 03:27AM
2243
April 01, 2009 10:01AM
2351
April 01, 2009 10:22AM
2224
April 01, 2009 03:45AM
2507
April 01, 2009 11:57PM
2402
April 06, 2009 01:23AM
2364
April 06, 2009 08:01PM
2145
April 07, 2009 12:14AM
Re: InnoDB CPU Spikes
2296
April 08, 2009 04:36PM
2315
April 16, 2009 07:02AM


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.