Skip to content

add CLI option to skip writing to table network_logs #287

@Rubyer77

Description

@Rubyer77

It takes 1.8GB for me in that case and it's not needed for many use cases.

Adding a CLI option to disable writing entirely to network_logs would be useful, if no other code downstream depends on it

 "
> SELECT
    name,
    SUM(pgsize) as total_bytes,
    COUNT(*) as page_count,
    SUM(pgsize) / 1024.0 / 1024.0 as size_mb
FROM dbstat
GROUP BY name
ORDER BY total_bytes DESC;
> "
+--------------------------------------+------------+---------+---------------+
| Field 1                              | Field 2    | Field 3 | Field 4       |
+--------------------------------------+------------+---------+---------------+
| idx_results_html                     | 8169472000 | 1994500 | 7791.015625   |
| results                              | 8149966848 | 1989738 | 7772.4140625  |
| network_logs                         | 1972015104 | 481449  | 1880.66015625 |
| cookies                              | 24616960   | 6010    | 23.4765625    |
| headers                              | 20811776   | 5081    | 19.84765625   |
| idx_headers_value                    | 18935808   | 4623    | 18.05859375   |
| idx_console_logs_value               | 8232960    | 2010    | 7.8515625     |
| console_logs                         | 7716864    | 1884    | 7.359375      |
| technologies                         | 4546560    | 1110    | 4.3359375     |
| idx_technologies_value               | 4452352    | 1087    | 4.24609375    |
| tls                                  | 3006464    | 734     | 2.8671875     |
| tls_san_lists                        | 2097152    | 512     | 2.0           |
| idx_results_title                    | 1249280    | 305     | 1.19140625    |
| idx_results_perception_hash          | 753664     | 184     | 0.71875       |
| idx_results_perception_hash_group_id | 290816     | 71      | 0.27734375    |
| sqlite_sequence                      | 4096       | 1       | 0.00390625    |
| sqlite_schema                        | 4096       | 1       | 0.00390625    |
+--------------------------------------+------------+---------+---------------+

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions