ompressed;
CREATE VIEW activitylog_uncompressed AS
SELECT count,
    x1.value AS extension_id,
    time,
    action_type,
    x2.value AS api_name,
    x3.value AS args,
    x4.value AS page_url,
    x5.value AS page_title,
    x6.value AS arg_url,
    x7.value AS other,
    activitylog_compressed.rowid AS activity_id
FROM activitylog_compressed
    LEFT JOIN string_ids AS x1 ON (x1.id = extension_id_x)
    LEFT JOIN string_ids AS x2 ON (x2.id = api_name_x)
    LEFT JOIN string_ids AS x3 ON (x3.id = args_x)
    LEFT JOIN url_ids    AS x4 ON (x4.id = page_url_x)
    LEFT JOIN string_ids AS x5 ON (x5.id = page_title_x)
    LEFT JOIN url_ids    AS x6 ON (x6.id = arg_url_x)
    LEFT JOIN string_ids AS x7 ON (x7.id = other_x);
CREATE INDEX IF NOT EXISTS activitylog_compressed_index
ON activitylog_compressed(extension_id_x, action_type, api_name_x,
    args_x, page_url_x, page_title_x, arg_url_x, other_x)