Commit graph

2 commits

Author SHA1 Message Date
zeripath
8fc80b34a0
Add another index for Action table on postgres () ()
Backport 

In  we have discovered that on very big tables postgres will use a
search involving the sort term in preference to the restrictive index.

Therefore we add another index for postgres and update the original migration.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-09-04 16:11:02 +01:00
zeripath
e321b40bb0
Refix indices on actions table () ()
Backport 

Unforunately the previous PR  created indices that were not helpful
for SQLite. This PR adjusts these after testing using the try.gitea.io db.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-07-02 15:31:51 +02:00