Skip to content

feat: add index on created_at for pools#1096

Merged
Yunusabdul38 merged 9 commits into
Web3Novalabs:mainfrom
dinahmaccodes:complex
Jun 2, 2026
Merged

feat: add index on created_at for pools#1096
Yunusabdul38 merged 9 commits into
Web3Novalabs:mainfrom
dinahmaccodes:complex

Conversation

@dinahmaccodes

@dinahmaccodes dinahmaccodes commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Closes #978
Closes #971
Closes #969
Closes #977

Description

This PR implements multiple performance and observability improvements for the backend.

Changes

Database Query Optimization (#977)

  • Added index on pools.created_at column for faster sorting operations

Database Query Logging (#978)

  • Configured SQL statement logging at DEBUG level
  • Added slow query logging (>200ms) at WARN level

Structured JSON Logging (#971)

  • Configured tracing to output structured JSON in production
  • Uses compact format for development, JSON when APP_ENV=production

Health Check Endpoints (#969)

  • Implemented /health endpoint returning 200 OK
  • Implemented /health/detailed with comprehensive dependency checks
  • Implemented /ready endpoint for Kubernetes readiness probes

Code Quality

  • Fixed all clippy linting warnings
  • Applied proper code formatting
  • Fixed transaction handling in database operations

Testing

  • All existing unit tests pass (88 passing)
  • Code passes cargo clippy -- -D warnings
  • Code passes cargo fmt --check

Checklist

Closes #977
Closes #978
Closes #971
Closes #969

@vercel

vercel Bot commented Jun 1, 2026

Copy link
Copy Markdown

@dinahmaccodes is attempting to deploy a commit to the shola's projects Team on Vercel.

A member of the Team first needs to authorize it.

@dinahmaccodes

Copy link
Copy Markdown
Contributor Author

updating conflicts

@drips-wave

drips-wave Bot commented Jun 2, 2026

Copy link
Copy Markdown

@dinahmaccodes Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@dinahmaccodes

Copy link
Copy Markdown
Contributor Author

please review @Yunusabdul38

@dinahmaccodes dinahmaccodes changed the title feat: start the setup feat: add index on created_at for pools Jun 2, 2026

@Yunusabdul38 Yunusabdul38 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT
Thnaks for your contribution

@Yunusabdul38 Yunusabdul38 merged commit 17ddef1 into Web3Novalabs:main Jun 2, 2026
0 of 3 checks passed
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.

Add Database query logging Optimize SQL for pools Add structured JSON logging Add Health Check Endpoint

2 participants