Query speedups (index optimizations + replacing hive_posts_view to speedup query planning) See merge request !454