-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
1,430 additions
and
1,233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
datanode/sqlstore/migrations/0047_referral_fee_and_set_stats_breakdown.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-- +goose Up | ||
|
||
-- index the json columns to make them faster to query | ||
create index if not exists idx_referral_fee_stats_total_rewards_paid on referral_fee_stats using gin(total_rewards_paid); | ||
create index if not exists idx_referral_fee_stats_referrer_rewards_generated on referral_fee_stats using gin(referrer_rewards_generated); | ||
create index if not exists idx_referral_fee_stats_referees_discount_applied on referral_fee_stats using gin(referees_discount_applied); | ||
create index if not exists idx_referral_fee_stats_volume_discount_applied on referral_fee_stats using gin(volume_discount_applied); | ||
|
||
-- +goose Down | ||
|
||
drop index if exists idx_referral_fee_stats_total_rewards_paid; | ||
drop index if exists idx_referral_fee_stats_referrer_rewards_generated; | ||
drop index if exists idx_referral_fee_stats_referees_discount_applied; | ||
drop index if exists idx_referral_fee_stats_volume_discount_applied; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.