Skip to content
Snippets Groups Projects
Commit 166327bf authored by Bartek Wrona's avatar Bartek Wrona
Browse files

Merge branch 'mt-hive-posts-idxs' into 'develop'

hive_posts index fix

See merge request !302
parents bf5790de a082a622
No related branches found
No related tags found
2 merge requests!456Release candidate v1 24,!302hive_posts index fix
......@@ -112,7 +112,7 @@ class DbState:
'hive_posts_block_num_idx',
'hive_posts_cashout_time_id_idx',
'hive_posts_updated_at_idx',
'hive_posts_payout_plus_pending_payout_id',
'hive_posts_payout_plus_pending_payout_id_is_paidout_idx',
'hive_votes_block_num_idx',
......
......@@ -150,7 +150,7 @@ def build_metadata():
sa.Index('hive_posts_block_num_idx', 'block_num'),
sa.Index('hive_posts_cashout_time_id_idx', 'cashout_time', 'id'),
sa.Index('hive_posts_updated_at_idx', sa.text('updated_at DESC')),
sa.Index('hive_posts_payout_plus_pending_payout_id', sa.text('(payout+pending_payout), id'))
sa.Index('hive_posts_payout_plus_pending_payout_id_is_paidout_idx', sa.text('(payout+pending_payout), id, is_paidout'))
)
sa.Table(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment