Skip to content

Revert 1 feat/query optimization indexes - #787

Merged
Smartdevs17 merged 3 commits into
Smartdevs17:mainfrom
Masked18:revert-1-feat/query-optimization-indexes
Aug 31, 2026
Merged

Revert 1 feat/query optimization indexes#787
Smartdevs17 merged 3 commits into
Smartdevs17:mainfrom
Masked18:revert-1-feat/query-optimization-indexes

Conversation

@Masked18

Copy link
Copy Markdown

What this PR does

Changes

  • List of notable files and modules touched (monorepo wiring, Sentry integration, dashboards, etc.)
  • Notes about the Turborepo configuration, shared packages, and ESLint/TS config

Why

  • Rationale for the changes and how they solve the Acceptance Criteria

How to test

  • Steps to reproduce locally, including commands to run build/test
  • Any environment variables needed (e.g., SENTRY_DSN)
  • How to verify the dashboards/alerts configuration (stubs or real)

Notes

Masked18 and others added 3 commits August 30, 2026 01:35
- Add 9 composite indexes to Prisma schema for payments, projects, milestones, invoices, webhooks, and outbox_events tables
- Implement SQL query analysis engine with 6 anti-pattern detectors (SELECT *, missing WHERE, DISTINCT overuse, ORDER BY without LIMIT, function on indexed column, non-sargable LIKE)
- Add index suggestion engine with table-specific hint mappings
- Implement N+1 query detection using sliding-window monitoring with cooldown-aware alerts
- Wire analysis into Prisma query event listener for automated slow-query reporting
- Add dashboard endpoints for optimization summary, analysis reports, and N+1 detections
- Fix unused imports in queryLogger.ts (ESLint compliance)
- Add comprehensive unit and integration tests
feat: query optimization, index analysis & N+1 detection
@vercel

vercel Bot commented Aug 30, 2026

Copy link
Copy Markdown

@Masked18 is attempting to deploy a commit to the smartdevs17's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Smartdevs17
Smartdevs17 merged commit 56bf65a into Smartdevs17:main Aug 31, 2026
1 of 2 checks passed
@Smartdevs17

Copy link
Copy Markdown
Owner

Thanks for contributing! The changes have been merged. Feel free to leave a review or feedback.

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.

DevTooling: Implement Real-Time Error Monitoring with Sentry and Custom Dashboards DevTooling: Implement Monorepo with Turborepo for Shared Packages

2 participants