-
Notifications
You must be signed in to change notification settings - Fork 166
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
opt(torii): indexing model schema retrieval #2319
Conversation
WalkthroughOhayo, sensei! The changes enhance our codebase by introducing a structured Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant ModelCache
participant Sql
participant Model
Client->>Sql: Request Model
Sql->>ModelCache: Retrieve Model
ModelCache-->>Sql: Return Model
Sql-->>Client: Return Result<Model>
sequenceDiagram
participant Client
participant Cache
participant Model
Client->>Cache: Request Models
Cache-->>Client: Return Models
Client->>Client: Map to Schemas
Recent review detailsConfiguration used: .coderabbit.yaml Files selected for processing (1)
Additional comments not posted (7)
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2319 +/- ##
==========================================
+ Coverage 66.18% 67.20% +1.02%
==========================================
Files 352 352
Lines 46739 46266 -473
==========================================
+ Hits 30933 31095 +162
+ Misses 15806 15171 -635 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good opti for speed, quick question do you know the eviction policy for this cache? Or we will just have the RAM growing the more models we have?
we use the model cache to avoid fetching the models scheam & parsing every time we index a model state update
Summary by CodeRabbit
New Features
Model
struct for improved data representation in the cache.Sql
struct.Bug Fixes
Refactor
Chores