VbzCart/docs/queries/qryCache Flow Procs: Difference between revisions

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
Jump to navigation Jump to search
imported>Woozle
(queries -> procs, new flow structure)
imported>Woozle
(one field missing)
Line 9: Line 9:
<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryCache_Flow_Procs AS
<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryCache_Flow_Procs AS
   SELECT
   SELECT
     df.ID_Proc,
     cf.ID_Proc,
     df.ID_Table,
     cf.ID_Table,
     dfx.doesClear
     cf.doWrite,
   FROM cache_flow AS df LEFT JOIN cache_queries AS dfx ON df.ID_Proc=dfx.ID
    cp.doesClear
   ORDER BY dfx.doesClear;</mysql>
   FROM cache_flow AS cf LEFT JOIN cache_queries AS cp ON cf.ID_Proc=cp.ID
   ORDER BY cp.doesClear;</mysql>
<section end=sql />
<section end=sql />

Revision as of 02:31, 14 November 2010

About

  • Purpose: compiles caching data for quicker processing
  • Requires: Template:Vbzcart, Template:Vbzcart
  • Used by: cache manager
  • History:
    • 2010-11-09 Renamed tables, so had to fix this query; renamed from v_data_flow to qryCache_Flow_Queries
    • 2010-11-13 Renamed from qryCache_Flow_Queries to qryCache_Flow_Procs; modified to use new cache_flow structure

SQL

<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryCache_Flow_Procs AS

 SELECT
   cf.ID_Proc,
   cf.ID_Table,
   cf.doWrite,
   cp.doesClear
 FROM cache_flow AS cf LEFT JOIN cache_queries AS cp ON cf.ID_Proc=cp.ID
 ORDER BY cp.doesClear;</mysql>

<section end=sql />