If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Caching output of a VIEW?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-20-05, 17:49
rayvd rayvd is offline
Registered User
 
Join Date: Aug 2004
Posts: 9
Caching output of a VIEW?

I'm creating a (relatively) complex VIEW using MySQL 5.0.2. I'm new to VIEW's and was hoping that the VIEW would do some sort of caching on the result rows returned from the SELECT queries that defines it. However, it appears that when I make a SELECT from the VIEW the definition queries are re-run by MySQL and so I don't get any sort of performance improvement.

Is there any way to cache the VIEW I've defined or achieve something similiar using MySQL only? Obviously I can code something up to create a cached table that updates periodically... was hoping VIEW would be the answer though. :-)
Reply With Quote
  #2 (permalink)  
Old 01-23-05, 14:05
Ach Ach is offline
Registered User
 
Join Date: Mar 2004
Posts: 370
View does not make any performance increament.It degrades it! because of overhead in rebuilding some queries on base tables that view is made from.
So there is no reason to use virew for performance but it is very useful concept.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On