Showing 1 of 1 files from the diff.

@@ -218,6 +218,21 @@
Loading
218 218
219 219
220 220
# FIXME: this is still awful.
221 +
#
222 +
# NOTE: because we avoid pickle, we can do interesting statistical
223 +
#       analysis on the cache, e.g.
224 +
#
225 +
#         SELECT count(*),
226 +
#                json_extract(headers, '$.Content-Type') AS "Content-Type"
227 +
#         FROM pages
228 +
#         GROUP BY 2
229 +
#         ORDER BY 1 DESC;
230 +
#
231 +
#         DELETE FROM pages
232 +
#         WHERE json_extract(headers, '$.Cache-Control[0]') LIKE '%no-store%';
233 +
#
234 +
# NOTE: response bodies are not pickled, but are still gzipped.
235 +
#       This means ZFS transparent compression won't "work" :-(
221 236
class SqliteCacheStorage:
222 237
223 238
    def __init__(self, settings):
Files Coverage
scrapy 87.57%
Project Totals (160 files) 87.57%
9742.7
TRAVIS_PYTHON_VERSION=3.6.1
TRAVIS_OS_NAME=linux
TOXENV=asyncio-pinned
9742.6
TRAVIS_PYTHON_VERSION=3.6.1
TRAVIS_OS_NAME=linux
TOXENV=pinned
9742.11
TRAVIS_PYTHON_VERSION=3.7
TRAVIS_OS_NAME=linux
TOXENV=py
9742.9
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
TOXENV=py
9742.13
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=extra-deps
9742.12
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=py
9742.14
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
TOXENV=asyncio
1
comment:
2
  layout: "header, diff, tree"
3

4
coverage:
5
  status:
6
    project: false
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading