Bug #15271 | Result for VIEWs with ALGORITHM=TEMPTABLE not cached | ||
---|---|---|---|
Submitted: | 27 Nov 2005 14:38 | Modified: | 7 Jul 2017 9:14 |
Reporter: | Beat Vontobel (Silver Quality Contributor) (OCA) | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server: Views | Severity: | S4 (Feature request) |
Version: | 5.0.16-standard-log-i686-glibc23 | OS: | Linux (Linux 2.4.21 (SuSE Professional)) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[27 Nov 2005 14:38]
Beat Vontobel
[27 Nov 2005 14:39]
Beat Vontobel
Sorry, forget to set it to S3.
[27 Nov 2005 16:18]
Valeriy Kravchuk
Thank you for a problem report. When I tried to repeat the behaviour you described I've got a crash on latest 5.0.17-BK. Just as described in http://bugs.mysql.com/bug.php?id=15119. I believe, the fix to that bug will help with your problem too. Please, wait for the patch to be released, check the caching with it and inform about the results.
[27 Nov 2005 17:24]
Oleksandr Byelkin
Thank you for bugreport! But our Query cache do not cache parts of query. It work with query text and intercepts results on a network layer. So I think I misunderstood you in the forum. I thought that you meant query with tempteble view. Maybe in somepoint we will cache results of "views"/"subqueries in the FROM clause" but it will be some different cache.
[27 Nov 2005 17:38]
Beat Vontobel
> It work with query text I was aware of this and thought it would be easy to apply the same to the query text of a VIEW... > and intercepts results on a network layer. ...but this is of course a problem and doesn't make it easy to expand the existent query cache to work with queries inside a VIEW. As you say this will probably be a completely different approach. I hope you can live with it if I keep it as a feature request, as this would greatly improve the usability and performance of expensive VIEWs.
[7 Jul 2017 9:14]
Erlend Dahl
MySQL will no longer invest in the query cache, see: http://mysqlserverteam.com/mysql-8-0-retiring-support-for-the-query-cache/