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
2 files
+ 4
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -407,7 +407,7 @@ BEGIN
hp1.id,
hp1.promoted,
blacklist.source
FROM live_posts_view hp1
FROM live_posts_comments_view hp1
LEFT OUTER JOIN blacklisted_by_observer_view blacklist ON (blacklist.observer_id = __observer_id AND blacklist.blacklisted_id = hp1.author_id)
WHERE NOT hp1.is_paidout
AND hp1.promoted > 0
Loading