Source
Labrinidis and Roussopoulos (2000), LIT-1118, SIGMOD 2000, read in full in NOTE-908 from the authors’ camera-ready copy. The cost model is Section 3, the measurements Section 4.
What was actually shown
The setting. A WebView is a page built from a query on base tables. Every stored copy is refreshed on every update: “In this paper, we also assume a no staleness requirement, i.e. the WebViews must always be up to date.” There is no storage limit and no cost for creating a stored copy.
The measurements. WebMat ran Apache 1.3.6 with mod_perl and Informix 9.14 on one Sun UltraSparc-5, with 1000 pages over 10 tables, each a selection on an indexed attribute returning 10 tuples. Each run used one policy for every page. Pages stored at the web server answered “consistently at least an order of magnitude (10 - 230 times) less than those of the virt or matdb policies”, at 10 to 100 requests per second. With no updates, results stored in the DBMS and recomputation were close, because “the cost of accessing them is about the same as the cost of generating them from scratch”. With updates the stored results lost: at 25 requests per second and 5 updates per second recomputation was 63.53% faster, and across 0 to 25 updates per second the “virt policy gives 56% - 93% faster query response times compared to the matdb policy in the presence of updates.” The DBMS-stored policy won only with 100 pages, or under 5 updates per second.
Upkeep falls on others. With 500 recomputed and 500 web-stored pages, updates to the web-stored pages raised the recomputed pages’ response time by 236%, against 27% when the same updates fell on the recomputed pages, because rewriting stored pages runs queries in the shared DBMS.
What this does not say
- That storing in the DBMS loses in general. The queries were cheap indexed selections. With 10% of pages made joins and 100 pages, the DBMS policy was 3.5 times faster than recomputation with no updates. The authors expect the same result on other products that store views as tables; that was not tested.
- That the per-page choice was solved. The selection problem is stated and no algorithm is given. Mixed plans were not chosen by the model.
- Anything about staleness. Stale reads are excluded. Minimum staleness, the delay from update to reply, is defined and sketched, never measured.
- That the cost model predicts the numbers. Eq. 9’s terms were matched to the direction of the measured effects, never evaluated against them.
- Anything about build cost or space, both outside the model.
Connections
- For QUESTION-114 it has query savings and upkeep weighted by frequency, the shape of Gupta 1997 (LIT-1091), plus where the copy lives; no staleness term, no build cost, no algorithm. THEORY-332 and THEORY-350 come nearer.
- The 236% result is a measured form of THEORY-350’s finding that upkeep is not additive: here because stored and unstored items share a resource.
- For CLAIM-303 it is a case where c_a ≈ c_r, so the claim’s condition c_r > c_a + u fails whatever the reuse.
- Its successor, LIT-1105 (THEORY-382), drops the no-staleness assumption and gives an online selection algorithm.