<legend id='Y0Uzd'><style id='Y0Uzd'><dir id='Y0Uzd'><q id='Y0Uzd'></q></dir></style></legend>

<small id='Y0Uzd'></small><noframes id='Y0Uzd'>

    1. <i id='Y0Uzd'><tr id='Y0Uzd'><dt id='Y0Uzd'><q id='Y0Uzd'><span id='Y0Uzd'><b id='Y0Uzd'><form id='Y0Uzd'><ins id='Y0Uzd'></ins><ul id='Y0Uzd'></ul><sub id='Y0Uzd'></sub></form><legend id='Y0Uzd'></legend><bdo id='Y0Uzd'><pre id='Y0Uzd'><center id='Y0Uzd'></center></pre></bdo></b><th id='Y0Uzd'></th></span></q></dt></tr></i><div id='Y0Uzd'><tfoot id='Y0Uzd'></tfoot><dl id='Y0Uzd'><fieldset id='Y0Uzd'></fieldset></dl></div>

          <bdo id='Y0Uzd'></bdo><ul id='Y0Uzd'></ul>

      1. <tfoot id='Y0Uzd'></tfoot>

      2. 有没有办法缓存视图,以便快速查询?

        Is there a way to cache a View so that queries against it are quick?(有没有办法缓存视图,以便快速查询?)
        <i id='qlysg'><tr id='qlysg'><dt id='qlysg'><q id='qlysg'><span id='qlysg'><b id='qlysg'><form id='qlysg'><ins id='qlysg'></ins><ul id='qlysg'></ul><sub id='qlysg'></sub></form><legend id='qlysg'></legend><bdo id='qlysg'><pre id='qlysg'><center id='qlysg'></center></pre></bdo></b><th id='qlysg'></th></span></q></dt></tr></i><div id='qlysg'><tfoot id='qlysg'></tfoot><dl id='qlysg'><fieldset id='qlysg'></fieldset></dl></div>
          <bdo id='qlysg'></bdo><ul id='qlysg'></ul>

          <small id='qlysg'></small><noframes id='qlysg'>

        • <legend id='qlysg'><style id='qlysg'><dir id='qlysg'><q id='qlysg'></q></dir></style></legend>
        • <tfoot id='qlysg'></tfoot>
                <tbody id='qlysg'></tbody>

                  本文介绍了有没有办法缓存视图,以便快速查询?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我对视图非常陌生,所以如果这是一个愚蠢的问题,请原谅我,但我有一个视图,它对优化非常笨拙的查询非常有帮助,并允许我选择列中的一小部分子集但是,我希望视图实际上存储在某个地方,以便选择它不会花费很长时间.

                  I'm extremely new to Views so please forgive me if this is a silly question, but I have a View that is really helpful in optimizing a pretty unwieldy query, and allows me to select against a small subset of columns in the View, however, I was hoping that the View would actually be stored somewhere so that selecting against it wouldn't take very long.

                  我可能弄错了,但我感觉到(从 create view 执行的速度和我对视图的查询的持续时间)视图实际上是作为查询运行的到外部查询,每次我选择反对它.

                  I may be mistaken, but I get the sense (from the speed with which create view executes and from the duration of my queries against my View) that the View is actually run as a query prior to the external query, every time I select against it.

                  我真的希望我能忽略一些机制,当我运行 CREATE VIEW 时,它可以完成查询 View 查询的艰苦工作*then,这样我随后针对这个静态视图的选择就会非常迅速.

                  I'm really hoping that I'm overlooking some mechanism whereby when I run CREATE VIEW it can do the hard work of querying the View query *then, so that my subsequent select against this static View would be really swift.

                  顺便说一句,我完全理解,显然这个 VIEW 将是创建 VIEW 时存在的数据的快照,并且不会反映在创建 VIEW 之后插入/更新的任何新信息.这实际上正是我所需要的.

                  BTW, I totally understand that obviously this VIEW would be a snapshot of the data that existed at the time the VIEW was created and wouldn't reflect any new info that was inserted/updated subsequent to the VIEW's creation. That's actually EXACTLY what I need.

                  TIA

                  推荐答案

                  你想做的是具体化你的观点.看看 http://www.fromdual.com/mysql-materialized-views.

                  What you want to do is materialize your view. Have a look at http://www.fromdual.com/mysql-materialized-views.

                  这篇关于有没有办法缓存视图,以便快速查询?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Why Mysql#39;s Group By and Oracle#39;s Group by behaviours are different(为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同)
                  MySQL GROUP BY DateTime +/- 3 seconds(MySQL GROUP BY DateTime +/- 3 秒)
                  MySQL cumulative sum grouped by date(按日期分组的 MySQL 累计总和)
                    <tbody id='rQDSD'></tbody>

                    <i id='rQDSD'><tr id='rQDSD'><dt id='rQDSD'><q id='rQDSD'><span id='rQDSD'><b id='rQDSD'><form id='rQDSD'><ins id='rQDSD'></ins><ul id='rQDSD'></ul><sub id='rQDSD'></sub></form><legend id='rQDSD'></legend><bdo id='rQDSD'><pre id='rQDSD'><center id='rQDSD'></center></pre></bdo></b><th id='rQDSD'></th></span></q></dt></tr></i><div id='rQDSD'><tfoot id='rQDSD'></tfoot><dl id='rQDSD'><fieldset id='rQDSD'></fieldset></dl></div>
                    <legend id='rQDSD'><style id='rQDSD'><dir id='rQDSD'><q id='rQDSD'></q></dir></style></legend>

                      <bdo id='rQDSD'></bdo><ul id='rQDSD'></ul>
                        • <small id='rQDSD'></small><noframes id='rQDSD'>

                          • <tfoot id='rQDSD'></tfoot>