How to reuse a large query without repeating it?

后端 未结 5 1846
别那么骄傲
别那么骄傲 2020-12-31 06:58

If I have two queries, which I will call horrible_query_1 and ugly_query_2, and I want to perform the following two minus operations on them:

5条回答
  •  温柔的废话
    2020-12-31 07:32

    Have you tried using RESULT_CACHE hint in your queries? Also, you could

    ALTER SESSION SET RESULT_CACHE_MODE=FORCE
    

    and see if it helps.

提交回复
热议问题