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

make all materialized views into tables that are indexed using triggers #4

Open
moodysalem opened this issue Mar 5, 2025 · 2 comments · May be fixed by #5
Open

make all materialized views into tables that are indexed using triggers #4

moodysalem opened this issue Mar 5, 2025 · 2 comments · May be fixed by #5

Comments

@moodysalem
Copy link
Member

@MentatBot

we have examples of this with the hourly tables

follow the example for the pool states

Copy link

mentatbot bot commented Mar 5, 2025

I'm getting to work. See my steps and track my cost here.

  • Wake on any new activity.

Pull Requests:

I always see new activity while actively working. When paused, I'll only respond when tagged unless this box is checked.

Copy link

mentatbot bot commented Mar 5, 2025

I'll work on converting the materialized views into tables that are indexed using triggers. Looking at the codebase, I can see that we need to convert:

  1. pool_states_materialized - Created from pool_states_view
  2. oracle_pool_states_materialized - Created from oracle_pool_states_view
  3. last_24h_pool_stats_materialized - Created from last_24h_pool_stats_view

I'll follow the example of the per_pool_per_tick_liquidity_incremental_view table which is already using triggers for updates. I'll create the necessary tables and triggers to replace these materialized views, ensuring they're properly indexed and updated when the underlying data changes.

@mentatbot mentatbot bot linked a pull request Mar 5, 2025 that will close this issue
1 task
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 a pull request may close this issue.

1 participant