mirror of
git://git.savannah.gnu.org/guix/data-service.git
synced 2023-12-14 03:23:03 +01:00
Add extended statistics on package_derivations
This helps row count estimates when filtering on system_id and target.
This commit is contained in:
parent
48d8ee885a
commit
fb9d99a076
|
@ -0,0 +1,9 @@
|
|||
-- Deploy guix-data-service:package_derivations_extended_statistics to pg
|
||||
|
||||
BEGIN;
|
||||
|
||||
CREATE STATISTICS package_derivations_mcv (mcv) ON system_id, target FROM package_derivations;
|
||||
|
||||
CREATE STATISTICS package_derivations_ndistinct (ndistinct) ON system_id, target FROM package_derivations;
|
||||
|
||||
COMMIT;
|
|
@ -0,0 +1,7 @@
|
|||
-- Revert guix-data-service:package_derivations_extended_statistics from pg
|
||||
|
||||
BEGIN;
|
||||
|
||||
-- XXX Add DDLs here.
|
||||
|
||||
COMMIT;
|
|
@ -90,3 +90,4 @@ fix_git_commits_duplicates 2022-06-17T10:39:50Z Chris <chris@felis> # Fix git_co
|
|||
git_repositories_query_substitutes 2022-09-09T11:35:16Z Chris <chris@felis> # Add git_repositories.query_substitutes
|
||||
package_derivations_id_package_id_idx 2022-09-14T09:24:30Z Chris <chris@felis> # Add index on package_derivations id and package_id
|
||||
blocked_builds 2022-11-07T11:27:28Z Chris <chris@felis> # Add blocked_builds
|
||||
package_derivations_extended_statistics 2022-11-12T10:40:18Z Chris <chris@felis> # Add extended statistics on package_derivations
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
-- Verify guix-data-service:package_derivations_extended_statistics on pg
|
||||
|
||||
BEGIN;
|
||||
|
||||
-- XXX Add verifications here.
|
||||
|
||||
ROLLBACK;
|
Loading…
Reference in a new issue