Closed TomaszGol closed 1 month ago
[!WARNING]
Rate limit exceeded
@TomaszGol has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 6 minutes and 44 seconds before requesting another review.
How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://coderabbit.ai/docs/faq) for further information.Commits
Files that changed from the base of the PR and between 407104a426769cf4b4e0f87fa5d785d7150dd1b7 and a21718d88c0cd9d0bd1122b3143a1b885232743e.
The recent updates focus on enhancing database performance by introducing indexes to various fields in multiple database tables and GraphQL schema types. Migration scripts and models have been updated to reflect these changes, aiming to optimize query operations and improve data retrieval speed.
Files/Groups | Change Summary |
---|---|
db/migrations/1721118150560-Data.js |
Added methods to create and drop indexes on market , order , position , and aggregated_orders_by_price tables. |
schema.graphql |
Introduced @index directive to various fields in types Market , Order , Position , AggregatedOrdersByPrice , and Withdraw . |
.../generated/aggregatedOrdersByPrice.model.ts |
Added @Index_ decorator above the side property in the AggregatedOrdersByPrice class. |
.../generated/market.model.ts |
Added Index_ decorator to the ticker property in the Market class. |
.../generated/order.model.ts |
Added @Index_() decorators for who , timestamp , and status properties in the Order class. |
.../generated/position.model.ts |
Added @Index_() decorators for long , short , timestamp , and status properties in the Position class. |
In the code's vast expanse, We indexed fields to enhance, Queries now swift and fast, With performance unsurpassed. Optimization's keen embrace, Brings a smile to every place. 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Market
,Order
,Position
, andAggregatedOrdersByPrice
.Performance Enhancements
Database Management