GetStationsByLineGroupIdList RPCのパフォーマンス改善#1459
Merged
TinyKitten merged 1 commit intodevfrom Mar 25, 2026
Merged
Conversation
update_station_vec_with_attributesのskip_types_joinをtrueに変更。 line_group_id=Noneで呼び出すため内部のtrain_type取得は常に空を返しており、 station_station_types/typesテーブルへのJOINは不要だった。 train_typeは後続のget_by_line_group_id_vecで別途取得済み。 これにより以下が改善される: - 2つのSQLクエリからstation_station_types/typesへの不要なJOINを削除 - バス停クエリがtokio::try_join!で他クエリと並列実行されるようになる Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This was referenced Mar 25, 2026
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.
Summary
update_station_vec_with_attributesのskip_types_joinをtrueに変更line_group_id=Noneで呼び出すため内部のtrain_type取得は常に空Vecを返しており、station_station_types/typesテーブルへのJOINは不要だったtrain_type_repository.get_by_line_group_id_vecで別途取得・上書き済み改善内容
get_stations_by_group_id_vec,get_lines_by_station_group_id_vec)から不要なJOINを削除(_no_typesバリアントに切り替え)tokio::try_join!で他クエリと並列実行されるようになるTest plan
cargo fmt --checkパスcargo clippy警告なしcargo test全380テストパス🤖 Generated with Claude Code
Summary by CodeRabbit
リリースノート