{% extends "admin/base.html" %} {% block title %}Database{% endblock %} {% block content %}

Database

{{ stats.file_size_human }}
Database Size
{{ stats.tables | length }}
Tables
{{ stats.indexes | length }}
Indexes
{{ stats.page_count }}
Pages
{% if stats.integrity_check == "ok" %} Healthy {% else %} Issues {% endif %}
Integrity
{{ analysis.fragmentation_percent | round(precision=1) }}%
Fragmentation

Database Info

SQLite Version {{ stats.sqlite_version }}
Journal Mode {{ stats.journal_mode | upper }}
Encoding {{ stats.encoding }}
Page Size {{ stats.page_size }} bytes
Cache Size {{ stats.cache_size }} pages
Auto Vacuum {{ stats.auto_vacuum | upper }}
Free Pages {{ stats.freelist_count }}
{% if stats.wal_checkpoint %}
WAL Pages {{ stats.wal_checkpoint.wal_pages }}
{% endif %}

Recommendations

Tables ({{ stats.tables | length }})

{% for table in stats.tables %} {% endfor %}
Table Name Row Count
{{ table.name }} {{ table.row_count }}

Indexes ({{ stats.indexes | length }})

{% for index in stats.indexes %} {% endfor %}
Index Name Table Columns Unique
{{ index.name }} {{ index.table_name }} {{ index.columns }} {% if index.is_unique %}Yes{% else %}No{% endif %}

SQLite Compile Options

{% for option in stats.compile_options %} {{ option }} {% endfor %}
{% endblock %}