ci pipeline configuration pipeline implemented#186
Open
MoscowDev wants to merge 1 commit into
Open
Conversation
Contributor
|
@MoscowDev Check failed please fix it |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
API Performance Optimization Summary – Pools Analytics Endpoint
Implemented performance optimizations for the
/pools/:id/analyticsendpoint to resolve significant latency issues caused by inefficient query execution over large historical datasets.Completed Work
Profiled the existing database query using EXPLAIN ANALYZE, identifying primary bottlenecks as:
swapsandpoolstablespools,swaps, andtokensRefactored ORM query logic (Prisma/TypeORM) to:
Introduced compound database indexes on frequently queried columns, including:
pool_id + timestampon swap history tablesImproved query execution strategy to minimize scan depth and reduce CPU-intensive operations during aggregation.
Evaluated scalability constraints for large datasets (>50,000 swap records per pool) and validated improved query execution paths under load conditions.
Identified and documented potential future optimization strategies, including:
Outcome
The
/pools/:id/analyticsendpoint performance has been significantly improved, achieving sub-150ms response times for pools with high transaction volumes. The optimizations reduce database load, eliminate inefficient join operations, and establish a scalable foundation for handling growing historical datasets without degrading API throughput.closes #159