Skip to content
Snippets Groups Projects

Query speedups (index optimizations + replacing hive_posts_view to speedup query planning)

Merged Dan Notestein requested to merge dn_index_optimizations into develop
Compare and Show latest version
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -246,7 +246,8 @@ BEGIN
IF __post_id <> 0 THEN
SELECT (hp.payout + hp.pending_payout) INTO __payout_limit FROM hive_posts hp WHERE hp.id = __post_id;
END IF;
RETURN QUERY
RETURN QUERY
WITH payout AS
(
SELECT
hp1.id,
Loading