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

fix: Simplify prover_jobs_fri indices #3577

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

EmilLuta
Copy link
Contributor

@EmilLuta EmilLuta commented Feb 7, 2025

A couple of indices accumulated over time, parts of old prover and different setups of house keeper and PJM.

This PR removes unused indices and adds only bare minimum.

Indices left after this PR:

  • idx_prover_jobs_fri_get_next_job - used for most heavy query: get next job
  • prover_jobs_fri_composite_index - common index, used across prover job monitor & witness generators (leaf, node, scheduler)
  • prover_jobs_fri_l1_batch_number_is_node_final_proof_status - used for recursion tip to collect all node proof data
  • prover_jobs_fri_status_processing_started_at_idx - used for requeuing stuck jobs

A couple of indices accumulated over time, parts of old prover and
different setups of house keeper and PJM.

This PR removes unused indices and adds only bare minimum.

Indices left after this PR:
- idx_prover_jobs_fri_get_next_job - used for most heavy query: get next
  job
- prover_jobs_fri_composite_index - common index, used across prover job
  monitor & witness generators (leaf, node, scheduler)
- prover_jobs_fri_l1_batch_number_is_node_final_proof_status - used for
  recursion tip to collect all node proof data
- prover_jobs_fri_status_processing_started_at_idx - used for requeuing
  stuck jobs
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.

2 participants