Use generic trades query for owner endpoint#110
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
How to use the Graphite Merge QueueAdd the label add-to-gt-merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
b4fac6d to
f4de41e
Compare
28254bc to
ff1f985
Compare
f4de41e to
73a5ca6
Compare
ff1f985 to
3c3cf6a
Compare
73a5ca6 to
1c569cb
Compare
660ad1a to
b60ed4d
Compare
1c569cb to
e8e2ed7
Compare
b60ed4d to
6e19d52
Compare
0648e86 to
2df41e9
Compare
14e1aa8 to
69f89e0
Compare
bafb7ff to
8288d45
Compare
69f89e0 to
7cd65c5
Compare
8288d45 to
9d05162
Compare
75f091c to
6e676d2
Compare
511bbd2 to
9003bad
Compare
6fd79e5 to
64958e4
Compare
9003bad to
c6e1a8a
Compare
c6e1a8a to
eeb2321
Compare
5ff5da1 to
858932d
Compare
eeb2321 to
3bd8ca1
Compare
3bd8ca1 to
d5ba372
Compare
6ca6ad4 to
3bc07c8
Compare
d5ba372 to
8758d0a
Compare
5996c20 to
a4dcac7
Compare
8758d0a to
d03ce25
Compare
b106217 to
a7f8106
Compare
d03ce25 to
9b39e94
Compare
a7f8106 to
7678452
Compare
9b39e94 to
7a5bdbf
Compare
Merge activity
|
## Summary
- route `GET /v1/trades/{owner}` through the generic `get_trades` SDK path with an owner filter
- preserve existing pagination, time filter, exact count, and response shape
## Linear
Part of RAI-580.
## Benchmark context
Local benchmark against the bootstrapped DB showed the owner-specific SDK path taking roughly 3-4s for 20-row pages. Using the generic owner-filtered trades query reduced the same endpoint to roughly 1-2.7s while keeping the same pagination totals.
## Validation
- `nix develop -c cargo fmt`
- `nix develop -c cargo check`
- `nix develop -c rainix-rs-static`
7a5bdbf to
0924bce
Compare
7678452 to
1c151e2
Compare

Summary
GET /v1/trades/{owner}through the genericget_tradesSDK path with an owner filterLinear
Part of RAI-580.
Benchmark context
Local benchmark against the bootstrapped DB showed the owner-specific SDK path taking roughly 3-4s for 20-row pages. Using the generic owner-filtered trades query reduced the same endpoint to roughly 1-2.7s while keeping the same pagination totals.
Validation
nix develop -c cargo fmtnix develop -c cargo checknix develop -c rainix-rs-static