Skip to content

Commit

Permalink
Remove typo unused materialized view
Browse files Browse the repository at this point in the history
  • Loading branch information
ddxv committed Oct 20, 2023
1 parent 491d3e1 commit a33a313
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions pg-ddl/db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1166,27 +1166,6 @@ ORDER BY
cm.mapped_category
;


CREATE MATERIALIZED VIEW mv_app_categories AS
WITH RankedApps AS (
SELECT
*,
ROW_NUMBER() OVER(PARTITION BY store
ORDER BY
installs DESC NULLS LAST,
review_count DESC NULLS LAST
) AS rn
FROM store_apps sa
WHERE
sa.release_date >= '{my_date}'
AND crawl_result = 1
)
SELECT *
FROM RankedApps
WHERE rn <= {limit}
;


--DROP MATERIALIZED VIEW new_weekly_apps;
CREATE MATERIALIZED VIEW apps_new_weekly AS
WITH RankedApps AS (
Expand Down

0 comments on commit a33a313

Please sign in to comment.