♻️ Make the media cleaning mechanism on file-gc task more efficient

Replaces the use of db/cursor with db/plan, that teorethically allows
processing large results without consuming all result set in memory
This commit is contained in:
Andrey Antukh 2025-01-15 12:36:13 +01:00
parent fde0f3c182
commit 5513daf17d
3 changed files with 44 additions and 37 deletions

View file

@ -62,7 +62,7 @@
(def default
{:database-uri "postgresql://postgres/penpot_test"
:redis-uri "redis://redis/1"
:file-snapshot-every 1})
:auto-file-snapshot-every 1})
(def config
(cf/read-config :prefix "penpot-test"