Skip to content

Commit

Permalink
don't compute where stats in search_query
Browse files Browse the repository at this point in the history
  • Loading branch information
bitner committed Apr 17, 2024
1 parent 4a38316 commit d42bb48
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
3 changes: 0 additions & 3 deletions src/pgstac/migrations/pgstac.0.8.5-unreleased.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions src/pgstac/migrations/pgstac.unreleased.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions src/pgstac/sql/004_search.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d42bb48

Please sign in to comment.