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

From Woozle Writes Code
< VbzCart‎ | docs‎ | queries
Jump to navigation Jump to search
imported>Woozle
(extracted from queries page)
 
m (Woozle moved page VbzCart/VbzCart/queries/qryCache Flow Procs to VbzCart/docs/queries/qryCache Flow Procs without leaving a redirect: part 2)
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
==About==
==About==
* '''Purpose''': compiles caching data for quicker processing
* '''Purpose''': gives a list of procs for a given table, making sure that any proc with a set "doesClear" flag comes before the rest.
* '''Requires''': {{vbzcart|table|cache_flow}}, {{vbzcart|table|cache_queries}}
* '''Requires''': {{vbzcart|table|cache_flow}}, {{vbzcart|table|cache_queries}}
* '''Used by''': store page display routines (need to be more specific...)
* '''Used by''': cache manager
* '''History''':
* '''History''':
** '''2010-11-09''' Renamed tables, so had to fix this query
** '''2010-11-09''' Renamed tables, so had to fix this query; renamed from v_data_flow to qryCache_Flow_Queries
====v_data_flow====
** '''2010-11-13''' Renamed from qryCache_Flow_Queries to qryCache_Flow_Procs; modified to use new cache_flow structure
<section begin=sql /><mysql>CREATE OR REPLACE VIEW v_data_flow AS
==SQL==
<section begin=sql /><mysql>CREATE OR REPLACE VIEW qryCache_Flow_Procs AS
   SELECT
   SELECT
     df.ID_Srce,
     cf.ID_Proc,
     df.ID_Dest,
     cf.ID_Table,
     df.ID_Proc,
     cf.doWrite,
     dfx.doesClear
     cp.doesClear
   FROM cache_flow AS df LEFT JOIN cache_queries AS dfx ON df.ID_Proc=dfx.ID
   FROM cache_flow AS cf LEFT JOIN cache_queries AS cp ON cf.ID_Proc=cp.ID
   ORDER BY dfx.doesClear;</mysql>
   ORDER BY cp.doesClear;</mysql>
<section end=sql />
<section end=sql />

Latest revision as of 01:55, 25 February 2024

About

  • Purpose: gives a list of procs for a given table, making sure that any proc with a set "doesClear" flag comes before the rest.
  • 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 />