1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-26 18:21:01 +00:00
miniflux-v2/internal/storage
jvoisin 5c26e06780 feat(entry): keep only metadata for removed entries
This should significantly shrink the space taken by miniflux' database:

```sql
miniflux=#
SELECT
  relname, pg_size_pretty(pg_total_relation_size(relname::regclass))
FROM
  pg_catalog.pg_statio_user_tables
ORDER BY
  pg_total_relation_size(relname::regclass)
DESC;

       relname        | pg_size_pretty
----------------------+----------------
 entries              | 158 MB
 icons                | 3312 kB
 enclosures           | 1568 kB
 sessions             | 1048 kB
 feeds                | 288 kB
 feed_icons           | 72 kB
 users                | 64 kB
 user_sessions        | 64 kB
 categories           | 48 kB
 integrations         | 32 kB
 api_keys             | 32 kB
 webauthn_credentials | 24 kB
 schema_version       | 16 kB
 acme_cache           | 16 kB
(14 rows)

miniflux=#
```

This should close #3524
2025-08-16 20:57:59 -07:00
..
api_key.go refactor(model): remove some indirection 2025-08-12 19:46:14 -07:00
batch.go refactor: remove some fmt.Sprintf calls 2025-08-11 19:27:34 -07:00
category.go refactor(internal): fix doc comments 2025-08-15 16:24:48 -07:00
certificate_cache.go Move internal packages to an internal folder 2023-08-10 20:29:34 -07:00
enclosure.go feat(storage): reduce the number of SQL queries when fetching entry enclosures 2025-03-23 14:13:33 -07:00
entry.go feat(entry): keep only metadata for removed entries 2025-08-16 20:57:59 -07:00
entry_pagination_builder.go refactor: remove some fmt.Sprintf calls 2025-08-11 19:27:34 -07:00
entry_query_builder.go refactor: remove some fmt.Sprintf calls 2025-08-11 19:27:34 -07:00
entry_test.go fix(storage): ensure strings are truncated to fit tsvector size limit and remain valid UTF-8 2025-07-20 13:42:58 -07:00
feed.go refactor(internal): fix doc comments 2025-08-15 16:24:48 -07:00
feed_query_builder.go refactor: remove some fmt.Sprintf calls 2025-08-11 19:27:34 -07:00
icon.go perf(storage): pair all SELECT true with LIMIT 1 2025-08-02 16:13:55 -07:00
integration.go perf(storage): pair all SELECT true with LIMIT 1 2025-08-02 16:13:55 -07:00
session.go refactor: replace interface{} with any 2025-08-05 20:26:07 -07:00
storage.go feat: show size of DB on the about page 2025-03-05 15:49:32 -08:00
timezone.go fix: replace timezone function call with view 2024-12-03 01:44:48 -08:00
user.go refactor: replace interface{} with any 2025-08-05 20:26:07 -07:00
user_session.go refactor(model): remove some indirection 2025-08-12 19:46:14 -07:00
webauthn.go refactor(internal): fix doc comments 2025-08-15 16:24:48 -07:00