Home » Performance » MySQL » Increasing Performance with VIEWS
Increasing Performance with VIEWS [message #307] Mon, 30 October 2006 10:13 Go to next message
Speeple  is currently offline Speeple
Messages: 91
Registered: August 2006
Member
Hi,

I'm working on some blogging software which uses MySQL as a datas tore.

Each archive page, year, month, day can have a tag cloud generated to show the most popular tags for that day.

Currently I'm using a derived table. Then I stumbled across your article "Derived Tables and Views Performance" and tested a query with a VIEW and it was indeed theoretically faster because the number of rows required in the query that used the VIEW was SUBSTANTIALLY lower than that of the derived query.

What I was thinking of implementing was temporay VIEWs each time the tag cloud needs to be generated (every page view Shocked ).

So it would go:

CREATE VIEW for IDs

PERFORM query USING VIEW

DROP VIEW

Remembering this would be performed every page view, for every visitor on every blog hosted (we're talking a lot of VIEWS being created and DROPPED here) - how would it perform? Does this require a lot of IO operations?

Thank you!


Martin Gallagher | Speeple: The latest news
Re: Increasing Performance with VIEWS [message #308 is a reply to message #307 ] Mon, 30 October 2006 11:25 Go to previous message
Peter  is currently offline Peter
Messages: 405
Registered: August 2006
Senior Member
Super Guru
Why ask, better benchmark it Smile

Generally it hould not be that expensive however if --sync-frm is dependent it may need fsync which is relatively expensive.


Peter Zaitsev, MySQL Performance Expert
MySQL Performance Blog - http://www.mysqlperformanceblog.com
MySQL Consulting http://www.mysqlperformanceblog.com/mysql-consulting/
Previous Topic:MySQL memory usage planning
Next Topic:Nearest value joins
Goto Forum:
  


Current Time: Mon Jul 6 13:44:55 EDT 2009

Total time taken to generate the page: 0.06175 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software

MySQL is a trademark of Sun Microsystems.
InnoDB is a trademark of Oracle Corp.

Percona Performance Forums are a service of Percona, Inc.
Not affiliated with Sun Microsystems or Oracle Corp.