Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pool cache updates #289

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Pool cache updates #289

merged 1 commit into from
Jun 18, 2024

Conversation

rdlrt
Copy link
Contributor

@rdlrt rdlrt commented Jun 18, 2024

Description

Pool cache updates:

  • pool_active_stake_cache - Restrict history to current - 3 epochs, delete older records if exist
  • get_pool_history_data_bulk - Use epoch_stake instead of grest.pool_active_stake_cache for historical lookup
  • pool_history.sql - Move get_pool_history_data_bulk to 01_cached_tables/pool_history_cache.sql

Which issue it fixes?

Closes #225

@rdlrt rdlrt requested review from Scitz0 and hodlonaut June 18, 2024 05:20
- [x] pool_active_stake_cache - Restrict history to current - 3 epochs, delete older records if exist
- [x] get_pool_history_data_bulk - Use epoch_stake instead of grest.pool_active_stake_cache for historical lookup
- [x] pool_history.sql - Move get_pool_history_data_bulk to 01_cached_tables/pool_history_cache.sql
@rdlrt rdlrt force-pushed the pool-active-stake branch from a20928a to 2daebc5 Compare June 18, 2024 07:28
@rdlrt rdlrt merged commit 1c6e14c into main Jun 18, 2024
2 checks passed
@rdlrt rdlrt deleted the pool-active-stake branch June 18, 2024 07:32
rdlrt added a commit that referenced this pull request Jun 24, 2024
## Description
<!--- Describe your changes -->
Pool cache updates:
- [x] pool_active_stake_cache - Restrict history to current - 3 epochs,
delete older records if exist
- [x] get_pool_history_data_bulk - Use epoch_stake instead of
grest.pool_active_stake_cache for historical lookup
- [x] pool_history.sql - Move get_pool_history_data_bulk to
01_cached_tables/pool_history_cache.sql

## Which issue it fixes?
<!--- Link to issue: Closes #issue-number -->
Closes #225
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delete older records from grest.pool_active_stake_cache
2 participants