mirror of https://github.com/artifacthub/hub.git
Fix index used by get random packages query (#1502)
Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
This commit is contained in:
parent
f9d1effae5
commit
062df42b9e
|
|
@ -0,0 +1,9 @@
|
|||
drop index snapshot_not_deprecated_with_readme_idx;
|
||||
create index snapshot_not_deprecated_with_readme_idx on snapshot (package_id, version) include (ts)
|
||||
where (deprecated is null or deprecated = false) and readme is not null;
|
||||
|
||||
---- create above / drop below ----
|
||||
|
||||
drop index snapshot_not_deprecated_with_readme_idx;
|
||||
create index snapshot_not_deprecated_with_readme_idx on snapshot (package_id, version) include (created_at)
|
||||
where (deprecated is null or deprecated = false) and readme is not null;
|
||||
Loading…
Reference in New Issue