From d42bb48e0208c143806462db14f8273e9fc9f720 Mon Sep 17 00:00:00 2001 From: David Bitner Date: Wed, 17 Apr 2024 15:13:33 -0500 Subject: [PATCH] don't compute where stats in search_query --- src/pgstac/migrations/pgstac.0.8.5-unreleased.sql | 3 --- src/pgstac/migrations/pgstac.unreleased.sql | 3 --- src/pgstac/sql/004_search.sql | 3 --- 3 files changed, 9 deletions(-) diff --git a/src/pgstac/migrations/pgstac.0.8.5-unreleased.sql b/src/pgstac/migrations/pgstac.0.8.5-unreleased.sql index 7c1dea7f..18bccb41 100644 --- a/src/pgstac/migrations/pgstac.0.8.5-unreleased.sql +++ b/src/pgstac/migrations/pgstac.0.8.5-unreleased.sql @@ -753,9 +753,6 @@ BEGIN search.lastused := now(); search.usecount := 1; - -- Calculate statistics for the where statement - PERFORM where_stats(search._where, updatestats, _search->'conf'); - -- If we are in read only mode, directly return search IF ro THEN RETURN search; diff --git a/src/pgstac/migrations/pgstac.unreleased.sql b/src/pgstac/migrations/pgstac.unreleased.sql index 524437cf..e81009da 100644 --- a/src/pgstac/migrations/pgstac.unreleased.sql +++ b/src/pgstac/migrations/pgstac.unreleased.sql @@ -3548,9 +3548,6 @@ BEGIN search.lastused := now(); search.usecount := 1; - -- Calculate statistics for the where statement - PERFORM where_stats(search._where, updatestats, _search->'conf'); - -- If we are in read only mode, directly return search IF ro THEN RETURN search; diff --git a/src/pgstac/sql/004_search.sql b/src/pgstac/sql/004_search.sql index 837ecb66..40e7af04 100644 --- a/src/pgstac/sql/004_search.sql +++ b/src/pgstac/sql/004_search.sql @@ -635,9 +635,6 @@ BEGIN search.lastused := now(); search.usecount := 1; - -- Calculate statistics for the where statement - PERFORM where_stats(search._where, updatestats, _search->'conf'); - -- If we are in read only mode, directly return search IF ro THEN RETURN search;