Archive more read entries
This commit is contained in:
parent
f3bff76aa1
commit
cb037910df
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ func (s *Storage) UpdateEntries(userID, feedID int64, entries model.Entries, upd
|
|||
func (s *Storage) ArchiveEntries() error {
|
||||
query := `
|
||||
UPDATE entries SET status='removed'
|
||||
WHERE id=ANY(SELECT id FROM entries WHERE status='read' AND starred is false AND published_at < now () - '60 days'::interval LIMIT 500)
|
||||
WHERE id=ANY(SELECT id FROM entries WHERE status='read' AND starred is false AND published_at < now () - '60 days'::interval LIMIT 5000)
|
||||
`
|
||||
if _, err := s.db.Exec(query); err != nil {
|
||||
return fmt.Errorf("unable to archive read entries: %v", err)
|
||||
|
|
Loading…
Reference in a new issue